[Bug middle-end/57955] Uniquization of constants breaks constant alignment

ebotcazou at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 23 21:37:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57955

--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> I don't understand the comment "questionable optimization patterns".

I don't see much value in optimizing a memcpy to initialize a variable, it's
unlikely to be in a hot spot.  I'd suggest adding 'const' to the testcase.

> Optimizing for size should be controlled by -Os.

It's just classical constant pool technique though and constant pools are not
conditionalized on -Os in the compiler.



More information about the Gcc-bugs mailing list