public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30637]  New: The options -fno-unit-at-a-time and -finline-functions generates erroneous code
@ 2007-01-30 10:22 steby at enea dot se
  2007-01-30 10:28 ` [Bug c++/30637] " steby at enea dot se
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: steby at enea dot se @ 2007-01-30 10:22 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-02-09 22:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-30 10:22 [Bug c++/30637] New: The options -fno-unit-at-a-time and -finline-functions generates erroneous code steby at enea dot se
2007-01-30 10:28 ` [Bug c++/30637] " steby at enea dot se
2007-01-30 10:29 ` steby at enea dot se
2007-01-30 10:33 ` pinskia at gcc dot gnu dot org
2007-01-30 10:40 ` steby at enea dot se
2007-01-30 10:43 ` steby at enea dot se
2007-02-09  1:17 ` reichelt at gcc dot gnu dot org
2007-02-09 22:09 ` reichelt at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).