From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31123 invoked by alias); 22 Feb 2010 13:17:16 -0000 Received: (qmail 30935 invoked by uid 48); 22 Feb 2010 13:17:02 -0000 Date: Mon, 22 Feb 2010 13:17:00 -0000 Subject: [Bug tree-optimization/43141] New: [4.5 Regression] Wrong debug information with IPA-SRA X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" 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: 2010-02/txt/msg02217.txt.bz2 Split out from PR42336. But here's a C testcase where we lose debug info about a parameter that was optimized away: there are no formal parameters in the DWARF output for f. int i; static int f(int) __attribute ((noinline)); static int f(int x) { return i; } int main() { return f(42); } -- Summary: [4.5 Regression] Wrong debug information with IPA-SRA Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: wrong-debug Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rguenth at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43141