PATCH: macro redefinition warning axe
Loren James Rittle
rittle@latour.rsch.comm.mot.com
Fri Jun 28 16:16:00 GMT 2002
David, are you OK with this patch for mainline?
It removes ~1000 useless redefinition warnings while bootstrapping
alpha-*-freebsd* since config/alpha/elf.h uses the latter style (I
will not ask the obvious question: ``what does ELF format support have
to do with accepting #sccs''? ;-). OTOH, perhaps the preprocessor
should not report the case where a macro defined to be '1' explicitly
is redefined to be '1' implicitly or vice versa. Opinions?
Index: gcc/config/freebsd.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/freebsd.h,v
retrieving revision 1.16
diff -c -r1.16 freebsd.h
*** gcc/config/freebsd.h 7 May 2002 21:07:16 -0000 1.16
--- gcc/config/freebsd.h 28 Jun 2002 21:54:39 -0000
***************
*** 69,75 ****
/* Allow #sccs in preprocessor. */
#undef SCCS_DIRECTIVE
! #define SCCS_DIRECTIVE 1
/* Make gcc agree with FreeBSD's standard headers (<machine/ansi.h>, etc...) */
--- 69,75 ----
/* Allow #sccs in preprocessor. */
#undef SCCS_DIRECTIVE
! #define SCCS_DIRECTIVE
/* Make gcc agree with FreeBSD's standard headers (<machine/ansi.h>, etc...) */
More information about the Gcc-patches
mailing list