mips.c (mips_in_small_data_p): Return false if TARGET_ABICALLS.
authorRichard Sandiford <rsandifo@redhat.com>
Sun, 7 Mar 2004 10:50:11 +0000 (10:50 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 7 Mar 2004 10:50:11 +0000 (10:50 +0000)
* config/mips/mips.c (mips_in_small_data_p): Return false if
TARGET_ABICALLS.

testsuite/
* gcc.dg/torture/mips-sdata-1.c: Restrict to mips*-*-elf*.

From-SVN: r79060

gcc/ChangeLog
gcc/config/mips/mips.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/mips-sdata-1.c

index 4509825e0edd957df7ac838aa8a018e9ca1102ba..651e3e4e28023ed2c025f1adc44b53d7eb9e2911 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-07  Richard Sandiford  <rsandifo@redhat.com>
+
+       * config/mips/mips.c (mips_in_small_data_p): Return false if
+       TARGET_ABICALLS.
+
 2004-03-06  Stephane Carrez  <stcarrez@nerim.fr>
 
        * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
index bfd597060553f980e5a6c573556f82b850267a84..037a25a26080bdaeab7dab951f9d22f19e2e5f45 100644 (file)
@@ -7303,6 +7303,11 @@ mips_in_small_data_p (tree decl)
   if (TREE_CODE (decl) == STRING_CST || TREE_CODE (decl) == FUNCTION_DECL)
     return false;
 
+  /* We don't yet generate small-data references for -mabicalls.  See related
+     -G handling in override_options.  */
+  if (TARGET_ABICALLS)
+    return false;
+
   if (TREE_CODE (decl) == VAR_DECL && DECL_SECTION_NAME (decl) != 0)
     {
       const char *name;
index 9acab5d290e1c25e3b630c4ba9dc11a20573a0f4..45d94f56cf656e67b40cd8419ab003c3d37bb145 100644 (file)
@@ -1,3 +1,7 @@
+2004-03-07  Richard Sandiford  <rsandifo@redhat.com>
+
+       * gcc.dg/torture/mips-sdata-1.c: Restrict to mips*-*-elf*.
+
 2004-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * gcc.dg/20040306-1.c: New test.
index b665d96cd560f4d09343321557342bc9afe1466c..8ffd4d84857d39ae903f08f1e03cf830112ecbbb 100644 (file)
@@ -1,6 +1,6 @@
 /* Check that sdata-accesses are applied regardless of size or ABI.  */
 /* { dg-options -mexplicit-relocs } */
-/* { dg-do compile { target mips*-*-* } } */
+/* { dg-do compile { target mips*-*-elf* } } */
 
 struct s { int x[4]; };
 struct s my_struct __attribute__((__section__(".sdata")));