[patch] Fixes for the uniquization machinery in varasm.c

Richard Guenther richard.guenther@gmail.com
Tue Apr 27 09:15:00 GMT 2010


On Tue, Apr 27, 2010 at 9:48 AM, Eric Botcazou <ebotcazou@adacore.com> wrote:
> Hi,
>
> this patch contains the fixes for the uniquization machinery in varasm.c that
> were necessary for http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01531.html:
>  - support for vector constants throughout,
>  - support for &label in the compare function (the support is already there in
> the hash function),
>  - support for *(type)& in the decode function; these expressions cannot be
> folded because of the intermediate cast but this cast can be eliminated when
> decoding addresses.
>
> Retested separately on i586-suse-linux (although the code is very likely never
> exercised in this situation), OK for mainline?

Ok.

Thanks,
Richard.

>
> 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
>
>        * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
>        (const_hash_1) <VECTOR_CST>: New case.
>        (compare_constant) <VECTOR_CST>: Likewise.
>        <ADDR_EXPR>: Deal with LABEL_REFs.
>        (copy_constant) <VECTOR_CST>: New case.
>
>
> --
> Eric Botcazou
>



More information about the Gcc-patches mailing list