From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17057 invoked by alias); 3 May 2013 11:49:55 -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 17012 invoked by uid 48); 3 May 2013 11:49:52 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/57106] [4.8/4.9 Regression] -fcompare-debug failure with -O2 -fschedule-insns -funroll-all-loops Date: Fri, 03 May 2013 11:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.1 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 X-SW-Source: 2013-05/txt/msg00196.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57106 Uros Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ubizjak at gmail dot com, | |ysrumyan at gmail dot com --- Comment #3 from Uros Bizjak 2013-05-03 11:49:51 UTC --- The dependence in i386.c:add_parameter_dependencies adds dependence of the instruction with wrong index. Proposed patch: --cut here-- Index: i386.c =================================================================== --- i386.c (revision 198569) +++ i386.c (working copy) @@ -24662,7 +24662,7 @@ add_parameter_dependencies (rtx call, rtx head) /* Add output depdendence between two function arguments if chain of output arguments contains likely spilled HW registers. */ if (is_spilled) - add_dependence (last, insn, REG_DEP_OUTPUT); + add_dependence (first_arg, insn, REG_DEP_OUTPUT); first_arg = last = insn; } else --cut here-- CC'd author.