[PATCH 1/1] Fix BZ 119317: named loops (C2y) with debug info

2025-04-29 Thread Christopher Bazley
Named loops (C2y) could not previously be compiled with -O1 and -ggdb2 or higher because the label preceding a loop (or switch) could not be found when using such command lines. This could be observed by compiling gcc/gcc/testsuite/gcc.dg/c2y-named-loops-1.c with the provoking command line (or any

[PATCH 0/1] Fix BZ 119317: named loops (C2y) with debug info

2025-04-29 Thread Christopher Bazley
operand ‘main’ does not refer to a named loop 5 | continue main; | ^~~~ test.c:3:3: warning: label ‘main’ defined but not used \[-Wunused-label\] 3 | main: | ^~~~ gcc/xgcc -B gcc -std=gnu2y -O1 -ggdb2 -Wall -c \ test.c -o test.o Christopher Bazley (1