diff options
author | Robin Dapp <rdapp@linux.vnet.ibm.com> | 2015-11-23 08:05:33 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@gcc.gnu.org> | 2015-11-23 08:05:33 +0000 |
commit | e63d44c2a9d2a95c7f23de189966be0a3dcc5923 (patch) | |
tree | f06f2517d73d42a2b0cfdbbf9e92039a2fbf3069 /gcc/omp-low.c | |
parent | 6e9966e8303f5f39870a11d96a64b376a2fab347 (diff) | |
download | gcc-e63d44c2a9d2a95c7f23de189966be0a3dcc5923.zip gcc-e63d44c2a9d2a95c7f23de189966be0a3dcc5923.tar.gz gcc-e63d44c2a9d2a95c7f23de189966be0a3dcc5923.tar.bz2 |
S/390: Fix symbol ref alignment
This patch fixes the treatment of symbol ref alignments for
arrays and structs in S390. Until now, the NOT_NATURALLY_ALIGNED flag
was not correctly set for array elements and structs larger than 8
bytes. Therefore, load relative instructions that require a specific
alignment would not always be generated. This patch uses separate flags
for 2-, 4-, and 8-byte alignment to fix the problem.
gcc/testsuite/ChangeLog:
2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
* gcc.target/s390/load-relative-check.c: New test to check
generation of load relative instructions.
gcc/ChangeLog:
2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
* config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
* config/s390/s390.c (s390_check_symref_alignment): Use new
symref flags, early abort on wrong alignment
(s390_secondary_reload): Use new symref flags.
(s390_encode_section_info): Likewise.
* config/s390/predicates.md: Likewise.
From-SVN: r230735
Diffstat (limited to 'gcc/omp-low.c')
0 files changed, 0 insertions, 0 deletions