From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21350 invoked by alias); 21 Apr 2015 21:15:53 -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 21318 invoked by uid 48); 21 Apr 2015 21:15:49 -0000 From: "chihin.ko at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/65821] [4.8/4.9/5/6 regression] incorrect debug line # info for main Date: Tue, 21 Apr 2015 21:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chihin.ko at oracle dot com X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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-04/txt/msg01760.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65821 --- Comment #4 from chihin ko --- (In reply to Richard Biener from comment #3) > What version works correctly? (please provide the testcase as attachment as > well) < 0><0x0000000b> DW_TAG_compile_unit DW_AT_producer "GNU C++ 4.7.2" DW_AT_language DW_LANG_C_plus_plus ... ... < 1><0x00000547> DW_TAG_subprogram DW_AT_external yes(1) DW_AT_name "main" DW_AT_decl_file 0x00000001 /workspace/chko/ws/dinstall/dbx_test/intel_S11_gcc482/c++defargs3.dbx,gcc/g47/c++defargs3.cc DW_AT_decl_line 0x0000001d DW_AT_type <0x00000371> DW_AT_low_pc 0x00400b02 DW_AT_high_pc 0x00400b62 ... ... 0x00400b02 [ 30, 0] NS 0x00400b0a [ 31, 0] NS 0x00400b22 [ 32, 0] NS DI=0x1 0x00400b35 [ 33, 0] NS 0x00400b3f [ 34, 0] NS 0x00400b49 [ 35, 0] NS