[v2,0/2] Delete ISA_BASE_LA64V110 related definitions.

Message ID 20231205023019.32452-1-chenglulu@loongson.cn
Headers
Series Delete ISA_BASE_LA64V110 related definitions. |

Message

Lulu Cheng Dec. 5, 2023, 2:30 a.m. UTC
  1. Rebase Xi Ruoyao's patch a to the latest commit.
https://gcc.gnu.org/pipermail/gcc-patches/2023-November/636798.html

2. remove the #if
!defined(IN_LIBGCC2) && !defined(IN_TARGET_LIBS) && !defined(IN_RTS)
guards in loongarch-def.h and loongarch-opts.h as they'll be unneeded.

3. Described in LoongArch Reference Manual v1.1:
The new functional subsets in each new version have independent identification
bits in the return value of the CPUCFG instruction. It is recommended that the
software determines the running process based on this information rather than
the version number of the Loongson architecture.

So delete the ISA_BASE_LA64V110 related definitions here.

*** BLURB HERE ***

Lulu Cheng (1):
  LoongArch: Remove the definition of ISA_BASE_LA64V110 from the code.

Xi Ruoyao (1):
  LoongArch: Switch loongarch-def from C to C++ to make it possible.

 .../loongarch/genopts/loongarch-strings       |   1 -
 gcc/config/loongarch/genopts/loongarch.opt.in |   3 -
 gcc/config/loongarch/loongarch-cpu.cc         |  23 +-
 gcc/config/loongarch/loongarch-def-array.h    |  40 +++
 gcc/config/loongarch/loongarch-def.c          | 227 ------------------
 gcc/config/loongarch/loongarch-def.cc         | 193 +++++++++++++++
 gcc/config/loongarch/loongarch-def.h          |  67 +++---
 gcc/config/loongarch/loongarch-opts.cc        |  10 +-
 gcc/config/loongarch/loongarch-opts.h         |   9 +-
 gcc/config/loongarch/loongarch-str.h          |   1 -
 gcc/config/loongarch/loongarch-tune.h         | 123 +++++++++-
 gcc/config/loongarch/loongarch.opt            |   3 -
 gcc/config/loongarch/t-loongarch              |   4 +-
 13 files changed, 405 insertions(+), 299 deletions(-)
 create mode 100644 gcc/config/loongarch/loongarch-def-array.h
 delete mode 100644 gcc/config/loongarch/loongarch-def.c
 create mode 100644 gcc/config/loongarch/loongarch-def.cc
  

Comments

Lulu Cheng Dec. 8, 2023, 7:39 a.m. UTC | #1
Pushed to r14-6303 and r14-6304.

在 2023/12/5 上午10:30, Lulu Cheng 写道:
> 1. Rebase Xi Ruoyao's patch a to the latest commit.
> https://gcc.gnu.org/pipermail/gcc-patches/2023-November/636798.html
>
> 2. remove the #if
> !defined(IN_LIBGCC2) && !defined(IN_TARGET_LIBS) && !defined(IN_RTS)
> guards in loongarch-def.h and loongarch-opts.h as they'll be unneeded.
>
> 3. Described in LoongArch Reference Manual v1.1:
> The new functional subsets in each new version have independent identification
> bits in the return value of the CPUCFG instruction. It is recommended that the
> software determines the running process based on this information rather than
> the version number of the Loongson architecture.
>
> So delete the ISA_BASE_LA64V110 related definitions here.
>
> *** BLURB HERE ***
>
> Lulu Cheng (1):
>    LoongArch: Remove the definition of ISA_BASE_LA64V110 from the code.
>
> Xi Ruoyao (1):
>    LoongArch: Switch loongarch-def from C to C++ to make it possible.
>
>   .../loongarch/genopts/loongarch-strings       |   1 -
>   gcc/config/loongarch/genopts/loongarch.opt.in |   3 -
>   gcc/config/loongarch/loongarch-cpu.cc         |  23 +-
>   gcc/config/loongarch/loongarch-def-array.h    |  40 +++
>   gcc/config/loongarch/loongarch-def.c          | 227 ------------------
>   gcc/config/loongarch/loongarch-def.cc         | 193 +++++++++++++++
>   gcc/config/loongarch/loongarch-def.h          |  67 +++---
>   gcc/config/loongarch/loongarch-opts.cc        |  10 +-
>   gcc/config/loongarch/loongarch-opts.h         |   9 +-
>   gcc/config/loongarch/loongarch-str.h          |   1 -
>   gcc/config/loongarch/loongarch-tune.h         | 123 +++++++++-
>   gcc/config/loongarch/loongarch.opt            |   3 -
>   gcc/config/loongarch/t-loongarch              |   4 +-
>   13 files changed, 405 insertions(+), 299 deletions(-)
>   create mode 100644 gcc/config/loongarch/loongarch-def-array.h
>   delete mode 100644 gcc/config/loongarch/loongarch-def.c
>   create mode 100644 gcc/config/loongarch/loongarch-def.cc
>