This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]