Re: fix for strict-alias warnings

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Manfred Spraul <manfred(at)colorfullife(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: fix for strict-alias warnings
Date: 2003-10-14 19:52:42
Message-ID: 12081.1066161162@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> OK, what gcc versions support -fno-strict-aliasing? Do we need a
> configure test for it?

Perhaps ... although it is recognized in 2.95.3 and probably for a good
ways before that.

It looks to me like what has changed in gcc 3.3 is not the existence
of the flag, but the fact that -O2 now turns it on where it did not
before.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jon Jensen 2003-10-14 19:52:55 Re: postgres --help-config
Previous Message scott.marlowe 2003-10-14 19:39:17 Re: pg_ctl reload - is it safe?

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-10-14 20:01:32 Re: fix for strict-alias warnings
Previous Message Bruce Momjian 2003-10-14 19:37:28 Re: fix for strict-alias warnings