This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: CRIS port, part 3: config.gcc and config/cris; core port
- To: zack at codesourcery dot com
- Subject: Re: CRIS port, part 3: config.gcc and config/cris; core port
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Date: Sat, 29 Sep 2001 19:29:41 +0200
- CC: hans-peter dot nilsson at axis dot com, gcc-patches at gcc dot gnu dot org
> Date: Sat, 29 Sep 2001 10:16:31 -0700
> From: Zack Weinberg <zack@codesourcery.com>
> On Sat, Sep 29, 2001 at 05:51:29PM +0200, Hans-Peter Nilsson wrote:
>
> > + #define CPP_PREDEFINES "-Dcris -DCRIS -DGNU_CRIS"
>
> Since this is a brand new port, please do not include any predefined
> macros which are outside the implementation name space. Use __cris__,
> etc.
This is *not* a brand new port. It dates back to gcc 2.1. The
GNU/Linux part is a bit newer, though. ;-)
I *think* that change would be safe, though it was quite some
time ago that I knew all code compiled by this port. I really
would prefer not to do this change.
> > + #undef CRIS_CPP_SUBTARGET_SPEC
> > + #define CRIS_CPP_SUBTARGET_SPEC \
> > + "-D__linux__ -D__unix__ -D__ELF__\
> > + %{pthread:-D_REENTRANT}\
> > + %{fPIC|fpic: -D__PIC__ -D__pic__}\
> > + %{!fleading-underscore:-fno-leading-underscore -D__NO_UNDERSCORES__}\
> > + %{!march=*:%{!cpu=*:-D__arch_v10 -D__CRIS_arch_version=10}}\
> > + %{!ansi:%{!std=*:%{!undef:-Dlinux -Dunix}\
> > + -Asystem(unix) -Asystem(posix) -Acpu(cris) -Amachine(cris)}}"
>
> Ditto.
(this being config/cris/linux.h): It should define the same
GNU/Linux macros as other GNU/Linux ports, so please don't
require changes that are likely to break GNU/Linux compatibility
for some program.
> Assertions should use the new command line syntax: -Asystem=unix.
> Also, assertions should not be disabled by -ansi or -std. Consider
> not providing any predefined assertions at all; they are deprecated.
Sorry, I missed that, I'll use the new syntax.
brgds, H-P