This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/79904] ICE in annotate_constant_pool_refs, at config/s390/s390.c:7909
- From: "krebbel at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 24 Mar 2017 13:53:02 +0000
- Subject: [Bug target/79904] ICE in annotate_constant_pool_refs, at config/s390/s390.c:7909
- Auto-submitted: auto-generated
- References: <bug-79904-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79904
--- Comment #7 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Author: krebbel
Date: Fri Mar 24 13:52:30 2017
New Revision: 246443
URL: https://gcc.gnu.org/viewcvs?rev=246443&root=gcc&view=rev
Log:
S/390: PR79904: Disallow reg + sym_ref literal pool addresses.
We accept reg + sym_ref as valid address if sym_ref is a literal pool
reference knowing that it will be rewritten as r13 + reg + offset.
However, annotate_constant_pool_refs was never able to handle that.
With the patch only single sym_refs are accepted.
Regression tested on s390x.
2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
PR target/79904
* config/s390/s390.c (s390_decompose_address): Reject reg +
sym_ref literal pool references.
gcc/testsuite/ChangeLog:
2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* gcc.dg/ubsan/pr79904-2.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/ubsan/pr79904-2.c
Modified:
trunk/gcc/config/s390/s390.c
trunk/gcc/testsuite/ChangeLog