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.