On Wed, Apr 03, 2024 at 11:09:19AM +0200, Tobias Burnus wrote: > @@ -3954,8 +3956,8 @@ on the GPU. > To enable support for GCN3 Fiji devices (gfx803), GCC has to be configured > with > @option{--with-arch=@code{fiji}} or > @option{--with-multilib-list=@code{fiji},...}. Note that support for Fiji > -devices has been removed in ROCm 4.0 and support in LLVM is deprecated and > will > -be removed in LLVM 18. > +devices has been removed in ROCm 4.0 and support in LLVM is deprecated and > has > +been removed in LLVM 18.
Shouldn't we at configure time then detect the case where fiji can't be supported and either error if it is included explicitly in multilib list, or implicitly take it out from that list and arrange error to be emitted when using -march=fiji/gfx803 ? Sure, if one configures against LLVM 17 and then updates LLVM to 18, it will still result in weird errors/LLVM ICEs, but at least in the common case when one configures GCC 14 against LLVM 18 one won't suffer from those ICEs and get clear diagnostics that fiji is sadly no longer supported. Jakub