From: Kugan Vivekanandarajah Date: Wed, 13 Sep 2017 01:28:43 +0000 (+0000) Subject: pr63304_1.c: Remove-mno-fix-cortex-a53-843419. X-Git-Tag: upstream/12.2.0~37028 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6ecd2cf4f29e4a7431c050b8a69c3ab29d7563f;p=platform%2Fupstream%2Fgcc.git pr63304_1.c: Remove-mno-fix-cortex-a53-843419. gcc/testsuite/ChangeLog: 2017-09-13 Kugan Vivekanandarajah * gcc.target/aarch64/pr63304_1.c: Remove-mno-fix-cortex-a53-843419. gcc/ChangeLog: 2017-09-13 Kugan Vivekanandarajah * config/aarch64/aarch64.c (aarch64_override_options_after_change_1): Disable pc relative literal load irrespective of TARGET_FIX_ERR_A53_84341 for default. From-SVN: r252053 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aaf6394..0ac2cf1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-09-13 Kugan Vivekanandarajah + + * config/aarch64/aarch64.c (aarch64_override_options_after_change_1): + Disable pc relative literal load irrespective of TARGET_FIX_ERR_A53_84341 + for default. + 2017-09-12 Eric Botcazou * config/sparc/sparc.c (output_return): Output the source location of diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index de1fbdc..1c14008 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -8986,17 +8986,6 @@ aarch64_override_options_after_change_1 (struct gcc_options *opts) if (opts->x_pcrelative_literal_loads == 1) aarch64_pcrelative_literal_loads = true; - /* This is PR70113. When building the Linux kernel with - CONFIG_ARM64_ERRATUM_843419, support for relocations - R_AARCH64_ADR_PREL_PG_HI21 and R_AARCH64_ADR_PREL_PG_HI21_NC is - removed from the kernel to avoid loading objects with possibly - offending sequences. Without -mpc-relative-literal-loads we would - generate such relocations, preventing the kernel build from - succeeding. */ - if (opts->x_pcrelative_literal_loads == 2 - && TARGET_FIX_ERR_A53_843419) - aarch64_pcrelative_literal_loads = true; - /* In the tiny memory model it makes no sense to disallow PC relative literal pool loads. */ if (aarch64_cmodel == AARCH64_CMODEL_TINY diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index dc5ae01..ed0a858 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-09-13 Kugan Vivekanandarajah + + * gcc.target/aarch64/pr63304_1.c: Remove-mno-fix-cortex-a53-843419. + 017-09-12 Paolo Carlini PR c++/70621 diff --git a/gcc/testsuite/gcc.target/aarch64/pr63304_1.c b/gcc/testsuite/gcc.target/aarch64/pr63304_1.c index 114d8c1..b00f9a6 100644 --- a/gcc/testsuite/gcc.target/aarch64/pr63304_1.c +++ b/gcc/testsuite/gcc.target/aarch64/pr63304_1.c @@ -1,5 +1,5 @@ /* { dg-do assemble } */ -/* { dg-options "-O1 --save-temps -mno-fix-cortex-a53-843419" } */ +/* { dg-options "-O1 --save-temps" } */ #pragma GCC push_options #pragma GCC target ("+nothing+simd, cmodel=small")