Re: [HACKERS] ANSI-strict pointer aliasing rules

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Zeugswetter Andreas DCP SD <ZeugswetterA(at)spardat(dot)at>
Cc: Taral <taralx(at)gmail(dot)com>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] ANSI-strict pointer aliasing rules
Date: 2006-04-27 14:27:35
Message-ID: 200604271427.k3RERaj19992@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Zeugswetter Andreas DCP SD wrote:
>
> > > 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

OK, patch attached and applied to use -qnoansialias in xlc. We can
consider backpatching this to 8.1.X.

--
Bruce Momjian http://candle.pha.pa.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

Attachment Content-Type Size
/bjm/diff text/x-diff 616 bytes

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-04-27 14:39:41 Re: ANSI-strict pointer aliasing rules
Previous Message Jonah H. Harris 2006-04-27 14:20:17 Re: Summer of Code idea

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2006-04-27 14:29:30 Re: plpython improvements
Previous Message Hannu Krosing 2006-04-27 14:26:15 Re: plpython improvements