[Ada] Place exported constants in read-only memory
Eric Botcazou
ebotcazou@adacore.com
Tue Apr 21 07:10:00 GMT 2009
We interpret 13.3(19) conservatively and basically disallow any optimizations
for an object covered by it. But that's overkill for constants and prevents
them from being placed in read-only memory.
Tested on i586-suse-linux, applied on the mainline.
2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
constant objects covered by 13.3(19) volatile.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 1184 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090421/ef109643/attachment.bin>
More information about the Gcc-patches
mailing list