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: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Subject: Re: CRIS port, part 3: config.gcc and config/cris; core port
- From: Zack Weinberg <zack at codesourcery dot com>
- Date: Sat, 29 Sep 2001 10:16:31 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <200109291551.RAA26146@ignucius.axis.se>
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.
> + #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.
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.
> + #undef CRIS_CPP_SUBTARGET_SPEC
> + #define CRIS_CPP_SUBTARGET_SPEC \
> + "-D__AOUT__\
> + %{melinux:-D__linux__ -D__unix__ -D__elinux__ -D__uclinux__\
> + %{!nostdinc:\
> + %{!mbest-lib-options:%{isystem*}}\
> + -isystem elinux/include%s\
> + %{mbest-lib-options:%{isystem*}}}\
> + %{!ansi:%{!std=*:%{!undef:-Dlinux -Dunix -Delinux -Duclinux}}}}\
> + %{mbest-lib-options:\
> + %{!moverride-best-lib-options:\
> + %{!march=*:%{!metrax*:%{!mcpu=*:-D__tune_v8 -D__CRIS_arch_tune=8}}}}}"
Same.
zw