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]

PATCH: macro redefinition warning axe


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...)  */
  


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