public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/103644] New: [OpenMP] -foffload= suggest also 'disable' (and 'default')
@ 2021-12-10 10:23 burnus at gcc dot gnu.org
  2021-12-16 10:19 ` [Bug driver/103644] " cvs-commit at gcc dot gnu.org
  2021-12-16 10:20 ` burnus at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2021-12-10 10:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103644

            Bug ID: 103644
           Summary: [OpenMP] -foffload= suggest also 'disable' (and
                    'default')
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: diagnostic, openmp
          Severity: normal
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
  Target Milestone: ---

Found when having a typo in 'disable' – the diagnostic does not suggest
'disable'/'default', just actual offload targets

>From gcc.c's check_offload_target_name:

        error ("GCC is not configured to support %qs as offload target",
target2);
      if (candidates.is_empty ()) 
        inform (UNKNOWN_LOCATION, "no offloading targets configured");
          if (hint)
            inform (UNKNOWN_LOCATION,
                    "valid offload targets are: %s; did you mean %qs?", s,
hint);
          else
            inform (UNKNOWN_LOCATION, "valid offload targets are: %s", s);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug driver/103644] [OpenMP] -foffload= suggest also 'disable' (and 'default')
  2021-12-10 10:23 [Bug driver/103644] New: [OpenMP] -foffload= suggest also 'disable' (and 'default') burnus at gcc dot gnu.org
@ 2021-12-16 10:19 ` cvs-commit at gcc dot gnu.org
  2021-12-16 10:20 ` burnus at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-12-16 10:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103644

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tobias Burnus <burnus@gcc.gnu.org>:

https://gcc.gnu.org/g:2c1ac0bf3d44e4ca6e32533d8b498c7d1dbd2425

commit r12-6012-g2c1ac0bf3d44e4ca6e32533d8b498c7d1dbd2425
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Thu Dec 16 11:19:37 2021 +0100

    For -foffload= suggest also 'disable' and 'default' [PR103644]

    gcc/ChangeLog:

            PR driver/103644
            * gcc.c (check_offload_target_name): Add 'default' and 'disable'
            to the candidate list.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug driver/103644] [OpenMP] -foffload= suggest also 'disable' (and 'default')
  2021-12-10 10:23 [Bug driver/103644] New: [OpenMP] -foffload= suggest also 'disable' (and 'default') burnus at gcc dot gnu.org
  2021-12-16 10:19 ` [Bug driver/103644] " cvs-commit at gcc dot gnu.org
@ 2021-12-16 10:20 ` burnus at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2021-12-16 10:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103644

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
FIXED in GCC 12.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-16 10:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-10 10:23 [Bug driver/103644] New: [OpenMP] -foffload= suggest also 'disable' (and 'default') burnus at gcc dot gnu.org
2021-12-16 10:19 ` [Bug driver/103644] " cvs-commit at gcc dot gnu.org
2021-12-16 10:20 ` burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).