[PATCH] Fix PR21082 for C++

Richard Guenther rguenth@tat.physik.uni-tuebingen.de
Sat Apr 23 20:34:00 GMT 2005


This patch fixes pr21082 for the trees the C++ frontend generates.
It folds &a[i]-&a[j] to i-j if there are ARRAY_REFs used.

Bootstrapped and tested on x86_64-unknown-linux with no regressions
for all languages except ada and treelang.

Ok for mainline?

Thanks,
Richard.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-pr21082
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050423/646f85ad/attachment.ksh>


More information about the Gcc-patches mailing list