| 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 20:23:22 |
| Message-ID: | 3F8C5B3A.3090505@dunslane.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-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.
>
>
>
Yes, exactly - I have just confirmed this on the archived manuals on the
gcc site.
But turning it off for earlier releases does no harm.
It is known to break 2.7.1 and I believe it will work with 2.95 and later.
cheers
andrew
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2003-10-14 20:29:25 | Re: fix for strict-alias warnings |
| Previous Message | Tom Lane | 2003-10-14 20:22:20 | Re: fix for strict-alias warnings |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2003-10-14 20:29:25 | Re: fix for strict-alias warnings |
| Previous Message | Tom Lane | 2003-10-14 20:22:20 | Re: fix for strict-alias warnings |