This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/30637] New: The options -fno-unit-at-a-time and -finline-functions generates erroneous code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]