[Bug debug/48866] New: gcc hangs when -g is set

siebert at aicas dot com gcc-bugzilla@gcc.gnu.org
Wed May 4 08:56:00 GMT 2011


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

           Summary: gcc hangs when -g is set
           Product: gcc
           Version: 4.4.4
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: siebert@aicas.com


Created attachment 24178
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24178
Minimum C example I could produce.  The original code was generated C code.

gcc hangs when compiling the attached C source code (on Linux/x86) as follows

> gcc -O2 -c test.c -o test.o -g
[hangs forever...]
^C
> 

The problem disappears without -g or when using -O0. 

> gcc -O2 -c test.c -o test.o
> gcc -O0 -c test.c -o test.o -g
>



More information about the Gcc-bugs mailing list