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]
Other format: [Raw text]

Re: [tree-ssa] Minor improvement to folding


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~


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