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]

Re: SPARC config files cleanup 2/n


On Fri, 2005-01-21 at 11:11 -0600, Joel Sherrill  wrote:
> Ralf Corsepius wrote:
> > On Fri, 2005-01-21 at 08:34 -0600, Joel Sherrill  wrote:
> > 
> > 
> >>Index: gcc/config/rtems.h
> >>===================================================================
> >>RCS file: /cvs/gcc/gcc/gcc/config/rtems.h,v
> >>retrieving revision 1.6
> >>diff -u -r1.6 rtems.h
> >>--- gcc/config/rtems.h	5 Jul 2004 19:49:14 -0000	1.6
> >>+++ gcc/config/rtems.h	21 Jan 2005 14:13:04 -0000
> >>@@ -19,6 +19,7 @@
> >>  Boston, MA 02111-1307, USA.  */
> >>
> >>  /* The system headers under RTEMS are C++-aware.  */
> >>+#undef NO_IMPLICIT_EXTERN_C
> >>  #define NO_IMPLICIT_EXTERN_C
> >>
> >>  /*
> > 
> > Can you explain this patch? I don't understand why it is necessary.
> 
> I was seeing lots of redefinition warnings in one of the target
> builds.  It may not be directly related to the sparc.  I don't
> remember which target tripped the warning.

It would be interesting to know which targets tripped this.

In a proper configuration the undef should not be necessary, so having
to undef it would indicate a bug somewhere in a gcc/config/<cpu>/*.h or
an ordering problem in a tm_file-line in config.gcc.

Having build (almost ) all rtems-gcc-4.0 targets today, I didn't notice
any such problem.

Ralf




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