This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH to improve use of alias sets
- To: mark at markmitchell dot com
- Subject: Re: PATCH to improve use of alias sets
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 22 Sep 1998 17:02:06 -0600
- cc: egcs-patches at cygnus dot com, Michael Tiemann <tiemann at cygnus dot com>
- Reply-To: law at cygnus dot com
In message <199809220808.BAA31092@smtp.earthlink.net>you write:
> Mon Sep 21 12:46:22 1998 Mark Mitchell <mark@markmitchell.com>
>
> * c-common.c (c_get_alias_set): Tighten slightly for FUNCTION_TYPEs
> and ARRAY_TYPEs. Tidy up. Improve support for type-punning.
> * expr.c (store_field): Add alias_set parameter. Set the
> MEM_ALIAS_SET accordingly, if the target is a MEM.
> (expand_assignment): Use it.
> (store_constructor_field): Pass 0.
> (expand_expr): Likewise.
This basically looks fine. One question though, can't you get the alias
set by looking at the passed in target? If not, why? If the data isn't
available in the passed-in target, maybe we should find out why.
Would it be wise to assign an alias set for the memory returned by
assign_stack_local for other cases handled by store_field?
jeff