[lto][patch] add constant flag to constructors

Rafael Espindola espindola@google.com
Fri Aug 15 16:06:00 GMT 2008


With this patch things like

const unsigned short foo[] = {1};

are placed on rodata instead of data.

OK for lto if bootstraps and all tests are OK?

2008-08-15  Rafael Avila de Espindola  <espindola@google.com>

	* lto-tree-flags.def (CONSTRUCTOR): Add constant_flag.

Cheers,
-- 
Rafael Avila de Espindola

Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland

Registered in Dublin, Ireland
Registration Number: 368047
-------------- next part --------------
A non-text attachment was scrubbed...
Name: constant.patch
Type: text/x-diff
Size: 387 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080815/ed49281f/attachment.bin>


More information about the Gcc-patches mailing list