This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: aliasing warnings [patch]
- To: Zack Weinberg <zack at bitmover dot com>
- Subject: Re: aliasing warnings [patch]
- From: Hartmut Schirmer <hartmut dot schirmer at arcormail dot de>
- Date: Mon, 27 Sep 1999 17:00:07 +0200
- Cc: gcc at gcc dot gnu dot org
- References: <199909252106.OAA10604@zack.bitmover.com>
- Reply-To: hartmut dot schirmer at arcormail dot de
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