]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix local labels [PR122378]
authorPaul-Antoine Arras <parras@baylibre.com>
Wed, 22 Oct 2025 14:14:02 +0000 (16:14 +0200)
committerPaul-Antoine Arras <parras@baylibre.com>
Wed, 22 Oct 2025 14:19:58 +0000 (16:19 +0200)
r16-4540-g80af807e52e4f4 exposed a bug in two testcases where the declaration of
local labels was wrongly commented out. That caused "duplicate label" errors.
Uncommenting declarations fixes it.

PR middle-end/122378

gcc/testsuite/ChangeLog:

* c-c++-common/gomp/attrs-metadirective-2.c: Uncomment local label
declaration.
* c-c++-common/gomp/metadirective-2.c: Likewise.

gcc/testsuite/c-c++-common/gomp/attrs-metadirective-2.c
gcc/testsuite/c-c++-common/gomp/metadirective-2.c

index ff401c86b09c5df0db7adf830a8cb0d2e44a71e5..bdb41e1017b751363aafb1df8f780fb2c155a521 100644 (file)
@@ -62,7 +62,7 @@ main (void)
       when (device={arch("gcn")}: teams num_teams(256)),
       default (teams num_teams(4)))]]
   {
-    //__label__ l1, l2;
+    __label__ l1, l2;
 
     if (x)
       goto l1;
index 4b05cb96ab2bffbc476e31cece74b8e0fba7406e..9f8169a8b02f6eae5940f6f779873adb9e74fee6 100644 (file)
@@ -61,7 +61,7 @@ main (void)
     when (device={arch("gcn")}: teams num_teams(256)) \
     default (teams num_teams(4))
   {
-    //__label__ l1, l2;
+    __label__ l1, l2;
 
     if (x)
       goto l1;