Red Hat Bugzilla – Bug 218377
g++ compile runs forever on test file with optimization and debug info
Last modified: 2007-11-16 20:14:54 EST
Description of problem:
On compiling several files from the TAO open-source CORBA software (such as
TAO/tao/ObjectKey_Table.cpp), the compiler runs forever when compiling with both
optimization and debug info enabled. With either optimization or debug info
disabled the compile completes normally.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Compile attached preprocessed test case with:
g++ -O3 -g -c -o ObjectKey_Table.o ObjectKey_Table.cpp
2. Also try with just -O3 and just -g
Compiler runs forever and never finishes
Compile eventually completes
Created attachment 142780 [details]
Test case to reproduce compiler hang
This is endless loop in vt_find_locations, very likely duplicate of #216695.
As a workaround, compile with -O3 -g -fno-var-tracking.
Patch that fixes the bug attached to bug 216695.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.