[Bug debug/56510] New: adding -g compiles 'forever' vs 49s

sam-gccbug at rushing dot nightmare.com gcc-bugzilla@gcc.gnu.org
Sat Mar 2 23:57:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56510

             Bug #: 56510
           Summary: adding -g compiles 'forever' vs 49s
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sam-gccbug@rushing.nightmare.com


Created attachment 29568
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29568
repro

The file is output from another compiler, in CPS form (i.e., all funs are tail
calls).
If I leave off '-g' it takes 49 seconds to compile (2.4GHz core i7)
If I add '-g' it takes 'forever' (> 90 mins).
Reproduced on OS X (10.8.2) x86_64, Linux Ubuntu (w/gcc4.6.3), FreeBSD 7.3.
I believe this bug affects gcc going back to 4.6 and earlier.  I have a copy of
4.2 sitting around that does not seem to have the problem, though.

gcc was configured: "./configure --enable-languages=c,c++"
built with "make -j 16"

command: /usr/local/bin/gcc -std=c99 -O3 -g -I./include self/compile.c -o
self/compile



More information about the Gcc-bugs mailing list