This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30637] New: The options -fno-unit-at-a-time and -finline-functions generates erroneous code
- From: "steby at enea dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2007 10:22:29 -0000
- Subject: [Bug c++/30637] New: The options -fno-unit-at-a-time and -finline-functions generates erroneous code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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