PR target/61714
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Jul 2014 10:51:56 +0000 (10:51 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Jul 2014 10:51:56 +0000 (10:51 +0000)
* aarch64.h (OPTION_DEFAULT_SPECS): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212295 138bc75d-0d04-0410-961f-82ee72b054a4

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

index f37d8f4..632b836 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 b95365a..080b23f 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=*:%*})}"