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: [ping] Re: [patch, powerpc] #undef LINK_EH_SPEC before defining it


On Fri, Mar 04, 2011 at 05:30:10PM +1030, Alan Modra wrote:
> On Wed, Feb 16, 2011 at 11:36:09PM +0100, Matthias Klose wrote:
> > >../../src/gcc/config/rs6000/sysv4.h:839:1: warning: "LINK_EH_SPEC" redefined
> > >In file included from ./tm.h:33,
> > >from ../../src/gcc/cp/rtti.c:27:
> > >../../src/gcc/config/freebsd-spec.h:135:1: warning: this is the location of the
> > >previous definition
> 
> In mainline sources the two macro definitions are identical.  Self-
> inflicted wound?

We see it because we add --no-add-needed to linux LINK_EH_SPECs.
Including freebsd-spec.h in a Linux configuration is certainly very
questionable and undefining LINK_EH_SPEC and other macros before defining
them would be certainly cleaner if the freebsd-spec.h include can't be just
killed.

	Jakub


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