]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
nvptx: In mkoffload.cc, call diagnostic_color_init + gcc_init_libintl: Restore 'libgo...
authorThomas Schwinge <tschwinge@baylibre.com>
Fri, 5 Apr 2024 12:04:53 +0000 (14:04 +0200)
committerThomas Schwinge <tschwinge@baylibre.com>
Fri, 5 Apr 2024 12:11:16 +0000 (14:11 +0200)
With commit 7520a4992c94254016085a461c58c972497c4483
"nvptx: In mkoffload.cc, call diagnostic_color_init + gcc_init_libintl",
we regressed:

    [-PASS:-]{+FAIL:+} libgomp.c/reverse-offload-sm30.c  at line 15 (test for warnings, line )
    [-PASS:-]{+FAIL:+} libgomp.c/reverse-offload-sm30.c (test for excess errors)

libgomp/
* testsuite/libgomp.c/reverse-offload-sm30.c: Set 'GCC_COLORS' to the empty string.

libgomp/testsuite/libgomp.c/reverse-offload-sm30.c

index 7f10fd4ded9d64039086d146ac54216b4f7afe2a..cae75f034626b38631374dc357fb5665e8f39a5d 100644 (file)
@@ -12,4 +12,7 @@ main ()
   return 0;
 }
 
+/* The 'mkoffload's currently don't obey '-fno-diagnostics-color' etc., so use a different way to effect the same thing:
+   { dg-set-compiler-env-var GCC_COLORS "" }
+   ..., so that the following regexp doesn't have to deal with color code escape sequences.  */
 /* { dg-warning "'omp requires reverse_offload' requires at least 'sm_35' for '-foffload-options=nvptx-none=-march=' - disabling offload-code generation for this device type" "" { target *-*-* } 0 } */