This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/46893] [4.5/4.6 Regression] ICE: in trunc_int_for_mode, at explow.c:56 with -O -g


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]