middle-end/97162 - fix ICE when building gamess
authorRichard Biener <rguenther@suse.de>
Wed, 23 Sep 2020 08:07:37 +0000 (10:07 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 23 Sep 2020 08:09:40 +0000 (10:09 +0200)
commit371f0b990f2bbf638b44da27cf6fc5f86e0d6d4e
tree55362519fc12a9a50f2ab3751fd6d5bf5341d09d
parent6b4e8bf88f1172ce8561f57b12fb81063b21a78f
middle-end/97162 - fix ICE when building gamess

This appropriately guards the check for a hard register in
compare_base_decls which otherwise ICEs when passed a CONST_DECL.

2020-09-23  Richard Biener  <rguenther@suse.de>

PR middle-end/97162
* alias.c (compare_base_decls): Use DECL_HARD_REGISTER
and guard with VAR_P.
gcc/alias.c