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] Fix compilation warnings on i586-wrs-vxworks


Building i586-wrs-vxworks spews lots of warnings about macro
redefinitions.  I've applied this patch as obvious to fix it.
Tested on i586-wrs-vxworks.

Richard


gcc/
	* config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
	before redefining.

Index: gcc/config/i386/att.h
===================================================================
--- gcc/config/i386/att.h	(revision 122473)
+++ gcc/config/i386/att.h	(working copy)
@@ -33,6 +33,7 @@ #define ASM_QUAD "\t.quad\t"  /* Should 
 
 /* How to output an ASCII string constant.  */
 
+#undef ASM_OUTPUT_ASCII
 #define ASM_OUTPUT_ASCII(FILE, PTR, SIZE)			\
 do								\
 { size_t i = 0, limit = (SIZE); 				\
@@ -57,6 +58,7 @@ #define ASM_OUTPUT_ALIGN(FILE,LOG)	\
 /* This is how to output an assembler line
    that says to advance the location counter by SIZE bytes.  */
 
+#undef ASM_OUTPUT_SKIP
 #define ASM_OUTPUT_SKIP(FILE,SIZE)  \
   fprintf ((FILE), "\t.set .,.+%u\n", (int)(SIZE))
 


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