Re: ANSI-strict pointer aliasing rules

From: "Zeugswetter Andreas DCP SD" <ZeugswetterA(at)spardat(dot)at>
To: "Taral" <taralx(at)gmail(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ANSI-strict pointer aliasing rules
Date: 2006-04-27 09:45:48
Message-ID: E1539E0ED7043848906A8FF995BDA579FC3523@m0143.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


> > 4. Find the option for disabling strict alias and get configure to
add
> > that.
>
> You'll still lose performance, but the option is "-qalias=noansi".

My old xlc does not show that option, it is unfortunately version
specific.
The currently compatible option to turn it off would be -qnoansialias

So we can use:
xlc -qnoansialias

The default cc options are: -qlanglvl=extended -qnoro -qnoroconst
So I guess we could also use (but above is imho clearer/better):
cc -qro -qroconst -qlanglvl=extc89

Andreas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2006-04-27 10:04:19 Re: ANSI-strict pointer aliasing rules
Previous Message Martijn van Oosterhout 2006-04-27 07:24:14 Re: ANSI-strict pointer aliasing rules

Browse pgsql-patches by date

  From Date Subject
Next Message Atsushi Ogawa 2006-04-27 12:27:54 Improvement of search for a binary operator
Previous Message Magnus Hagander 2006-04-27 07:25:08 Re: pgstat: delayed write of stats file