On Fri, Mar 04, 2011 at 10:13:02PM +1030, Alan Modra wrote:
> > 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.
> 
> It's there for -mcall-freebsd.  Take that away and you won't need
> freebsd-spec.h in powerpc-linux configs.

If it is needed on non-FreeBSD targets (why would anyone want to
use -mcall-freebsd on Linux instead of building a Linux->FreeBSD cross?),
then freebsd-spec.h should presumably only define 
FBSD_*/USING_CONFIG_FREEBSD_SPEC
macros and nothing else, the rest should go into config/freebsd.h or something
that is not included by all other targets.

        Jakub

Reply via email to