[Bug tree-optimization/93102] [optimization] is it legal to avoid accessing const local array from stack ?
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 30 11:35:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93102
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Status|UNCONFIRMED |NEW
Last reconfirmed| |2019-12-30
Component|c |tree-optimization
Ever confirmed|0 |1
Severity|normal |enhancement
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So yes it is valid in some cases, but not all. There is another bug report for
this too but I can't find it right now.
basically what needs to happen is that C00002029 cannot have its address taken;
right now it is marked as been taken due to the index'ed.
More information about the Gcc-bugs
mailing list