This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/33720] A negative value in OpenMP clause num_threads is not detected at runtime
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Jun 2013 20:45:47 +0000
- Subject: [Bug libgomp/33720] A negative value in OpenMP clause num_threads is not detected at runtime
- Auto-submitted: auto-generated
- References: <bug-33720-4 at http dot gcc dot gnu dot org/bugzilla/>
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?