This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: macro redefinition warning axe
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 28 Jun 2002 17:06:31 -0500 (CDT)
- Subject: PATCH: macro redefinition warning axe
- Reply-to: rittle at labs dot mot dot com
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...) */