[PATCH] Fix PR c/12818

Geoff Keating geoffk@geoffk.org
Thu Jan 29 23:27:00 GMT 2004


Eric Botcazou <ebotcazou@libertysurf.fr> writes:

> 2004-01-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
> 
> 	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.
> 
> 
> 2004-01-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
> 
> 	* gcc.dg/fwritable-strings-1.c: New test.

This is OK, assuming you've bootstrapped & run a dejagnu testrun on
some platform.

-- 
- Geoffrey Keating <geoffk@geoffk.org>



More information about the Gcc-patches mailing list