From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28797 invoked by alias); 1 Feb 2015 17:32:24 -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 28665 invoked by uid 55); 1 Feb 2015 17:32:20 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/64663] [4.8/4.9 Regression] ICE at -O1 and above with -g enabled on x86_64-linux-gnu Date: Sun, 01 Feb 2015 17:32: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: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub 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-02/txt/msg00038.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64663 --- Comment #7 from Jakub Jelinek --- Author: jakub Date: Sun Feb 1 17:31:48 2015 New Revision: 220321 URL: https://gcc.gnu.org/viewcvs?rev=220321&root=gcc&view=rev Log: Backported from mainline 2015-01-20 Jakub Jelinek PR debug/64663 * dwarf2out.c (decl_piece_node): Don't put bitsize into mode if bitsize <= 0. (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl, dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit sizes and positions. * gcc.dg/pr64663.c: New test. Added: branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr64663.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/dwarf2out.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog