This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: [RFC] ignoring type alias conflicts between structures andscalars


On Thu, 2004-11-25 at 16:03 -0500, Richard Kenner wrote:
>     But if we just have a structure reference and a global variable, we
>     won't ever have this problem.  The aliasing code doesn't look at
>     those.  It only ever looks at pointers vs addressable variables.  It
>     doesn't care about other variables.
> 
> You lost me.  Isn't a global variable an addressable variable?
>
Yes, but if there are no pointers involved, it will never be considered
for aliasing:

int X;

foo()
{
  struct int_float_s x = bar();
  X = 10;
  x.i = 3;
  return X;
}


Diego.


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