Skip site navigation (1) Skip section navigation (2)

Re: fix for strict-alias warnings

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(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 20:01:32
Message-ID: 200310142001.h9EK1Wv25782@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Tom Lane wrote:
> 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.

Right.  I am just not sure how old our gcc compilers are in the field. 
We can do it unconditionally and wait for a failure report.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2003-10-14 20:02:48
Subject: Re: pg_ctl reload - is it safe?
Previous:From: James RogersDate: 2003-10-14 19:59:03
Subject: Re: Database Kernels and O_DIRECT

pgsql-patches by date

Next:From: Peter EisentrautDate: 2003-10-14 20:18:32
Subject: Re: fix for strict-alias warnings
Previous:From: Tom LaneDate: 2003-10-14 19:52:42
Subject: Re: fix for strict-alias warnings

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group