Re: ANSI-strict pointer aliasing rules - Mailing list pgsql-hackers

From Zeugswetter Andreas DCP SD
Subject Re: ANSI-strict pointer aliasing rules
Date
Msg-id E1539E0ED7043848906A8FF995BDA579FC3523@m0143.s-mxs.net
Whole thread Raw
In response to ANSI-strict pointer aliasing rules  (Taral <taralx@gmail.com>)
List pgsql-hackers
> > 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


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: ANSI-strict pointer aliasing rules
Next
From: Andrew Dunstan
Date:
Subject: Re: ANSI-strict pointer aliasing rules