[Bug target/61586] ICE on alpha in alpha_handle_trap_shadows, at config/alpha/alpha.c:8724
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Jun 24 17:33:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61586
Uroš Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-06-24
CC| |rth at gcc dot gnu.org,
| |ubizjak at gmail dot com
Ever confirmed|0 |1
--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Michael Cree from comment #0)
> I wonder if this ICE is related in any way to bug 56858.
No, this one is different. The function trips on (barrier) that follows
__builtin_trap. Expand will create:
;; __builtin_trap ();
(insn 668 667 669 (trap_if (const_int 1 [0x1])
(const_int 0 [0])) -1
(nil))
(barrier 669 668 0)
(gdb) up
#2 0x0000000000be59e6 in alpha_handle_trap_shadows () at
/home/uros/gcc-svn/trunk/gcc/config/alpha/alpha.c:8790
8790 gcc_unreachable ();
(gdb) list
8785 case CALL_INSN:
8786 case CODE_LABEL:
8787 goto close_shadow;
8788
8789 default:
8790 gcc_unreachable ();
8791 }
8792 }
8793 else
8794 {
(gdb) p debug_rtx (i)
(barrier 669 668 1514)
Probably __builtin_trap should close trap shadow here. Let's ask rth.
More information about the Gcc-bugs
mailing list