This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFH] Folding of &a[-1]
- From: Paul Schlie <schlie at comcast dot net>
- To: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Wed, 16 Feb 2005 13:43:14 -0500
- Subject: Re: [RFH] Folding of &a[-1]
Sorry, yes:
&x[-1] == (int *)x + (int *)4*(int *)-1
would be correct/true, and probably
simplest; although equivalent to either:
&x[-1] == (int *)x + (int *)((int)4*(int)-1)
or:
&x[-1] == (int *)x + (int *)((size_t)4*(int)-1)
or:
&x[-1] == (int *)x + (int *)((size_t)4*(size_t)-1)