aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel@linux.ibm.com>2024-03-14 09:54:31 +0100
committerAndreas Krebbel <krebbel@linux.ibm.com>2024-03-14 10:51:57 +0100
commit90a7da695284da49182446ba45fbcddb9eb7fc91 (patch)
tree6ba55dd468343a688561e0af94262a465f73ff08 /libcpp
parent8f6e0814b4bfd0a399055e9214562aebfcd902ad (diff)
downloadgcc-90a7da695284da49182446ba45fbcddb9eb7fc91.zip
gcc-90a7da695284da49182446ba45fbcddb9eb7fc91.tar.gz
gcc-90a7da695284da49182446ba45fbcddb9eb7fc91.tar.bz2
IBM Z: Fix -munaligned-symbols
With this fix we make sure that only symbols with a natural alignment smaller than 2 are considered misaligned with -munaligned-symbols. Background is that -munaligned-symbols is only supposed to affect symbols whose natural alignment wouldn't be enough to fulfill our ABI requirement of having all symbols at even addresses. Because only these are the cases where we differ from other architectures. gcc/ChangeLog: * config/s390/s390.cc (s390_encode_section_info): Adjust the check for misaligned symbols. * config/s390/s390.opt: Improve documentation. gcc/testsuite/ChangeLog: * gcc.target/s390/aligned-1.c: Add weak and void variables incorporating the cases from unaligned-2.c. * gcc.target/s390/unaligned-1.c: Likewise. * gcc.target/s390/unaligned-2.c: Removed.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions