what causes <cpu> reasserted

Neil Booth neil@daikokuya.demon.co.uk
Mon Jun 18 10:43:00 GMT 2001


Joel Sherrill wrote:-

> OK.  This helps.  I still don't know the right answer and can tell
> that fixing this is a per-target thing.  There may be a pattern -- I
> don't know.  The sparc-rtems re-assert is coming from the one in the
> rtems.h CPP_PREDEFINES and the sparc.h: CPP_ARCH32_SPEC.  Assuming
> that -Acpu and -Amachine should come from there, they should not
> also be in rtems.h.  Is this right?

I don't know; I can only suggest you compare with targets that work.

> The i386 explanation is similar but the implementation is different.  -Acpu
> and -Amachine are included in the definition of CPP_CPU_SPEC in
> i386.h. 
> 
> The h8300 is again similar but is defined in h8300.h in CPP_SPEC.

I remember something on the lists very recently where there was a
%{cpp_cpu} in the SPECS instead of %{cpp} (or vice versa).  That might
be something to do with it.

> Is there any rhyme or reason to where these should be placed?
> Previously, they seemed to always be in CPP_PREDEFINES.  I am happy
> to take them out of config/*/rtems*.h where there are conflicts but
> would like to understand the right thing to do. :)

You know as much as I do :-)

Neil.



More information about the Gcc-bugs mailing list