This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/46893] [4.5 Regression] ICE: in trunc_int_for_mode, at explow.c:56 with -O -g
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 16 Jan 2011 20:20:43 +0000
- Subject: [Bug debug/46893] [4.5 Regression] ICE: in trunc_int_for_mode, at explow.c:56 with -O -g
- Auto-submitted: auto-generated
- References: <bug-46893-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46893
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-16 20:20:24 UTC ---
Author: jakub
Date: Sun Jan 16 20:20:21 2011
New Revision: 168865
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168865
Log:
Backport from mainline
2010-12-16 Jakub Jelinek <jakub@redhat.com>
PR debug/46893
* cfgexpand.c (expand_debug_expr): If GET_MODE (op0) is VOIDmode,
use TYPE_MODE (TREE_TYPE (tem)) instead of mode1.
* gcc.dg/pr46893.c: New test.
Added:
branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/pr46893.c
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/cfgexpand.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog