diff options
author | Tobias Burnus <tburnus@baylibre.com> | 2025-06-05 10:36:21 +0200 |
---|---|---|
committer | Tobias Burnus <tburnus@baylibre.com> | 2025-06-06 15:46:05 +0200 |
commit | a69ab79c1abaa43f827a6ce1dacdcd78cf682cc8 (patch) | |
tree | bc2e3018ec52e01f2840d9b4ac52482a4da14633 /gcc | |
parent | e75e42f315e1e8bb4befee8ed242bd241c182091 (diff) | |
download | gcc-a69ab79c1abaa43f827a6ce1dacdcd78cf682cc8.zip gcc-a69ab79c1abaa43f827a6ce1dacdcd78cf682cc8.tar.gz gcc-a69ab79c1abaa43f827a6ce1dacdcd78cf682cc8.tar.bz2 |
gcn: Update --with-arch= for newer archs
Replace hard-coded list of supported devices by directly checking
config/gcn/gcn-devices.def.
gcc/ChangeLog:
* config.gcc (--with-{arch,tune}): Use .def file to validate gcn
processor names.
* doc/install.texi (amdgcn*-*-*): Update list of devices supported
by --with-arch/--with-tune.
(cherry picked from commit 61a6430cf663e3c980c2ee966f094fea7d99f8e7)
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config.gcc | 12 | ||||
-rw-r--r-- | gcc/doc/install.texi | 10 |
2 files changed, 12 insertions, 10 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 40b50dc..5725704 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -4598,15 +4598,13 @@ case "${target}" in for which in arch tune; do eval "val=\$with_$which" - case ${val} in - "" | gfx900 | gfx906 | gfx908 | gfx90a | gfx90c | gfx1030 | gfx1036 | gfx1100 | gfx1103) - # OK - ;; - *) + if test x"$val" != x \ + && ! grep -q "GCN_DEVICE($val," \ + "${srcdir}/config/gcn/gcn-devices.def"; + then echo "Unknown cpu used in --with-$which=$val." 1>&2 exit 1 - ;; - esac + fi done [ "x$with_arch" = x ] && with_arch=gfx900 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 1af0082..3e9e09b 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -1342,9 +1342,13 @@ default set of libraries is selected based on the value of @item amdgcn*-*-* @var{list} is a comma separated list of ISA names (allowed values: -@code{gfx900}, @code{gfx906}, @code{gfx908}, @code{gfx90a}, @code{gfx90c}, -@code{gfx1030}, @code{gfx1036}, @code{gfx1100}, @code{gfx1103}). -It ought not include the name of the default +@code{gfx900}, @code{gfx902}, @code{gfx904}, @code{gfx906}, @code{gfx908}, +@code{gfx909}, @code{gfx90a}, @code{gfx90c}, @code{gfx9-generic}, +@code{gfx1030}, @code{gfx1031}, @code{gfx1032}, @code{gfx1033}, +@code{gfx1034}, @code{gfx1035}, @code{gfx1036}, @code{gfx10-3-generic}, +@code{gfx1100}, @code{gfx1101}, @code{gfx1102}, @code{gfx1103}, +@code{gfx1150}, @code{gfx1151}, @code{gfx1152}, @code{gfx1153}, +@code{gfx11-generic}). It ought not include the name of the default ISA, specified via @option{--with-arch}. If @var{list} is empty, then there will be no multilibs and only the default run-time library will be built. If @var{list} is @code{default} or @option{--with-multilib-list=} is not |