Re: Woo hoo ... a whole new set of compiler headaches!!

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
Cc: Dave Held <dave(dot)held(at)arrayservicesgrp(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Woo hoo ... a whole new set of compiler headaches!!
Date: 2005-04-22 15:34:26
Message-ID: 20050422153426.GA21816@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Apr 22, 2005 at 11:46:04AM -0300, Marc G. Fournier wrote:

> Actually, what I'm more "worried" about is the optimizations added to 4.x
> ... I know, for instance, that with FreeBSD's kernel, for the longest time
> you couldn't use the higher optimizations in 3.x, since it would cause
> "unexpected results" ...

For a long time, the Linux kernel was meant to be compiled with specific
versions of GCC, because some assembly code was written in such a way
that the specific bugs in that compiler version made it write the exact
code they needed. So a new GCC release would fix the bugs, therefore
breaking Linux; they had to create new, specially crafted buggy code to
account for the bugs in the new compiler ;-) I think nowadays
those issues are pretty much settled. (Not sure if you can compile the
Linux kernel with GCC 4 anyway.)

Maybe this was the issue with the FreeBSD kernel as well, I don't know.

I wonder if this new GCC release could allow us to examine the strict
aliasing issue again.

--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
"Amanece. (Ignacio Reyes)
El Cerro San Cristóbal me mira, cínicamente, con ojos de virgen"

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-04-22 15:40:41 Re: possible TODO: read-only tables, select from indexes only.
Previous Message Hannu Krosing 2005-04-22 15:34:09 possible TODO: read-only tables, select from indexes only.