summaryrefslogtreecommitdiff
path: root/gcc/common
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2018-12-03 15:07:36 +0000
committerIlya Leoshkevich <iii@gcc.gnu.org>2018-12-03 15:07:36 +0000
commit8c66130b1f8460773912ca3a915f657db466fd39 (patch)
tree56635cab8a70cc95eb2513f0a3b9651ae77860aa /gcc/common
parentdf3fdfa67f485cf68f62b555fb9bb8015fb9e3ad (diff)
S/390: Add support for section anchors
gcc/ChangeLog: 2018-12-03 Ilya Leoshkevich <iii@linux.ibm.com> * common/config/s390/s390-common.c (s390_option_init_struct): Use section anchors by default. * config/s390/s390.c (s390_check_symref_alignment): Handle anchors. (TARGET_MAX_ANCHOR_OFFSET): Use short displacement. * output.h (assemble_align): Pass `align' as unsigned int, so that the value 0x80000000, which corresponds to `aligned(1 << 28)', would pass the `align > BITS_PER_UNIT' check. * varasm.c (assemble_align): Likewise. gcc/testsuite/ChangeLog: 2018-12-03 Ilya Leoshkevich <iii@linux.ibm.com> * gcc.target/s390/nodatarel-1.c: Expect .LANCHOR0@GOTENT instead of a@GOTENT. * gcc.target/s390/section-anchors.c: New test. * gcc.target/s390/section-anchors2.c: New test. * gcc.target/s390/section-anchors3.c: New test. From-SVN: r266741
Diffstat (limited to 'gcc/common')
-rw-r--r--gcc/common/config/s390/s390-common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/common/config/s390/s390-common.c b/gcc/common/config/s390/s390-common.c
index 2f728957e25..59b24654c82 100644
--- a/gcc/common/config/s390/s390-common.c
+++ b/gcc/common/config/s390/s390-common.c
@@ -74,6 +74,9 @@ s390_option_init_struct (struct gcc_options *opts)
/* By default, always emit DWARF-2 unwind info. This allows debugging
without maintaining a stack frame back-chain. */
opts->x_flag_asynchronous_unwind_tables = 1;
+
+ /* Enable section anchors by default. */
+ opts->x_flag_section_anchors = 1;
}
/* Implement TARGET_HANDLE_OPTION. */