diff options
author | Nelson Chu <nelson@rivosinc.com> | 2024-03-22 15:21:27 +0800 |
---|---|---|
committer | Nelson Chu <nelson@rivosinc.com> | 2024-03-28 09:26:13 +0800 |
commit | 8e60ff82b8e1f72fdf5863a30bd14837ce2440b7 (patch) | |
tree | d099856e892fd08f0eedfb8f4b16093f7232f95e /ld | |
parent | ff87ff7dc92e0d61c4b0dff21577e32bcca39adc (diff) | |
download | gdb-8e60ff82b8e1f72fdf5863a30bd14837ce2440b7.zip gdb-8e60ff82b8e1f72fdf5863a30bd14837ce2440b7.tar.gz gdb-8e60ff82b8e1f72fdf5863a30bd14837ce2440b7.tar.bz2 |
RISC-V: Removed privileged spec 1.9.1 support in assembler.
Removed since it's may have lots of conflicts with the newer extensions, but
still keep linker recognizes it in case of linking old objects.
gas/
* NEWS: Updated.
* config/tc-riscv.c (riscv_set_default_priv_spec): Regard 1.9.1 as
an unknown version.
(md_show_usage): Removed privileged spec 1.9.1 information.
* testsuite/gas/riscv/attribute-05.s: Updated since privileged spec
1.9.1 is unsupported.
* testsuite/gas/riscv/attribute-05.d: Likewise.
* testsuite/gas/riscv/attribute-12.d: Likewise.
* testsuite/gas/riscv/attribute-13.d: Likewise.
* testsuite/gas/riscv/csr-dw-regnums.d: Likewise.
* testsuite/gas/riscv/csr-dw-regnums.s: Likewise.
* testsuite/gas/riscv/csr.s: Likewise.
* testsuite/gas/riscv/csr-version-1p10.d: Likewise.
* testsuite/gas/riscv/csr-version-1p10.l: Likewise.
* testsuite/gas/riscv/csr-version-1p11.d: Likewise.
* testsuite/gas/riscv/csr-version-1p11.l: Likewise.
* testsuite/gas/riscv/csr-version-1p12.d: Likewise.
* testsuite/gas/riscv/csr-version-1p12.l: Likewise.
* testsuite/gas/riscv/csr-version-1p9p1.d: Removed.
* testsuite/gas/riscv/csr-version-1p9p1.l: Removed.
include/
* opcode/riscv-opc.h: Updated since privileged spec 1.9.1 is
unsupported.
ld/
* testsuite/ld-riscv-elf/attr-merge-priv-spec-01.d: Updated since
privileged spec 1.9.1 is unsupported.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
Diffstat (limited to 'ld')
11 files changed, 11 insertions, 22 deletions
diff --git a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-01.d b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-01.d index 0aa6fe0..122161d 100644 --- a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-01.d +++ b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-01.d @@ -8,5 +8,4 @@ Attribute Section: riscv File Attributes Tag_RISCV_arch: [a-zA-Z0-9_\"].* Tag_RISCV_priv_spec: 1 - Tag_RISCV_priv_spec_minor: 9 - Tag_RISCV_priv_spec_revision: 1 + Tag_RISCV_priv_spec_minor: 10 diff --git a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d index 0ac4ca7..f13010c 100644 --- a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d +++ b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d @@ -8,5 +8,4 @@ Attribute Section: riscv File Attributes Tag_RISCV_arch: [a-zA-Z0-9_\"].* Tag_RISCV_priv_spec: 1 - Tag_RISCV_priv_spec_minor: 9 - Tag_RISCV_priv_spec_revision: 1 + Tag_RISCV_priv_spec_minor: 10 diff --git a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d index 6950483..ca004c8 100644 --- a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d +++ b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d @@ -8,5 +8,4 @@ Attribute Section: riscv File Attributes Tag_RISCV_arch: [a-zA-Z0-9_\"].* Tag_RISCV_priv_spec: 1 - Tag_RISCV_priv_spec_minor: 9 - Tag_RISCV_priv_spec_revision: 1 + Tag_RISCV_priv_spec_minor: 10 diff --git a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s index 0b7ffea..12df9ff 100644 --- a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s +++ b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s @@ -1,3 +1,2 @@ .attribute priv_spec, 1 - .attribute priv_spec_minor, 9 - .attribute priv_spec_revision, 1 + .attribute priv_spec_minor, 10 diff --git a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s index 0b7ffea..12df9ff 100644 --- a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s +++ b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s @@ -1,3 +1,2 @@ .attribute priv_spec, 1 - .attribute priv_spec_minor, 9 - .attribute priv_spec_revision, 1 + .attribute priv_spec_minor, 10 diff --git a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d index 3509cae..7f98707 100644 --- a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d +++ b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d @@ -2,8 +2,7 @@ #source: attr-merge-priv-spec-c.s #as: #ld: -r -#warning: .*use privileged spec version 1.11.0 but the output use version 1.9.1 -#warning: .*privileged spec version 1.9.1 can not be linked with other spec versions +#warning: .*use privileged spec version 1.11.0 but the output use version 1.10.0 #readelf: -A Attribute Section: riscv diff --git a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d index 88defe1..f86ef10 100644 --- a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d +++ b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d @@ -2,8 +2,7 @@ #source: attr-merge-priv-spec-a.s #as: #ld: -r -#warning: .*use privileged spec version 1.9.1 but the output use version 1.11.0 -#warning: .*privileged spec version 1.9.1 can not be linked with other spec versions +#warning: .*use privileged spec version 1.10.0 but the output use version 1.11.0 #readelf: -A Attribute Section: riscv diff --git a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d index 7a1b977..cfbb233 100644 --- a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d +++ b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d @@ -3,8 +3,7 @@ #source: attr-merge-priv-spec-c.s #as: #ld: -r -#warning: .*use privileged spec version 1.11.0 but the output use version 1.9.1 -#warning: .*privileged spec version 1.9.1 can not be linked with other spec versions +#warning: .*use privileged spec version 1.11.0 but the output use version 1.10.0 #readelf: -A Attribute Section: riscv diff --git a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d index 37b8afc..4332597 100644 --- a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d +++ b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d @@ -3,8 +3,7 @@ #source: attr-merge-priv-spec-c.s #as: #ld: -r -#warning: .*use privileged spec version 1.11.0 but the output use version 1.9.1 -#warning: .*privileged spec version 1.9.1 can not be linked with other spec versions +#warning: .*use privileged spec version 1.11.0 but the output use version 1.10.0 #readelf: -A Attribute Section: riscv diff --git a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d index 30446c9..bb6573d 100644 --- a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d +++ b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d @@ -3,8 +3,7 @@ #source: attr-merge-priv-spec-a.s #as: #ld: -r -#warning: .*use privileged spec version 1.9.1 but the output use version 1.11.0 -#warning: .*privileged spec version 1.9.1 can not be linked with other spec versions +#warning: .*use privileged spec version 1.10.0 but the output use version 1.11.0 #readelf: -A Attribute Section: riscv diff --git a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d index 8c7624c..9d97ff9 100644 --- a/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d +++ b/ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d @@ -3,8 +3,7 @@ #source: attr-merge-priv-spec-a.s #as: #ld: -r -#warning: .*use privileged spec version 1.9.1 but the output use version 1.11.0 -#warning: .*privileged spec version 1.9.1 can not be linked with other spec versions +#warning: .*use privileged spec version 1.10.0 but the output use version 1.11.0 #readelf: -A Attribute Section: riscv |