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]

Re: EGCS 1.1.1 bug with -g


Horst von Brand wrote:
>Ken Rose <rose@acm.org> said:
>> If the -g is omitted, compilation is successful.  The source is:
>
>Strange. Neither egcs-2.91.60 nor 2.91.61 (1.1.1 and 1.1.2-pre1) give any
>trouble, egcs-19990221 also compiles this fine.  Are you sure that DATA or
>LIST aren't #defined elsewhere? OTOH, yours is a cross compiler to COFF.

The compilation is right out of the box, no modifications.  Run under gdb,
it gives the following message:
(gdb) run
Starting program: /home/kenr/egcs-1.1.1/gcc/cc1plus foobar.ii -quiet -dumpbase foobar.cc -g -version -o foobar.s
GNU C++ version egcs-2.91.60 19981201 (egcs-1.1.1 release) (i386-coff) compiled by GNU C version 2.7.2.3.

Program received signal SIGSEGV, Segmentation fault.
0x80ff2c3 in sdbout_one_type (type=0x8212008) at sdbout.c:1251
1251                if (TREE_CODE (tem) == FIELD_DECL
(gdb) 

so it may be related to the use of SDB debugging, rather than stabs or
some other.

 - ken


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