]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/61714 (configure --with-arch and --with-cpu are ignored on aarch64)
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 4 Jul 2014 10:51:56 +0000 (10:51 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Fri, 4 Jul 2014 10:51:56 +0000 (10:51 +0000)
PR target/61714
* aarch64.h (OPTION_DEFAULT_SPECS): Define.

From-SVN: r212295

gcc/ChangeLog
gcc/config/aarch64/aarch64.h

index f37d8f4e728ea2ea9a2edb62059e89c7609e38a4..632b8364a8ea2af7ed53a8a1332746c5a39ef855 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
+
+       PR target/61714
+       * aarch64.h (OPTION_DEFAULT_SPECS): Define.
+
 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/61654
index b95365a6eca3f01e1efe74974b6109b9119b676c..080b23f71a601011952f61b870aef4e8d7363750 100644 (file)
@@ -879,6 +879,13 @@ extern enum aarch64_code_model aarch64_cmodel;
 #define ENDIAN_LANE_N(mode, n)  \
   (BYTES_BIG_ENDIAN ? GET_MODE_NUNITS (mode) - 1 - n : n)
 
+/* Support for a configure-time default CPU, etc.  We currently support
+   --with-arch and --with-cpu.  Both are ignored if either is specified
+   explicitly on the command line at run time.  */
+#define OPTION_DEFAULT_SPECS                           \
+  {"arch", "%{!march=*:%{!mcpu=*:-march=%(VALUE)}}" }, \
+  {"cpu",  "%{!march=*:%{!mcpu=*:-mcpu=%(VALUE)}}" },
+
 #define BIG_LITTLE_SPEC \
    " %{mcpu=*:-mcpu=%:rewrite_mcpu(%{mcpu=*:%*})}"