https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110620
Richard Biener changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110620
--- Comment #5 from Andrew Pinski ---
>From the looks of it is just not optimizing enough before the warning happens.
The final optimized code does not have the store in it.
The store for the vector to create the size of one element vector hap
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110620
--- Comment #4 from Chris Uzdavinis ---
(Sorry I was getting bugzilla errors about collisions when adding comments, but
they seemed to have gone through after all.)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110620
--- Comment #3 from Chris Uzdavinis ---
Starting with Gcc12.1 (at least on x86) and through all versions up to the
trunk (post 13.1)
This warning hits with optimization -O2 or higher.
https://godbolt.org/z/q3T39Wf8c
#include
void fo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110620
--- Comment #2 from Chris Uzdavinis ---
Created attachment 55516
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55516&action=edit
preprocessed code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110620
--- Comment #1 from Chris Uzdavinis ---
Starting with Gcc12.1 (at least on x86) and through all versions up to the
trunk (post 13.1)
This warning hits with optimization -O2 or higher.
https://godbolt.org/z/q3T39Wf8c
#include
void fo