[Bug middle-end/59863] const array in function is placed on stack

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 7 09:36:29 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59863

--- Comment #15 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #14)
> (In reply to Andrew Pinski from comment #13)
> > I have an idea on how to fix this for the case when there is enough values
> > that GCC's gimplifier creates a const static variable to copy from. Which
> > happens in almost reported duplicates except it does NOT for testcase in
> > comment #0.
> 
> Well it does for the arm target.

PR 70189 lists why x86_64 now creates a non constant pool load.


More information about the Gcc-bugs mailing list