Yang Yujie <yangyu...@loongson.cn> writes:

Hello Yujie,

> gcc/ChangeLog:
>
>       * ada/Makefile.rtl: Add LoongArch support.
>       * ada/libgnarl/s-linux__loongarch.ads: New.
>       * ada/libgnat/system-linux-loongarch.ads: New.
>       * config/loongarch/loongarch.h: mark normalized options
>       passed from driver to gnat1 as explicit for multilib.
> ---
>  gcc/ada/Makefile.rtl                       |  49 +++++++
>  gcc/ada/libgnarl/s-linux__loongarch.ads    | 134 +++++++++++++++++++
>  gcc/ada/libgnat/system-linux-loongarch.ads | 145 +++++++++++++++++++++

The Ada part of the patch looks correct, thanks.

>  gcc/config/loongarch/loongarch.h           |   4 +-
>  4 files changed, 330 insertions(+), 2 deletions(-)
> diff --git a/gcc/config/loongarch/loongarch.h 
> b/gcc/config/loongarch/loongarch.h
> index f8167875646..9887a7ac630 100644
> --- a/gcc/config/loongarch/loongarch.h
> +++ b/gcc/config/loongarch/loongarch.h
> @@ -83,9 +83,9 @@ along with GCC; see the file COPYING3.  If not see
>  /* CC1_SPEC is the set of arguments to pass to the compiler proper.  */
>
>  #undef CC1_SPEC
> -#define CC1_SPEC "\
> +#define CC1_SPEC "%{,ada:-gnatea} %{m*} \
>  %{G*} \
> -%(subtarget_cc1_spec)"
> +%(subtarget_cc1_spec) %{,ada:-gnatez}"
>
>  /* Preprocessor specs.  */

This is outside of ada/ (so I don't have a say on it), but I'm curious
about why you need to use -gnatea/-gnatez here?

Thanks,
Marc

Reply via email to