[Bug c++/30637] New: The options -fno-unit-at-a-time and -finline-functions generates erroneous code
steby at enea dot se
gcc-bugzilla@gcc.gnu.org
Tue Jan 30 10:22:00 GMT 2007
When compiling the attached source code snippet test.cpp with the options
-fno-unit-at-a-time and -finline-functions, erroneous code is produced in form
of an infinite loop, see the attached disassembly file test.s.
Use the following command line to reproduce the bug:
powerpc-eabi-g++ -c -S -O2 -fno-unit-at-a-time -finline-functions -o test.s
test.cpp
A possible explanation for this bug may be that -fno-unit-at-a-time counteracts
-finline-functions; -finline-functions needs the whole compilation unit or more
while -finline-functions says don't use the whole compilation unit.
--
Summary: The options -fno-unit-at-a-time and -finline-functions
generates erroneous code
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: steby at enea dot se
GCC build triplet: i386-linux-gnu
GCC host triplet: i386-linux-gnu
GCC target triplet: powerpc-eabi-unknown
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30637
More information about the Gcc-bugs
mailing list