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: [patch] Fix estimate number of iterations




On Mon, 19 Sep 2005, Andrew Pinski wrote:


On Sep 19, 2005, at 4:01 PM, Sebastian Pop wrote:


Hi,
here is a patch for restricting the computation of loop bounds to
arrays not contained in structs.


Actually it is only need if the array is the last element in the struct.

Actually, it has *nothing* to do with structs directly, only pointers.


The following is not legal:

struct a
{
int foo;
int bar[1];
} foobar;

foobar.bar[2] = 5

The attached should work

Attachment: indir.diff
Description: Text document


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