Re: fix for strict-alias warnings - Mailing list pgsql-patches

From Andrew Dunstan
Subject Re: fix for strict-alias warnings
Date
Msg-id 3F8C4BDA.2030703@dunslane.net
Whole thread Raw
In response to Re: fix for strict-alias warnings  (Manfred Spraul <manfred@colorfullife.com>)
List pgsql-patches
Manfred Spraul wrote:

> I've asked the question on the gcc devel list. The first reply was
> that MemSet violates strict aliasing rules:
>
> http://gcc.gnu.org/ml/gcc/2003-10/msg00524.html
>
> I think we must either add -fno-strict-aliasing, or switch to the c
> compiler memset functions for gcc.
>
The concensus appears to be -fno-strict-aliasing

cheers

andrew


pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: fix for strict-alias warnings
Next
From: Neil Conway
Date:
Subject: Re: fix for strict-alias warnings