From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22156 invoked by alias); 12 Jan 2015 13:50:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 21461 invoked by uid 48); 12 Jan 2015 13:50:30 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/63974] [5 Regression] gcc.c-torture/compile/991213-3.c ICEs with -mabi=ilp32 Date: Mon, 12 Jan 2015 13:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: critical X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg00802.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63974 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |jakub at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Created attachment 34423 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34423&action=edit gcc5-pr63974.patch Untested fix. The bug is that convert_memory_address (Pmode, ...) is called twice, which is not possible for VOIDmode constants. As optabs.c (indirectly from emit_indirect_jump) already calls it, because the argument is built with create_address_operand and the EXPAND_ADDRESS case in maybe_legitimize_operand calls convert_memory_address (Pmode, ...), the other convert_memory_address call is only harmful. I don't have easy access to any POINTERS_EXTEND_UNSIGNED target though, so can't test it easily.