$ cat mayalias-2.c struct S { short x; }; typedef struct S __attribute__((__may_alias__)) test;
$ ./bin/gcc mayalias-2.c -g mayalias-2.c:2:16: internal compiler error: in splice_child_die, at dwarf2out.c:5641 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. $ ./bin/gcc -v Using built-in specs. Target: mips-sgi-irix6.5 Configured with: ../trunk/configure --prefix=/usr/people/francois/devel/irun --enable-languages=c,fortran --with-gmp=/usr/people/francois/local --enable-mapped-location Thread model: posix gcc version 4.3.0 20071107 (experimental) [trunk revision 129965] (GCC) On mips-sgi-irix6.5, -g uses dwarf2. Using -gstabs instead of -g make it pass. -- Summary: ICE on __may_alias__ with -g Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fxcoudert at gcc dot gnu dot org GCC build triplet: mips-sgi-irix6.5 GCC host triplet: mips-sgi-irix6.5 GCC target triplet: mips-sgi-irix6.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34041