re PR debug/64663 (ICE at -O1 and above with -g enabled on x86_64-linux-gnu)
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Jan 2015 18:29:58 +0000 (19:29 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 20 Jan 2015 18:29:58 +0000 (19:29 +0100)
commit17cb42833c207240918de8279e171c834093565a
treef0024654ba4929b13177d77f6b91416960580e26
parent73cb399d519cb8ca4a25b0be074aca16096f6e51
re PR debug/64663 (ICE at -O1 and above with -g enabled on x86_64-linux-gnu)

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.

From-SVN: r219906
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr64663.c [new file with mode: 0644]