This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Fix PR15791
On Jan 27, 2005, at 9:57 AM, Richard Guenther wrote:
This patch adds the capability to fold comparisons of the form
&a[i] OP &a[j] (or plain a) as in PR15791. It does not handle
&x.a[i] OP &x.a[j] currently, as these are presented in a
different lowered form to fold.
Bootstrapped and tested on i686-pc-linux-gnu. Ok?
(if yes, please apply)
I don't think it handles the following C testcase (which should return
as the size of the struct is zero (this is unlike C++):
struct a b;
return &b == &b;