From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27293 invoked by alias); 9 Jul 2009 09:05:36 -0000 Received: (qmail 27126 invoked by uid 48); 9 Jul 2009 09:05:18 -0000 Date: Thu, 09 Jul 2009 09:05:00 -0000 Message-ID: <20090709090518.27125.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug rtl-optimization/40667] [4.4/4.5 Regression] stack frames are generated even with -fomit-frame-pointer In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ubizjak at gmail dot com" 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: 2009-07/txt/msg00740.txt.bz2 ------- Comment #4 from ubizjak at gmail dot com 2009-07-09 09:05 ------- For some reason IRA reloads argp using ebp-relative address as: Reloads for insn # 22 Reload 0: reload_in (DI) = (mem/c/i:DI (plus:SI (reg/f:SI 6 bp) (const_int 8 [0x8])) [2 x+0 S8 A32]) GENERAL_REGS, RELOAD_FOR_INPUT (opnum = 1), optional reload_in_reg: (mem/c/i:DI (plus:SI (reg/f:SI 6 bp) (const_int 8 [0x8])) [2 x+0 S8 A32]) Without IRA (4.3.x), gcc reloads argp through esp-relative addr: Reloads for insn # 23 Reload 0: reload_in (DI) = (mem/c/i:DI (plus:SI (reg/f:SI 7 sp) (const_int 12 [0xc])) [2 x+0 S8 A32]) GENERAL_REGS, RELOAD_FOR_INPUT (opnum = 1), optional reload_in_reg: (mem/c/i:DI (plus:SI (reg/f:SI 7 sp) (const_int 12 [0xc])) [2 x+0 S8 A32]) Confirmed, regression from 4.3. -- ubizjak at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vmakarov at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Component|regression |rtl-optimization Ever Confirmed|0 |1 Keywords| |ra Known to work| |4.3.4 Last reconfirmed|0000-00-00 00:00:00 |2009-07-09 09:05:17 date| | Summary|Performance regression: |[4.4/4.5 Regression] stack |stack frames are generated |frames are generated even |even with -fomit-frame- |with -fomit-frame-pointer |pointer | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40667