]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64.c (aarch64_get_multilib_abi_name): New function.
authorSteve Ellcey <sellcey@marvell.com>
Wed, 27 Feb 2019 00:00:56 +0000 (00:00 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Wed, 27 Feb 2019 00:00:56 +0000 (00:00 +0000)
2018-02-26  Steve Ellcey  <sellcey@marvell.com>

* config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
New function.
(TARGET_GET_MULTILIB_ABI_NAME): New macro.

From-SVN: r269235

gcc/ChangeLog
gcc/config/aarch64/aarch64.c

index 41afdd13724f29c1fcd9b479682e6b475f8a901b..b46e08fca6c952805054d8e75b81d585e9faf535 100644 (file)
@@ -1,3 +1,9 @@
+2018-02-26  Steve Ellcey  <sellcey@marvell.com>
+
+       * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
+       New function.
+       (TARGET_GET_MULTILIB_ABI_NAME): New macro.
+
 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/89507
index 91e79d3fea4ad8c4d04a03ab22c189ae1bedac98..f13f2681f7784766ba6a59a3a1093f008d9a9d06 100644 (file)
@@ -18722,6 +18722,16 @@ aarch64_comp_type_attributes (const_tree type1, const_tree type2)
   return 1;
 }
 
+/* Implement TARGET_GET_MULTILIB_ABI_NAME */
+
+static const char *
+aarch64_get_multilib_abi_name (void)
+{
+  if (TARGET_BIG_END)
+    return TARGET_ILP32 ? "aarch64_be_ilp32" : "aarch64_be";
+  return TARGET_ILP32 ? "aarch64_ilp32" : "aarch64";
+}
+
 /* Implement TARGET_STACK_PROTECT_GUARD. In case of a
    global variable based guard use the default else
    return a null tree.  */
@@ -19244,6 +19254,9 @@ aarch64_libgcc_floating_mode_supported_p
 #undef TARGET_COMP_TYPE_ATTRIBUTES
 #define TARGET_COMP_TYPE_ATTRIBUTES aarch64_comp_type_attributes
 
+#undef TARGET_GET_MULTILIB_ABI_NAME
+#define TARGET_GET_MULTILIB_ABI_NAME aarch64_get_multilib_abi_name
+
 #if CHECKING_P
 #undef TARGET_RUN_TARGET_SELFTESTS
 #define TARGET_RUN_TARGET_SELFTESTS selftest::aarch64_run_selftests