OSDN Git Service

* config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Oct 2004 19:49:34 +0000 (19:49 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Oct 2004 19:49:34 +0000 (19:49 +0000)
config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
-m64.

testsuite:
* gcc.dg/ppc-spe64-1.c: New test.

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

gcc/ChangeLog
gcc/config/rs6000/eabispe.h
gcc/config/rs6000/linuxspe.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ppc-spe64-1.c [new file with mode: 0644]

index a685ef6..0a10096 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-14  Joseph S. Myers  <joseph@codesourcery.com>
+
+       * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
+       config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
+       -m64.
+
 2004-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * reload.c (find_reloads): When reloading a PLUS with constant
 2004-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * reload.c (find_reloads): When reloading a PLUS with constant
index 1551dc1..3abad99 100644 (file)
@@ -40,7 +40,9 @@
   if (rs6000_spe_string == NULL) \
     rs6000_spe = 1; \
   if (rs6000_isel_string == NULL) \
   if (rs6000_spe_string == NULL) \
     rs6000_spe = 1; \
   if (rs6000_isel_string == NULL) \
-    rs6000_isel = 1
+    rs6000_isel = 1; \
+  if (target_flags & MASK_64BIT) \
+    error ("-m64 not supported in this configuration")
 
 /* The e500 ABI says that either long doubles are 128 bits, or if
    implemented in any other size, the compiler/linker should error out.
 
 /* The e500 ABI says that either long doubles are 128 bits, or if
    implemented in any other size, the compiler/linker should error out.
index 59eb831..91ad950 100644 (file)
@@ -53,7 +53,9 @@
   if (rs6000_spe_string == NULL) \
     rs6000_spe = 1; \
   if (rs6000_isel_string == NULL) \
   if (rs6000_spe_string == NULL) \
     rs6000_spe = 1; \
   if (rs6000_isel_string == NULL) \
-    rs6000_isel = 1
+    rs6000_isel = 1; \
+  if (target_flags & MASK_64BIT) \
+    error ("-m64 not supported in this configuration")
 
 /* The e500 ABI says that either long doubles are 128 bits, or if
    implemented in any other size, the compiler/linker should error out.
 
 /* The e500 ABI says that either long doubles are 128 bits, or if
    implemented in any other size, the compiler/linker should error out.
index 0932934..e454497 100644 (file)
@@ -1,3 +1,7 @@
+2004-10-14  Joseph S. Myers  <joseph@codesourcery.com>
+
+       * gcc.dg/ppc-spe64-1.c: New test.
+
 2004-10-14  Devang Patel  <dpatel@apple.com>
 
        PR 17635
 2004-10-14  Devang Patel  <dpatel@apple.com>
 
        PR 17635
diff --git a/gcc/testsuite/gcc.dg/ppc-spe64-1.c b/gcc/testsuite/gcc.dg/ppc-spe64-1.c
new file mode 100644 (file)
index 0000000..8055668
--- /dev/null
@@ -0,0 +1,6 @@
+/* Test that SPE targets do not permit -m64.  */
+/* Origin: Joseph Myers <joseph@codesourcery.com> */
+/* { dg-do compile { target powerpc-*-*spe } } */
+/* { dg-options "-m64" } */
+
+/* { dg-error "-m64 not supported in this configuration" "SPE not 64-bit" { target *-*-* } 0 } */