./cc1plus -quiet -O2 -fPIC -gstabs /tmp/t.ii
t.cpp: In constructor 'CsoundGlobalSettings::CsoundGlobalSettings()':
t.cpp:43: internal compiler error: output_operand: invalid expression as
operand
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
#2 0x0000000000667c82 in output_addr_const (file=0xec2670, x=0x2b06d6ddbee0)
at /space//rguenther/src/svn/gcc-4_1-branch/gcc/final.c:3337
3337 output_operand_lossage ("invalid expression as operand");
(gdb) list
3332 OUTPUT_ADDR_CONST_EXTRA (file, x, fail);
3333 break;
3334
3335 fail:
3336 #endif
3337 output_operand_lossage ("invalid expression as operand");
3338 }
3339 }
3340 ^L
3341 /* A poor man's fprintf, with the added features of %I, %R, %L, and %U.
(gdb) print x
$1 = (rtx) 0x2b06d6ddbee0
(gdb) call debug_rtx (x)
(unspec:DI [
(symbol_ref:DI ("_ZNSs4_Rep20_S_empty_rep_storageE") [flags 0x40]
<var_decl 0x2b06d65739a0 _S_empty_rep_storage>)
] 2)
(gdb)
#0 internal_error (gmsgid=0xa863b6 "%s")
at /space//rguenther/src/svn/gcc-4_1-branch/gcc/diagnostic.c:546
#1 0x0000000000666cb9 in output_operand_lossage (
cmsgid=0xa864f5 "invalid expression as operand")
at /space//rguenther/src/svn/gcc-4_1-branch/gcc/final.c:2835
#2 0x0000000000667c82 in output_addr_const (file=0xec2670, x=0x2b06d6ddbee0)
at /space//rguenther/src/svn/gcc-4_1-branch/gcc/final.c:3337
#3 0x00000000005eba51 in dbxout_finish_complex_stabs (sym=0x2b06d6b92630,
code=N_LCSYM, addr=0x2b06d6ddbee0, label=0x0, number=0)
at /space//rguenther/src/svn/gcc-4_1-branch/gcc/dbxout.c:896
#4 0x00000000005f25e6 in dbxout_symbol_location (decl=0x2b06d6b92630,
type=0x2b06d65820b0, suffix=0x0, home=0x2b06d6da47e0)
at /space//rguenther/src/svn/gcc-4_1-branch/gcc/dbxout.c:2967
#5 0x00000000005f1ff1 in dbxout_symbol (decl=0x2b06d6b92630, local=1)
at /space//rguenther/src/svn/gcc-4_1-branch/gcc/dbxout.c:2717
happens with -gstabs only. Works with 3.3 hammer branch.
--
Summary: [4.1 Regression] ICE in output_operand: invalid
expression as operand [stabs]
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
GCC target triplet: x86_64-*-*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30472