This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/66943] GCC warns of Unknown Pragma for OpenMP, even though it support it.


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]