]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[AArch64][4.8] LINK_SPEC changes for Cortex-A53 erratum 835769 workaround
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 6 Nov 2014 08:53:18 +0000 (08:53 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 6 Nov 2014 08:53:18 +0000 (08:53 +0000)
        * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
        (LINK_SPEC): Include CA53_ERR_835769_SPEC.
        * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
        (LINK_SPEC): Include CA53_ERR_835769_SPEC.

From-SVN: r217177

gcc/ChangeLog
gcc/config/aarch64/aarch64-elf-raw.h
gcc/config/aarch64/aarch64-linux.h

index 8d74c362b74a0990c731a05db99727a4cb699b60..9c0c23d33a78e4530703f8055f8bff4fd0e0bbde 100644 (file)
@@ -1,3 +1,11 @@
+2014-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
+       (LINK_SPEC): Include CA53_ERR_835769_SPEC.
+       * config/aarch64/aarch64-linux.h
+       (CA53_ERR_835769_SPEC): Define.
+       (LINK_SPEC): Include CA53_ERR_835769_SPEC.
+
 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
index 1cd0155fc6333872daae5df0036cfcafc6fea5f0..9515d112d2effe6d45bf6cc8f30579314e67862e 100644 (file)
 #define STARTFILE_SPEC " crti%O%s crtbegin%O%s crt0%O%s"
 #define ENDFILE_SPEC " crtend%O%s crtn%O%s"
 
+#ifdef TARGET_FIX_ERR_A53_835769_DEFAULT
+#define CA53_ERR_835769_SPEC \
+  " %{!mno-fix-cortex-a53-835769:--fix-cortex-a53-835769}"
+#else
+#define CA53_ERR_835769_SPEC \
+  " %{mfix-cortex-a53-835769:--fix-cortex-a53-835769}"
+#endif
+
 #ifndef LINK_SPEC
-#define LINK_SPEC "%{mbig-endian:-EB} %{mlittle-endian:-EL} -X"
+#define LINK_SPEC "%{mbig-endian:-EB} %{mlittle-endian:-EL} -X" \
+                  CA53_ERR_835769_SPEC
 #endif
 
 #endif /* GCC_AARCH64_ELF_RAW_H */
index 4e6e23ad5085ffc2111fb4c1d351f244154b156e..a012baed28410059ed66fb641b6e10bf042fa00e 100644 (file)
    -X                                          \
    %{mbig-endian:-EB} %{mlittle-endian:-EL}"
 
-#define LINK_SPEC LINUX_TARGET_LINK_SPEC
+#ifdef TARGET_FIX_ERR_A53_835769_DEFAULT
+#define CA53_ERR_835769_SPEC \
+  " %{!mno-fix-cortex-a53-835769:--fix-cortex-a53-835769}"
+#else
+#define CA53_ERR_835769_SPEC \
+  " %{mfix-cortex-a53-835769:--fix-cortex-a53-835769}"
+#endif
+
+#define LINK_SPEC LINUX_TARGET_LINK_SPEC \
+                  CA53_ERR_835769_SPEC
 
 #define TARGET_OS_CPP_BUILTINS()               \
   do                                           \