public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/58382] New: [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55
@ 2013-09-10 12:04 danglin at gcc dot gnu.org
  2013-09-10 13:37 ` [Bug middle-end/58382] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2013-09-10 12:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58382

            Bug ID: 58382
           Summary: [4.9 Regression] unwind.inc:136:1: ICE: in
                    trunc_int_for_mode, at explow.c:55
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
              Host: hppa64-hp-hpux11.11
            Target: hppa64-hp-hpux11.11
             Build: hppa64-hp-hpux11.11

Created attachment 30786
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30786&action=edit
Preprocessed source

/test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/
-B/opt/gnu64/gcc/g
cc-4.9/hppa64-hp-hpux11.11/bin/
-B/opt/gnu64/gcc/gcc-4.9/hppa64-hp-hpux11.11/lib
/ -isystem /opt/gnu64/gcc/gcc-4.9/hppa64-hp-hpux11.11/include -isystem
/opt/gnu6
4/gcc/gcc-4.9/hppa64-hp-hpux11.11/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC  
-
W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes
-Wmissing
-prototypes -Wold-style-definition  -isystem ./include  
-frandom-seed=fixed-see
d -Dpa64=1 -DELF=1 -mlong-calls  -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-pr
otector   -frandom-seed=fixed-seed -Dpa64=1 -DELF=1 -mlong-calls  -I. -I.
-I../.
././gcc -I../../../gcc/libgcc -I../../../gcc/libgcc/.
-I../../../gcc/libgcc/../g
cc -I../../../gcc/libgcc/../include  -DHAVE_CC_TLS -DUSE_EMUTLS -o unwind-dw2.o 
-MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -c
../../../gcc/libgcc/
unwind-dw2.c -fvisibility=hidden -DHIDE_EXPORTS
In file included from ../../../gcc/libgcc/unwind-dw2.c:1698:0:
../../../gcc/libgcc/unwind.inc: In function '_Unwind_RaiseException':
../../../gcc/libgcc/unwind.inc:136:1: internal compiler error: in
trunc_int_for_mode, at explow.c:55
 }
 ^

 /test/gnu/gcc/objdir/./gcc/cc1 -fpreprocessed unwind-dw2.i -quiet -dumpbase
unw
ind-dw2.c -mlong-calls -auxbase-strip unwind-dw2.o -g -g -g -O2 -O2 -O2 -Wextra 
-Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes
-Wmissing-p
rototypes -Wold-style-definition -version -frandom-seed=fixed-seed
-fbuilding-li
bgcc -fno-stack-protector -frandom-seed=fixed-seed -fexceptions
-fvisibility=hidden -o unwind-dw2.s
GNU C (GCC) version 4.9.0 20130909 (experimental) [trunk revision 202391]
(hppa64-hp-hpux11.11)
        compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.2,
MPC version 1.0
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C (GCC) version 4.9.0 20130909 (experimental) [trunk revision 202391]
(hppa64-hp-hpux11.11)
        compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.2,
MPC version 1.0
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 1887fdfaba237bed4d949cbaeffd7a9b
In file included from ../../../gcc/libgcc/unwind-dw2.c:1698:0:
../../../gcc/libgcc/unwind.inc: In function '_Unwind_RaiseException':
../../../gcc/libgcc/unwind.inc:136:1: internal compiler error: in
trunc_int_for_mode, at explow.c:55
 }
 ^

Introduced in r202391:

2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>

        * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
        of the associated gen_rtx_* call.
        * caller-save.c (init_caller_save): Likewise.
        * combine.c (find_split_point, make_extraction): Likewise.
        (make_compound_operation): Likewise.
        * dwarf2out.c (mem_loc_descriptor): Likewise.
        * explow.c (plus_constant, probe_stack_range): Likewise.
        * expmed.c (expand_mult_const): Likewise.
        * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
        * reload1.c (init_reload): Likewise.
        * valtrack.c (cleanup_auto_inc_dec): Likewise.
        * var-tracking.c (adjust_mems): Likewise.
        * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
        rather than gen_rtx_fmt_ee.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/58382] [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55
  2013-09-10 12:04 [Bug middle-end/58382] New: [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55 danglin at gcc dot gnu.org
@ 2013-09-10 13:37 ` rguenth at gcc dot gnu.org
  2013-09-10 15:06 ` danglin at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-09-10 13:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58382

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rsandifo at gcc dot gnu.org
   Target Milestone|---                         |4.9.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/58382] [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55
  2013-09-10 12:04 [Bug middle-end/58382] New: [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55 danglin at gcc dot gnu.org
  2013-09-10 13:37 ` [Bug middle-end/58382] " rguenth at gcc dot gnu.org
@ 2013-09-10 15:06 ` danglin at gcc dot gnu.org
  2013-09-10 20:14 ` rsandifo at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2013-09-10 15:06 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58382

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> ---
Breakpoint 1, trunc_int_for_mode (c=8, mode=DFmode)
    at ../../gcc/gcc/explow.c:55
55        gcc_assert (SCALAR_INT_MODE_P (mode));
(gdb) bt
#0  trunc_int_for_mode (c=8, mode=DFmode) at ../../gcc/gcc/explow.c:55
#1  0x40000000006bb254 in gen_int_mode (c=8, mode=DFmode)
    at ../../gcc/gcc/emit-rtl.c:420
#2  0x400000000110e470 in adjust_mems (loc=0x800003fffd533100, old_rtx=0x0,
    data=0x800003fffdff14b8) at ../../gcc/gcc/var-tracking.c:1058
#3  0x4000000000c36a20 in simplify_replace_fn_rtx (x=0x800003fffd533100,
    old_rtx=0x0, fn=0x40000000002ec440, data=0x800003fffdff14b8)
    at ../../gcc/gcc/simplify-rtx.c:426
#4  0x400000000110e168 in adjust_mems (loc=0x800003fffd5cc558, old_rtx=0x0,
    data=0x800003fffdff14b8) at ../../gcc/gcc/var-tracking.c:1035
#5  0x4000000000c36a20 in simplify_replace_fn_rtx (x=0x800003fffd5cc558,
    old_rtx=0x0, fn=0x40000000002ec440, data=0x800003fffdff14b8)
    at ../../gcc/gcc/simplify-rtx.c:426
#6  0x400000000110eb78 in adjust_mem_stores (loc=0x800003fffd5cc558,
    expr=0x800003fffd5cc570, data=0x800003fffdff14b8)
    at ../../gcc/gcc/var-tracking.c:1157
#7  0x4000000000bc7e98 in note_stores (x=0x800003fffd5cc570,
    fun=0x40000000002ec450, data=0x800003fffdff14b8)
    at ../../gcc/gcc/rtlanal.c:1518
#8  0x400000000110ec64 in adjust_insn (bb=0x800003fffda7eb60,
    insn=0x800003fffdae8798) at ../../gcc/gcc/var-tracking.c:1207
#9  0x4000000001139de8 in vt_initialize ()
    at ../../gcc/gcc/var-tracking.c:9973
---Type <return> to continue, or q <return> to quit---
#10 0x400000000113ad54 in variable_tracking_main_1 ()
    at ../../gcc/gcc/var-tracking.c:10171
#11 0x400000000113b074 in variable_tracking_main ()
    at ../../gcc/gcc/var-tracking.c:10224
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) frame 8
#8  0x400000000110ec64 in adjust_insn (bb=0x800003fffda7eb60,
    insn=0x800003fffdae8798) at ../../gcc/gcc/var-tracking.c:1207
1207      note_stores (PATTERN (insn), adjust_mem_stores, &amd);
(gdb) p debug_rtx(insn)
(insn/f:TI 248 240 249 2 (set (mem:DF (post_inc:DF (reg:DI 1 %r1)) [0 S8 A64])
        (reg:DF 49 %fr21)) ../../../gcc/libgcc/unwind.inc:83 119 {*pa.md:4025}
     (expr_list:REG_DEAD (reg:DF 49 %fr21)
        (expr_list:REG_FRAME_RELATED_EXPR (set (mem:DF (plus:DI (reg/f:DI 30
%r30)
                        (const_int -200 [0xffffffffffffff38])) [0 S8 A64])
                (reg:DF 49 %fr21))
            (nil))))
$1 = void


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/58382] [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55
  2013-09-10 12:04 [Bug middle-end/58382] New: [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55 danglin at gcc dot gnu.org
  2013-09-10 13:37 ` [Bug middle-end/58382] " rguenth at gcc dot gnu.org
  2013-09-10 15:06 ` danglin at gcc dot gnu.org
@ 2013-09-10 20:14 ` rsandifo at gcc dot gnu.org
  2013-09-10 21:24 ` dave.anglin at bell dot net
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2013-09-10 20:14 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58382

--- Comment #2 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
I think this is a target bug.  The backend prologue code has things like:

          addr = gen_rtx_MEM (DFmode, gen_rtx_POST_INC (DFmode, tmpreg));

but {PRE,POST}_{INC,DEC} is an address rtx, so it should have the same mode
as the modified register.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/58382] [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55
  2013-09-10 12:04 [Bug middle-end/58382] New: [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55 danglin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2013-09-10 20:14 ` rsandifo at gcc dot gnu.org
@ 2013-09-10 21:24 ` dave.anglin at bell dot net
  2013-09-14 16:58 ` [Bug target/58382] " danglin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dave.anglin at bell dot net @ 2013-09-10 21:24 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58382

--- Comment #3 from dave.anglin at bell dot net ---
Agreed.  Testing fix.

Thanks,
Dave


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/58382] [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55
  2013-09-10 12:04 [Bug middle-end/58382] New: [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55 danglin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2013-09-10 21:24 ` dave.anglin at bell dot net
@ 2013-09-14 16:58 ` danglin at gcc dot gnu.org
  2013-09-14 17:00 ` danglin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2013-09-14 16:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58382

--- Comment #4 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Sat Sep 14 16:58:01 2013
New Revision: 202594

URL: http://gcc.gnu.org/viewcvs?rev=202594&root=gcc&view=rev
Log:
    PR target/58382
    * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
    calls to word_mode.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/pa/pa.c


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/58382] [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55
  2013-09-10 12:04 [Bug middle-end/58382] New: [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55 danglin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2013-09-14 16:58 ` [Bug target/58382] " danglin at gcc dot gnu.org
@ 2013-09-14 17:00 ` danglin at gcc dot gnu.org
  2013-09-14 17:03 ` danglin at gcc dot gnu.org
  2013-09-14 17:04 ` danglin at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2013-09-14 17:00 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58382

--- Comment #5 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Sat Sep 14 17:00:32 2013
New Revision: 202595

URL: http://gcc.gnu.org/viewcvs?rev=202595&root=gcc&view=rev
Log:
    PR target/58382
    * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
    calls to word_mode.


Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/config/pa/pa.c


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/58382] [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55
  2013-09-10 12:04 [Bug middle-end/58382] New: [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55 danglin at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2013-09-14 17:00 ` danglin at gcc dot gnu.org
@ 2013-09-14 17:03 ` danglin at gcc dot gnu.org
  2013-09-14 17:04 ` danglin at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2013-09-14 17:03 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58382

--- Comment #6 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Sat Sep 14 17:03:32 2013
New Revision: 202596

URL: http://gcc.gnu.org/viewcvs?rev=202596&root=gcc&view=rev
Log:
    PR target/58382
    * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
    calls to word_mode.


Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/config/pa/pa.c


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/58382] [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55
  2013-09-10 12:04 [Bug middle-end/58382] New: [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55 danglin at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2013-09-14 17:03 ` danglin at gcc dot gnu.org
@ 2013-09-14 17:04 ` danglin at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu.org @ 2013-09-14 17:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58382

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from John David Anglin <danglin at gcc dot gnu.org> ---
Fixed.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-09-14 17:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-10 12:04 [Bug middle-end/58382] New: [4.9 Regression] unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55 danglin at gcc dot gnu.org
2013-09-10 13:37 ` [Bug middle-end/58382] " rguenth at gcc dot gnu.org
2013-09-10 15:06 ` danglin at gcc dot gnu.org
2013-09-10 20:14 ` rsandifo at gcc dot gnu.org
2013-09-10 21:24 ` dave.anglin at bell dot net
2013-09-14 16:58 ` [Bug target/58382] " danglin at gcc dot gnu.org
2013-09-14 17:00 ` danglin at gcc dot gnu.org
2013-09-14 17:03 ` danglin at gcc dot gnu.org
2013-09-14 17:04 ` danglin at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).