re PR bootstrap/51725 (segfault in stage 3 when compiling gcc/opts.c for sparc64...
authorAlexandre Oliva <aoliva@redhat.com>
Sat, 7 Jan 2012 21:37:15 +0000 (21:37 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Sat, 7 Jan 2012 21:37:15 +0000 (21:37 +0000)
commitfaead9f73f57ebd6bbdad81b33656e81d35af654
treeec96ad4cd466791636722eef9137d3e821672768
parente991086dd64c5b95b33229589171fce6882edd2e
re PR bootstrap/51725 (segfault in stage 3 when compiling gcc/opts.c for sparc64-linux)

PR bootstrap/51725
* cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
Add canonical node to containing_mem chain after the non-canonical
one, even if there weren't any locs to propagate.
(remove_useless_values): Keep only canonical values.
(add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
(cselib_invalidate_mem): Likewise.  Ensure v is canonical, and
canonicalize mem_chain elements that are not discarded.

From-SVN: r182982
gcc/ChangeLog
gcc/cselib.c