This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Extend SKIP_ATTRIBUTE to gcc.dg/compat/sdata-section.h
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 20 Sep 2004 19:11:00 +0100
- Subject: [committed] Extend SKIP_ATTRIBUTE to gcc.dg/compat/sdata-section.h
The (currently mips-specific) sdata tests in gcc.dg/compat use
__attribute__((section)) to force something into .sdata. This patch
makes SKIP_ATTRIBUTE control this use of __attribute__ too.
Tested on mips-sgi-irix6.5 using a compatiblity test with MIPSpro.
Committed as obvious.
Richard
* gcc.dg/compat/sdata-section.h (SDATA_SECTION): Don't use an attribute
if SKIP_ATTRIBUTE is defined.
Index: testsuite/gcc.dg/compat/sdata-section.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/compat/sdata-section.h,v
retrieving revision 1.2
diff -u -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.2 sdata-section.h
--- testsuite/gcc.dg/compat/sdata-section.h 5 Jan 2004 21:29:39 -0000 1.2
+++ testsuite/gcc.dg/compat/sdata-section.h 20 Sep 2004 17:59:37 -0000
@@ -1,4 +1,4 @@
-#ifdef __mips
+#if defined (__mips) && !defined(SKIP_ATTRIBUTE)
#define SDATA_SECTION __attribute__((__section__(".sdata")))
#else
#define SDATA_SECTION