This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66943] GCC warns of Unknown Pragma for OpenMP, even though it support it.
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 Aug 2017 14:59:14 +0000
- Subject: [Bug c++/66943] GCC warns of Unknown Pragma for OpenMP, even though it support it.
- Auto-submitted: auto-generated
- References: <bug-66943-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66943
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic, openmp
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-08-25
CC| |egallager at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #10 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Manuel López-Ibáñez from comment #5)
> (In reply to Jeffrey Walton from comment #4)
> > (For what its worth, I understand the compiler writers are always right.
> > They are demi-gods in my little corner of the universe :)
>
> You can also be a compiler writer:
> https://gcc.gnu.org/wiki/GettingStarted#Basics:_Contributing_to_GCC_in_10_easy_steps
>
> For what is worth, I understand the point by Andrew that without -fopenmp,
> the #pragmas are effectively ignored, thus the warning seems useful. Perhaps
> it would be more useful a specific -Wopenmp-pragmas that says:
>
> warning: ignoring '#pragma omp parallel' without '-fopenmp'
> [-Wopenmp-pragmas]
>
> But it seems more important to fix PR53431, if someone has time for that.
>
> The zero-column ":0" in the diagnostic is also a bug.
Confirming these points.