[Bug middle-end/51220] gcc/libquadmath/math/nanq.c:9:20: ICE: in int_mode_ for_mode, at stor-layout.c:424

2011-12-08 Thread danglin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51220

John David Anglin danglin at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED

--- Comment #4 from John David Anglin danglin at gcc dot gnu.org 2011-12-09 
02:27:53 UTC ---
Fixed by revert.


[Bug middle-end/51220] gcc/libquadmath/math/nanq.c:9:20: ICE: in int_mode_ for_mode, at stor-layout.c:424

2011-11-19 Thread danglin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51220

--- Comment #2 from John David Anglin danglin at gcc dot gnu.org 2011-11-20 
00:38:54 UTC ---
Created attachment 25863
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25863
Preprocessed source


[Bug middle-end/51220] gcc/libquadmath/math/nanq.c:9:20: ICE: in int_mode_ for_mode, at stor-layout.c:424

2011-11-19 Thread danglin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51220

--- Comment #1 from John David Anglin danglin at gcc dot gnu.org 2011-11-20 
00:36:14 UTC ---
Breakpoint 1, int_mode_for_mode (mode=VOIDmode) at
../../gcc/gcc/stor-layout.c:424
424  gcc_unreachable ();
(gdb) bt
#0  int_mode_for_mode (mode=VOIDmode) at ../../gcc/gcc/stor-layout.c:424
#1  0x01d9183c in extract_bit_field_1 (str_rtx=0x7ae252b8, bitsize=16,
bitnum=0, unsignedp=1, packedp=0 '\000', target=0x0, mode=BLKmode,
tmode=SImode, fallback_p=1 '\001') at ../../gcc/gcc/expmed.c:1304
#2  0x01d92af0 in extract_bit_field (str_rtx=0x7ae252b8, bitsize=16, bitnum=0,
unsignedp=1, packedp=0 '\000', target=0x0, mode=BLKmode, tmode=SImode) at
../../gcc/gcc/expmed.c:1688
#3  0x01d8f3dc in store_bit_field_1 (str_rtx=0x7af068e0, bitsize=48, bitnum=16,
bitregion_start=0, bitregion_end=0, fieldmode=DImode, value=0x7ae252c0,
fallback_p=1 '\001') at ../../gcc/gcc/expmed.c:568
#4  0x01d900ec in store_bit_field (str_rtx=0x7af068e0, bitsize=48, bitnum=16,
bitregion_start=0, bitregion_end=0, fieldmode=VOIDmode, value=0x7ae252c0) at
../../gcc/gcc/expmed.c:852
#5  0x00a12d28 in store_field (target=0x7af068e0, bitsize=48, bitpos=16,
bitregion_start=0, bitregion_end=0, mode=VOIDmode, exp=0x7af13c00,
type=0x7af1a3c0, alias_set=0, nontemporal=0 '\000') at
../../gcc/gcc/expr.c:6432
#6  0x00a07bc8 in expand_assignment (to=0x7af15560, from=0x7af13c00,
nontemporal=0 '\000') at ../../gcc/gcc/expr.c:4823
#7  0x01a50a04 in expand_gimple_stmt_1 (stmt=0x7af16510) at
../../gcc/gcc/cfgexpand.c:2171
#8  0x01a50f64 in expand_gimple_stmt (stmt=0x7af16510) at
../../gcc/gcc/cfgexpand.c:2268
#9  0x01a5b328 in expand_gimple_basic_block (bb=0x7aec56c0) at
../../gcc/gcc/cfgexpand.c:4015
#10 0x01a5d9b4 in gimple_expand_cfg () at ../../gcc/gcc/cfgexpand.c:4523
#11 0x010653f0 in execute_one_pass (pass=0x40014050) at
../../gcc/gcc/passes.c:2074
#12 0x010656e0 in execute_pass_list (pass=0x40014050) at
../../gcc/gcc/passes.c:2129
#13 0x02c23d78 in tree_rest_of_compilation (fndecl=0x7af0f480) at
../../gcc/gcc/tree-optimize.c:420
#14 0x0072d0a4 in cgraph_expand_function (node=0x7aed6280) at
../../gcc/gcc/cgraphunit.c:1819
#15 0x0072d358 in cgraph_expand_all_functions () at
../../gcc/gcc/cgraphunit.c:1886
#16 0x0072e448 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:2199
#17 0x0072a9cc in cgraph_finalize_compilation_unit () at
../../gcc/gcc/cgraphunit.c:1327
#18 0x000d989c in c_write_global_declarations () at
../../gcc/gcc/c-decl.c:10023
#19 0x0122d13c in compile_file () at ../../gcc/gcc/toplev.c:581
#20 0x01230950 in do_compile () at ../../gcc/gcc/toplev.c:1931
#21 0x01230c3c in toplev_main (argc=14, argv=0x7eff052c) at
../../gcc/gcc/toplev.c:2007
#22 0x003fcda4 in main (argc=14, argv=0x7eff052c) at ../../gcc/gcc/main.c:36


[Bug middle-end/51220] gcc/libquadmath/math/nanq.c:9:20: ICE: in int_mode_ for_mode, at stor-layout.c:424

2011-11-19 Thread danglin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51220

--- Comment #3 from John David Anglin danglin at gcc dot gnu.org 2011-11-20 
00:45:14 UTC ---
Guessing this was introduced by:

2011-11-16  Andreas Krebbel  andreas.kreb...@de.ibm.com

PR middle-end/50325
* expmed.c (store_bit_field_1): Use extract_bit_field on big
endian targets if the source cannot be exactly covered by word
mode chunks.