re PR debug/49544 (ICE in new_elt_loc_list)
authorJakub Jelinek <jakub@redhat.com>
Mon, 27 Jun 2011 16:45:49 +0000 (18:45 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 27 Jun 2011 16:45:49 +0000 (18:45 +0200)
commitdc2a58daabf95cfac0dd346ff717902bdc6e3d93
treea3d72f8f9a1d0c760b61bcb06274339f53519f22
parent0d72f628a4f21a869cb0dba9bbf45be1b17e625d
re PR debug/49544 (ICE in new_elt_loc_list)

PR debug/49544
* cselib.c (promote_debug_loc): If cselib_preserve_constants
and l has two DEBUG_INSN owned locs instead of just one, adjust
the second location's setting_insn too.

* gcc.dg/pr49544.c: New test.

From-SVN: r175540
gcc/ChangeLog
gcc/cselib.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr49544.c [new file with mode: 0644]