[Bug target/106068] Infinite loop generated with -mcpu=cortex-m7 and -O2

2022-06-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106068 --- Comment #3 from Andrew Pinski --- (In reply to Dave Flogeras from comment #2) > For that code, agreed, and that was indeed both our and upstreams > workaround. We were just wondering if it was a legitimate compiler bug > given that it gener

[Bug target/106068] Infinite loop generated with -mcpu=cortex-m7 and -O2

2022-06-23 Thread dflogeras2 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106068 --- Comment #2 from Dave Flogeras --- (In reply to Andrew Pinski from comment #1) > You access an out of bounds for the array dhcp_rx_options_given in the while > statement: > > while((dhcp_rx_options_given[8 + n] != 0) && (n < 2)) { > > >

[Bug target/106068] Infinite loop generated with -mcpu=cortex-m7 and -O2

2022-06-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106068 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---