sdata-section.h (SDATA_SECTION): Don't use an attribute if SKIP_ATTRIBUTE is defined.
authorRichard Sandiford <rsandifo@redhat.com>
Mon, 20 Sep 2004 18:02:53 +0000 (18:02 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 20 Sep 2004 18:02:53 +0000 (18:02 +0000)
* gcc.dg/compat/sdata-section.h (SDATA_SECTION): Don't use an attribute
if SKIP_ATTRIBUTE is defined.

From-SVN: r87766

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/compat/sdata-section.h

index fe487a187cf71f29ccf613dd26742daa48df4084..378e98e84e3ba72afa6893d7fe21ee91505ad136 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-20  Richard Sandiford  <rsandifo@redhat.com>
+
+       * gcc.dg/compat/sdata-section.h (SDATA_SECTION): Don't use an attribute
+       if SKIP_ATTRIBUTE is defined.
+
 2004-09-20  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
 
        PR fortran/15957
index 0db5aa2293c8d1588c94c53b4844cd6ce370a6a9..15be8438662afd1738a0a97a472710291f690167 100644 (file)
@@ -1,4 +1,4 @@
-#ifdef __mips
+#if defined (__mips) && !defined(SKIP_ATTRIBUTE)
 #define SDATA_SECTION __attribute__((__section__(".sdata")))
 #else
 #define SDATA_SECTION