From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3891 invoked by alias); 26 Sep 2012 11:44:05 -0000 Received: (qmail 3840 invoked by uid 48); 26 Sep 2012 11:43:41 -0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/54688] [4.8 regression] violation of implicit restriction "No_Elaboration_Code" on a-ioexce.ads Date: Wed, 26 Sep 2012 11:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-09/txt/msg02156.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54688 Eric Botcazou changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bernds at gcc dot gnu.org --- Comment #3 from Eric Botcazou 2012-09-26 11:43:40 UTC --- It's r191493, the transformation is applied to a %sp-based load, which is invalid since the frame is destroyed, and the resulting offset is bogus: In .split4: (insn 52 41 43 4 (set (reg:SI 1 %g1 [orig:137 D.6097+8 ] [137]) (mem/c:SI (plus:SI (reg/f:SI 14 %sp) (const_int 80 [0x50])) [23 D.6097+8 S4 A64])) /home/eric/svn/gcc/gcc/ada/restrict.adb:1067 61 {*movsi_insn} (expr_list:REG_EQUIV (mem/c:SI (plus:SI (reg/f:SI 14 %sp) (const_int 80 [0x50])) [23 D.6097+8 S4 A64]) (nil))) [...] (note 60 43 61 4 NOTE_INSN_EPILOGUE_BEG) (insn 61 60 62 4 (set (reg/f:SI 14 %sp) (minus:SI (reg/f:SI 14 %sp) (const_int -88 [0xffffffffffffffa8]))) /home/eric/svn/gcc/gcc/ada/restrict.adb:1068 183 {subsi3} In .sched2: (insn 61 64 52 4 (set (reg/f:SI 14 %sp) (minus:SI (reg/f:SI 14 %sp) (const_int -88 [0xffffffffffffffa8]))) /home/eric/svn/gcc/gcc/ada/restrict.adb:1068 183 {subsi3} (nil)) (insn 52 61 43 4 (set (reg:SI 1 %g1 [orig:137 D.6097+8 ] [137]) (mem/c:SI (plus:SI (reg/f:SI 14 %sp) (const_int 168 [0xa8])) [23 D.6097+8 S4 A64])) /home/eric/svn/gcc/gcc/ada/restrict.adb:1067 61 {*movsi_insn} (expr_list:REG_EQUIV (mem/c:SI (plus:SI (reg/f:SI 14 %sp) (const_int 80 [0x50])) [23 D.6097+8 S4 A64]) (nil)))