This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH to improve use of alias sets



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]