[Bug tree-optimization/119984] Incorrect code with -O2 and above

2025-04-28 Thread saul.x.robinson at durham dot ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119984 --- Comment #8 from saul.x.robinson at durham dot ac.uk --- (In reply to Andrew Pinski from comment #7) > (In reply to saul.x.robinson from comment #6) > > > > Oh. > > Just encase it exist, is there a setting to make GCC assume overflows are > >

[Bug tree-optimization/119984] Incorrect code with -O2 and above

2025-04-28 Thread saul.x.robinson at durham dot ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119984 --- Comment #6 from saul.x.robinson at durham dot ac.uk --- (In reply to Andrew Pinski from comment #5) > (In reply to saul.x.robinson from comment #4) > > I know the integer overflows. > > Does that sort of undefined behavior cause issues with t

[Bug tree-optimization/119984] Incorrect code with -O2 and above

2025-04-28 Thread saul.x.robinson at durham dot ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119984 --- Comment #4 from saul.x.robinson at durham dot ac.uk --- (In reply to saul.x.robinson from comment #0) > I have confirmed is bug occurs on 15.1.0 and 12.2.0. Don't know how to find > more recent versions. > Those GCC versions were compiling fo

[Bug tree-optimization/119984] New: Incorrect code with -O2 and above

2025-04-28 Thread saul.x.robinson at durham dot ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119984 Bug ID: 119984 Summary: Incorrect code with -O2 and above Product: gcc Version: 15.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimiz