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 libgomp/33720] A negative value in OpenMP clause num_threads is not detected at runtime


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33720

--- Comment #8 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #7)
> I still believe it is not needed to slow down the runtime library with
> checks for invalid programs.  Negative num_threads is undefined behavior,
> just don't do it.

Perhaps the check could be added with the new -fsanitize=undefined?

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