re PR c/12818 (-fwritable strings triggers bad code generation)
authorEric Botcazou <ebotcazou@libertysurf.fr>
Fri, 30 Jan 2004 14:16:43 +0000 (15:16 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 30 Jan 2004 14:16:43 +0000 (14:16 +0000)
commit5e9295fa05762dd503c5310b0b28e3f352f876ae
tree2f8ffaed307795a09c0dc5b8efae1560a53c708c
parent7dcc98e25c7da0f7eeef93d77d0ead2e5814b019
re PR c/12818 (-fwritable strings triggers bad code generation)

PR c/12818
* varasm.c (const_hash_1) <STRING_CST>: Use the
address to compute the hash value if flag_writable_strings.
(compare_constant) <STRING_CST>: Compare the addresses
if flag_writable_strings.
(build_constant_desc): Do not copy the expression for a
STRING_CST if flag_writable_strings.

From-SVN: r76958
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fwritable-strings-1.c [new file with mode: 0644]
gcc/varasm.c