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

2025-05-01 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 v2 0/1] Fix BZ 119317: named loops (C2y) with debug info

2025-05-01 Thread Christopher Bazley
., FAIL: gcc.dg/c2y-named-loops-8.c (test for excess errors) Changes in v2: - Fixed a formatting issue. - Added a test. Link to v1: https://inbox.sourceware.org/gcc-patches/20250429124531.103475-1-chris.baz...@arm.com/ Christopher Bazley (1): Fix BZ 119317: named loops (C2y) with debug info gcc

[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