Re: fix for strict-alias warnings

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: fix for strict-alias warnings
Date: 2003-10-14 19:17:46
Message-ID: 3F8C4BDA.2030703@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Neil Conway 2003-10-14 19:19:50 Re: fix for strict-alias warnings
Previous Message Bruce Momjian 2003-10-14 19:09:24 Re: fix for strict-alias warnings

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2003-10-14 19:19:50 Re: fix for strict-alias warnings
Previous Message Bruce Momjian 2003-10-14 19:09:24 Re: fix for strict-alias warnings