On Thu, Dec 16, 2021 at 10:12:24AM +0100, Tobias Burnus wrote: > I did run into this when misspelling 'disable': > > Currently (with one offload target configured) > > $ gcc -foffload=disabled > gcc: error: GCC is not configured to support 'disabled' as offload target > gcc: note: valid offload targets are: amdgcn-amdhsa > > or (without offload support) > > $ gcc -foffload=disabled > gcc: error: GCC is not configured to support ‘disabled’ as offload target > gcc: note: no offloading targets configured > > > With the patch: > > $ gcc -foffload=disabled > gcc: error: GCC is not configured to support 'disabled' as offload target > gcc: note: valid offload targets are: nvptx-none default disable; did you > mean 'disable'? > > or > > $ gcc -foffload=disabled > gcc: error: GCC is not configured to support ‘disabled’ as offload target > gcc: note: valid offload targets are: default disable; did you mean ‘disable’? > > or without hint > > $ gcc -foffload=x > gcc: error: GCC is not configured to support ‘x’ as offload target > gcc: note: valid offload targets are: default disable
Neither default nor disable are valid offload targets, so I think we need to reword the note. valid ‘-foffload=’ arguments are: or so? Jakub