[Bug tree-optimization/119070] gcc15 incorrectly reporting negative array-bounds errors

2025-03-03 Thread taylor.hutt at broadcom dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119070 --- Comment #7 from Taylor Hutt --- (In reply to Andrew Pinski from comment #6) > You could do: > >struct_1 *v1 = &global_0.f_2_0; >asm("":"+r"(v1)); >unsigned char *v2 = (unsigned char *)v1; > > to hide from GCC that the addr

[Bug tree-optimization/119070] gcc15 incorrectly reporting negative array-bounds errors

2025-02-28 Thread taylor.hutt at broadcom dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119070 --- Comment #4 from Taylor Hutt --- (In reply to Andrew Pinski from comment #3) > I don't see anything wrong with the warning since it is undefined in C to > what this testcase is trying to do. > > Do you have a full source rather than a reduce

[Bug c/119070] gcc15 incorrectly reporting negative array-bounds errors

2025-02-28 Thread taylor.hutt at broadcom dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119070 --- Comment #1 from Taylor Hutt --- Created attachment 60616 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60616&action=edit C file that demonstrates errors.

[Bug c/119070] gcc15 incorrectly reporting negative array-bounds errors

2025-02-28 Thread taylor.hutt at broadcom dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119070 --- Comment #2 from Taylor Hutt --- Created attachment 60617 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60617&action=edit Shell script to compile C file.

[Bug c/119070] New: gcc15 incorrectly reporting negative array-bounds errors

2025-02-28 Thread taylor.hutt at broadcom dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119070 Bug ID: 119070 Summary: gcc15 incorrectly reporting negative array-bounds errors Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Prio