Fixed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119317

Tested v2 on AArch64 using a new regression test,
which is simply a wrapper around an existing test
for named loops that sets the provoking options.

Confirmed that the new test passes with the fix
and fails if the fix is reverted. e.g.,
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/c/c-decl.cc                          | 3 ++-
 gcc/testsuite/gcc.dg/c2y-named-loops-8.c | 5 +++++
 2 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 gcc/testsuite/gcc.dg/c2y-named-loops-8.c

-- 
2.43.0

Reply via email to