Skip to content

Commit f9d558a

Browse files
committed
GCN, nvptx offloading: Restrain 'WARNING: program timed out.' while in 'dynamic_cast'" [PR119692]
PR target/119692 libgomp/ * testsuite/libgomp.c++/pr119692-1-4.C: '{ dg-timeout 10 }'. * testsuite/libgomp.c++/pr119692-1-5.C: Likewise. * testsuite/libgomp.c++/target-exceptions-bad_cast-1.C: Likewise. * testsuite/libgomp.c++/target-exceptions-bad_cast-2.C: Likewise. * testsuite/libgomp.oacc-c++/exceptions-bad_cast-1.C: Likewise. * testsuite/libgomp.oacc-c++/exceptions-bad_cast-2.C: Likewise. (cherry picked from commit b5f48e7)
1 parent caca3a9 commit f9d558a

File tree

6 files changed

+18
-0
lines changed

6 files changed

+18
-0
lines changed

libgomp/testsuite/libgomp.c++/pr119692-1-4.C

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
/* { dg-additional-options -DDEFAULT=defaultmap(firstprivate) }
44
Wrong code for offloading execution.
55
{ dg-xfail-run-if PR119692 { offload_device } } */
6+
/* There are configurations where we 'WARNING: program timed out.' while in
7+
'dynamic_cast', see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119692#c6>.
8+
{ dg-timeout 10 } ... to make sure that happens quickly. */
69
/* { dg-additional-options -fdump-tree-gimple } */
710

811
#include "pr119692-1-1.C"

libgomp/testsuite/libgomp.c++/pr119692-1-5.C

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
/* { dg-additional-options -DDEFAULT=defaultmap(to) }
44
Wrong code for offloading execution.
55
{ dg-xfail-run-if PR119692 { offload_device } } */
6+
/* There are configurations where we 'WARNING: program timed out.' while in
7+
'dynamic_cast', see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119692#c6>.
8+
{ dg-timeout 10 } ... to make sure that happens quickly. */
69
/* { dg-additional-options -fdump-tree-gimple } */
710

811
#include "pr119692-1-1.C"

libgomp/testsuite/libgomp.c++/target-exceptions-bad_cast-1.C

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@
2323
PR119692.
2424
2525
{ dg-shouldfail {'std::bad_cast' exception} } */
26+
/* There are configurations where we 'WARNING: program timed out.' while in
27+
'dynamic_cast', see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119692#c6>.
28+
{ dg-timeout 10 } ... to make sure that happens quickly. */

libgomp/testsuite/libgomp.c++/target-exceptions-bad_cast-2.C

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@
2222
2323
For GCN, nvptx offload execution, there is no 'catch'ing; any exception is fatal.
2424
{ dg-shouldfail {'MyException' exception} { offload_device } } */
25+
/* There are configurations where we 'WARNING: program timed out.' while in
26+
'dynamic_cast', see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119692#c6>.
27+
{ dg-timeout 10 } ... to make sure that happens quickly. */

libgomp/testsuite/libgomp.oacc-c++/exceptions-bad_cast-1.C

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,6 @@ int main()
5252
PR119692.
5353
5454
{ dg-shouldfail {'std::bad_cast' exception} } */
55+
/* There are configurations where we 'WARNING: program timed out.' while in
56+
'dynamic_cast', see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119692#c6>.
57+
{ dg-timeout 10 } ... to make sure that happens quickly. */

libgomp/testsuite/libgomp.oacc-c++/exceptions-bad_cast-2.C

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,6 @@ int main()
5858
5959
For GCN, nvptx offload execution, there is no 'catch'ing; any exception is fatal.
6060
{ dg-shouldfail {'std::bad_cast' exception} { ! openacc_host_selected } } */
61+
/* There are configurations where we 'WARNING: program timed out.' while in
62+
'dynamic_cast', see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119692#c6>.
63+
{ dg-timeout 10 } ... to make sure that happens quickly. */

0 commit comments

Comments
 (0)