https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64663
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- 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 <ja...@redhat.com> 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