On Wed, Apr 28, 2021 at 06:56:37PM +0200, Tobias Burnus wrote: > On 28.04.21 16:13, Matthias Klose wrote: > > > On 4/27/21 12:22 PM, Tobias Burnus wrote: > > > Hence, the distro behaviour is only active when configured with > > > --enable-offload-defaulted. > > please document that option in gcc/doc/install.texi. > > Like attached? Or do you have some other wording suggestions? > > Tobias > > ----------------- > Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München > Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank > Thürauf
> doc/install.texi: Document --enable-offload-defaulted config option > > Document configure --enable-offload-defaulted option added in > commit r12-218-gfe5bfa6704179f8db7d1ae0b485439e9896df8eb > > gcc/ChangeLog: > > * doc/install.texi (--enable-offload-defaulted): Document. > > diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi > index 4c38244ae58..e5e26571eb1 100644 > --- a/gcc/doc/install.texi > +++ b/gcc/doc/install.texi > @@ -2239,6 +2239,12 @@ specifying paths @var{path1}, @dots{}, @var{pathN}. > > --enable-offload-targets=x86_64-intelmicemul-linux-gnu=/path/to/x86_64/compiler,nvptx-none > @end smallexample > > +@item --enable-offload-defaulted > + > +Tell GCC that configured but not installed offload compilers and libgomp > +plugins are silently ignored. Useful for distribution compilers where > +those are in separate optional packages. I'd add at the end "and where the presence or absence of those optional packages should determine the actual supported offloading target set rather than the GCC configure time selection". LGTM otherwise. Jakub