]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
GCN, nvptx offloading: Restrain 'WARNING: program timed out.' while in 'dynamic_cast...
authorThomas Schwinge <tschwinge@baylibre.com>
Fri, 9 May 2025 12:49:03 +0000 (14:49 +0200)
committerThomas Schwinge <tschwinge@baylibre.com>
Mon, 12 May 2025 13:48:12 +0000 (15:48 +0200)
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.

libgomp/testsuite/libgomp.c++/pr119692-1-4.C
libgomp/testsuite/libgomp.c++/pr119692-1-5.C
libgomp/testsuite/libgomp.c++/target-exceptions-bad_cast-1.C
libgomp/testsuite/libgomp.c++/target-exceptions-bad_cast-2.C
libgomp/testsuite/libgomp.oacc-c++/exceptions-bad_cast-1.C
libgomp/testsuite/libgomp.oacc-c++/exceptions-bad_cast-2.C

index 6995f2633328707dd3d14d95cfad27835e241410..af9fe1c8c183fcb3fb9c5e1843fa321fa2ac88d9 100644 (file)
@@ -3,6 +3,9 @@
 /* { dg-additional-options -DDEFAULT=defaultmap(firstprivate) }
    Wrong code for offloading execution.
    { dg-xfail-run-if PR119692 { offload_device } } */
+/* There are configurations where we 'WARNING: program timed out.' while in
+   'dynamic_cast', see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119692#c6>.
+   { dg-timeout 10 } ... to make sure that happens quickly.  */
 /* { dg-additional-options -fdump-tree-gimple } */
 
 #include "pr119692-1-1.C"
index 02121b6e9c5126696488c0205a76bf8641cd2ab2..e5c6e077fc8d0a523ed6942668979085c0b52a0c 100644 (file)
@@ -3,6 +3,9 @@
 /* { dg-additional-options -DDEFAULT=defaultmap(to) }
    Wrong code for offloading execution.
    { dg-xfail-run-if PR119692 { offload_device } } */
+/* There are configurations where we 'WARNING: program timed out.' while in
+   'dynamic_cast', see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119692#c6>.
+   { dg-timeout 10 } ... to make sure that happens quickly.  */
 /* { dg-additional-options -fdump-tree-gimple } */
 
 #include "pr119692-1-1.C"
index 3848295fbabcf05784b041255eeb0d1fe3bfeeea..a862652f4a8e6f35873019a9de3658085a04d7a7 100644 (file)
@@ -23,3 +23,6 @@
    PR119692.
 
    { dg-shouldfail {'std::bad_cast' exception} } */
+/* There are configurations where we 'WARNING: program timed out.' while in
+   'dynamic_cast', see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119692#c6>.
+   { dg-timeout 10 } ... to make sure that happens quickly.  */
index 88617400a723260e9ce1be71ef5a3b4508e8a9a3..ff15c9fa61f60ad74e9062ff4275e73c5564cf57 100644 (file)
@@ -22,3 +22,6 @@
 
    For GCN, nvptx offload execution, there is no 'catch'ing; any exception is fatal.
    { dg-shouldfail {'MyException' exception} { offload_device } } */
+/* There are configurations where we 'WARNING: program timed out.' while in
+   'dynamic_cast', see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119692#c6>.
+   { dg-timeout 10 } ... to make sure that happens quickly.  */
index 05456011ca1d4cf392fc308494a64f7fd53a774f..6957a6caec7032206c499adad8c7ecd040487f6c 100644 (file)
@@ -52,3 +52,6 @@ int main()
    PR119692.
 
    { dg-shouldfail {'std::bad_cast' exception} } */
+/* There are configurations where we 'WARNING: program timed out.' while in
+   'dynamic_cast', see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119692#c6>.
+   { dg-timeout 10 } ... to make sure that happens quickly.  */
index 24399eff978b3e8b0d2f275126e7488d90fe1414..0f84cf212c259563d8c62638e61633a8778275bb 100644 (file)
@@ -58,3 +58,6 @@ int main()
 
    For GCN, nvptx offload execution, there is no 'catch'ing; any exception is fatal.
    { dg-shouldfail {'std::bad_cast' exception} { ! openacc_host_selected } } */
+/* There are configurations where we 'WARNING: program timed out.' while in
+   'dynamic_cast', see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119692#c6>.
+   { dg-timeout 10 } ... to make sure that happens quickly.  */