emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P for static const...
authorTom de Vries <tom@codesourcery.com>
Thu, 13 Oct 2011 09:54:50 +0000 (09:54 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 13 Oct 2011 09:54:50 +0000 (09:54 +0000)
commitba30e50da297aae475d10e95cd8d391e1e4dde17
tree632f11e927fc77c78227669b4d1bc7c536ad109b
parent6c9fbfa72eea6d4a8689831977bfde2072fc195a
emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P for static const strings.

2011-10-13  Tom de Vries  <tom@codesourcery.com>

* emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
for static const strings.
* varasm.c (build_constant_desc): Generate the memory location of the
constant using gen_const_mem.

From-SVN: r179896
gcc/ChangeLog
gcc/emit-rtl.c
gcc/varasm.c