This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/46893] [4.5/4.6 Regression] ICE: in trunc_int_for_mode, at explow.c:56 with -O -g
- From: "aoliva at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Dec 2010 04:49:39 +0000
- Subject: [Bug debug/46893] [4.5/4.6 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
Alexandre Oliva <aoliva at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #22761|0 |1
is obsolete| |
--- Comment #4 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2010-12-16 04:49:23 UTC ---
Created attachment 22779
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22779
Improved patch
Jakub, your patch would work for VIEW_CONVERT_EXPR, but not for other
field-access operations that may reach that point.
I'm trying this patch. Only the first hunk is needed to fix the bug. The last
hunk to simplify-rtx might be useful to detect other similar bugs, and the
other simplify-rtx hunks ensure the operations that are only appropriate for
int scalars are not applied to other types.
I haven't tested this yet.