This is the mail archive of the gcc@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]

Re: aliasing warnings [patch]


On Sat, 25 Sep 1999, Zack Weinberg wrote:
>Zack Weinberg wrote:
>> 
>> Hmm... well, check this patch out.  It isn't necessary to add another
>> slot to every tree node, which is a relief.  It nails my test case
>> dead on, but generates a pile of complaints about libgcc which I'm not
>> sure if they're spurious or not yet.
>
>Argh... patch riddled with bugs.  Try this one instead.  This gets rid
>of all the spurious warnings from libgcc2.  It no longer warns about
>the "foo1" case of the test program, but it was warning about that for
>the wrong reason.
>
>zw

False alarms on multi-dimensional arrays (code from memory):

typedef int ARR3[8][8][8];
extern ARR3 arr3;
extern int a,b,c;
int foo(void)
{
   return arr3[a][b][c];
}

Hartmut


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