https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33720
Andrew Pinski changed:
What|Removed |Added
Severity|normal |enhancement
Status|UNCONFIRM
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33720
--- Comment #8 from Manuel López-Ibáñez ---
(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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33720
--- Comment #7 from Jakub Jelinek ---
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.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33720
--- Comment #6 from Geir Johansen ---
Fails in GCC 4.8.0:
$ gcc --version
gcc (GCC) 4.8.0 20130322 (Cray Inc.)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty;
--- Comment #5 from geir at cray dot com 2009-09-14 19:59 ---
(In reply to comment #4)
> Geir, have you run the testcase with other compilers? What is the result?
>
Changed test cast to use 2 threads ("omp_set_num_threads(2);")
PGI 9.0-3
$ pgcc -mp bug2883.c
$ ./a.out
pi 3.14
--- Comment #4 from manu at gcc dot gnu dot org 2009-07-31 15:11 ---
Geir, have you run the testcase with other compilers? What is the result?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33720
--- Comment #3 from manu at gcc dot gnu dot org 2008-08-07 02:55 ---
(In reply to comment #2)
> I'm not sure we should do anything about this.
> We have a warning if the compiler can detect non-positive value at compile
> time,
> but we certainly can't ever issue any diagnostic at runtim
--- Comment #2 from jakub at gcc dot gnu dot org 2007-11-12 19:37 ---
I'm not sure we should do anything about this.
We have a warning if the compiler can detect non-positive value at compile
time,
but we certainly can't ever issue any diagnostic at runtime for num_threads
0 (because the