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

--- Comment #5 from Matteo Nicoli <matteo.nicoli001 at gmail dot com> ---
Created attachment 62175
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62175&action=edit
A patch to fix 121595

I attached a patch for this issue; Hope I haven't violated the coding
standards. I added a couple of tests file in gcc.dg. Probably I should have
added more optimizations in dg-options (currently I only have -O2). Should I
create a different file for each dg-options combination?

p.s. I notices that in main branch there  are a few test failures (3 in gcc and
3 in g++). Here's the summary of my test execution (without my changes):
```
FAIL: gcc.dg/pr96392.c scan-tree-dump-not optimized " \\+ "
FAIL: gcc.dg/pr96392.c scan-tree-dump-not optimized " \\- "
FAIL: gcc.dg/vla-1.c scan-tree-dump-times optimized " s=> i" 2

                === gcc Summary ===

# of expected passes            40822
# of unexpected failures        3
# of expected failures          530
# of unsupported tests          349
/build/gcc/xgcc  version 16.0.0 20250821 (experimental) (GCC)

                === g++ Summary ===

# of expected passes            157314
# of unexpected successes       3
# of expected failures          879
# of unsupported tests          1184
/build/gcc/xg++  version 16.0.0 20250821 (experimental) (GCC) 
```

All my test passed.

Reply via email to