[Bug rtl-optimization/89490] char array constant put in string merge section

amodra at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Feb 25 07:26:00 GMT 2019


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

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
Reduced C testcase, compile at -O1.

static const unsigned char utf8_bom[3] = { 0xEF, 0xBB, 0xBF };

void
plonk (unsigned char *p)
{
  __builtin_memcpy (p, utf8_bom, 3);
}


More information about the Gcc-bugs mailing list