debug/10297: -ggdb causes ICE
c.pew@its.utexas.edu
c.pew@its.utexas.edu
Wed Apr 2 14:26:00 GMT 2003
>Number: 10297
>Category: debug
>Synopsis: -ggdb causes ICE
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Wed Apr 02 14:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Curtis Pew
>Release: 3.2.2
>Organization:
>Environment:
powerpc-apple-darwin6.4
>Description:
adding "-ggdb" flag causes "Internal compiler error in default_no_named_section, at varasm.c:5305". works OK for just "-g". Full command and output:
% g++ -v -save-temps -c -ggdb UtilityExcepts.ii
Reading specs from /usr/local/lib/gcc-lib/powerpc-apple-darwin6.4/3.2.2/specs
Configured with: ../gcc-3.2.2/configure
Thread model: single
gcc version 3.2.2
/usr/local/lib/gcc-lib/powerpc-apple-darwin6.4/3.2.2/cc1plus -fpreprocessed UtilityExcepts.ii -fPIC -quiet -dumpbase UtilityExcepts.ii -ggdb -version -o UtilityExcepts.s
GNU CPP version 3.2.2 (cpplib) (Darwin/PowerPC)
GNU C++ version 3.2.2 (powerpc-apple-darwin6.4)
compiled by GNU C version 3.2.2.
UtilityExcepts.ii:0: Internal compiler error in default_no_named_section, at
varasm.c:5305
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Just specify "-ggdb" when compiling. It does the same thing with any file; here's the simplest one I've tried:
class UtilityExcepts {
public:
UtilityExcepts( const char* desc = "" );
const char* description;
};
UtilityExcepts::UtilityExcepts( const char* desc )
: description( desc )
{}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list