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]

Re: CRIS port, part 3: config.gcc and config/cris; core port


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


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