This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Minor improvement to folding
- From: Richard Henderson <rth at redhat dot com>
- To: law at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 26 Feb 2004 15:34:13 -0800
- Subject: Re: [tree-ssa] Minor improvement to folding
- References: <200402261904.i1QJ3xJu014192@speedy.slc.redhat.com>
On Thu, Feb 26, 2004 at 12:03:59PM -0700, law@redhat.com wrote:
> This change basically allows us to determine that the address of
> two distinct, non-weak variables can not be the same.
int foo = 0;
extern int bar __attribute__((alias("foo")));
bool test() { return &foo == &bar; }
If both variables are extern, we don't even have access to
whether or not there's an attribute involved.
r~