This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/16702] ICE (segfault) when compiling qemu with -O on x86_64 with gcc 3.4
- From: "belyshev at lubercy dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Aug 2004 16:44:03 -0000
- Subject: [Bug rtl-optimization/16702] ICE (segfault) when compiling qemu with -O on x86_64 with gcc 3.4
- References: <20040725010216.16702.ge@gabrielebner.at>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From belyshev at lubercy dot com 2004-08-05 16:43 -------
small testcase, use "-O1":
------------------------------------------------------------------------------
register unsigned int EAX asm ("r14");
void foo (unsigned int num)
{
EAX = (EAX & 0xffff0000) | (num & 0xffff);
}
------------------------------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
reg_bitfield_target_p (x=0xb7aeb840, body=0xb7b4cf18) at
../../gcc/gcc/combine.c:12342
12342 if (GET_CODE (target) == SUBREG)
(gdb) where
#0 reg_bitfield_target_p (x=0xb7aeb840, body=0xb7b4cf18) at
../../gcc/gcc/combine.c:12342
#1 0x08395b0e in distribute_notes (notes=0xb7b4cbdc, from_insn=0xb7ba8230,
i3=0xb7ba8280,
i2=0x0) at ../../gcc/gcc/combine.c:12815
#2 0x0838037f in try_combine (i3=0xb7ba8280, i2=0xb7ba8230, i1=0x0,
new_direct_jump_p=0xbfffede4) at ../../gcc/gcc/combine.c:2632
#3 0x0837cb34 in combine_instructions (f=0xb7b93420, nregs=62) at
../../gcc/gcc/combine.c:633
#4 0x08317055 in rest_of_handle_combine (decl=0xb7aeb8b0, insns=0xb7b93420)
at ../../gcc/gcc/toplev.c:2798
#5 0x08317f2f in rest_of_compilation (decl=0xb7af4cb0) at
../../gcc/gcc/toplev.c:3377
#6 0x0836b6e4 in tree_rest_of_compilation (fndecl=0xb7af4cb0, nested_p=false)
at ../../gcc/gcc/tree-optimize.c:168
#7 0x0806b559 in c_expand_body_1 (fndecl=0xb7af4cb0, nested_p=0)
at ../../gcc/gcc/c-decl.c:6158
#8 0x0806b74d in c_expand_body (fndecl=0xb7af4cb0) at ../../gcc/gcc/c-decl.c:6190
#9 0x0836dbaf in cgraph_expand_function (node=0xb7af4e0c) at
../../gcc/gcc/cgraphunit.c:538
#10 0x0836cfb3 in cgraph_assemble_pending_functions () at
../../gcc/gcc/cgraphunit.c:144
#11 0x0836d0d4 in cgraph_finalize_function (decl=0xb7af4cb0, nested=false)
at ../../gcc/gcc/cgraphunit.c:225
#12 0x0806b441 in finish_function () at ../../gcc/gcc/c-decl.c:6115
#13 0x0804a806 in yyparse () at c-parse.y:385
#14 0x08052870 in c_parse_file () at c-parse.y:3029
#15 0x0809d38a in c_common_parse_file (set_yydebug=-1213286224) at
../../gcc/gcc/c-opts.c:1237
#16 0x08315452 in compile_file () at ../../gcc/gcc/toplev.c:1822
#17 0x08319bbe in do_compile () at ../../gcc/gcc/toplev.c:4651
#18 0x08319c53 in toplev_main (argc=3081681072, argv=0xbffff914) at
../../gcc/gcc/toplev.c:4691
#19 0x080bc83c in main (argc=-1213286224, argv=0xb7aeb8b0) at
../../gcc/gcc/main.c:35
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
GCC build triplet|x86_64-pc-linux-gnu |
GCC host triplet|x86_64-pc-linux-gnu |
Known to fail| |3.4.1 3.4.2
Last reconfirmed|0000-00-00 00:00:00 |2004-08-05 16:43:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16702