This is the mail archive of the gcc-patches@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]

Re: Negative arguments in OpenMP 'num_threads' clause etc.


Hi Jakub!

Any comments on my question, please?

On Tue, 09 Apr 2019 17:51:46 +0200, I wrote:
> On Tue, 29 Nov 2016 17:47:08 -0800, Cesar Philippidis <cesar@codesourcery.com> wrote:
> > One notable difference between the trunk and gomp4 implementation of the
> > tile clause is that gomp4 errors on negative value tile arguments,
> > whereas trunk issues warnings.
> 
> I'm picking up these changes, which have been posted a few times, and
> have been rejected (at least in their current incarnation) a few times,
> too.  ;-\
> 
> > Is there a reason why the fortran FE
> > generally emits a warning, on say num_threads(-5), instead of an error?
> 
> Same for the C/C++ front ends, which I'm looking into first.
> 
> Jakub, is the reason that even if the user is clearly doing something
> "strage" there, the compiler doesn't have a problem to continue
> compilation for 'num_threads(-5)', so it just emits a warning, but for
> example for 'collapse(-5)' is has to stop with an error, because it can't
> continue compilation in that case?  Or, is there a different reason for
> the many 'warning_at ([...], "[...] must be positive"' (C front end, for
> example), instead of using 'error_at' for these?


Grüße
 Thomas

Attachment: signature.asc
Description: PGP signature


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