Re: [HACKERS] Some cleanups/enhancements - Mailing list pgsql-hackers

From Thomas G. Lockhart
Subject Re: [HACKERS] Some cleanups/enhancements
Date
Msg-id 34E1DD8C.38F978AD@alumni.caltech.edu
Whole thread Raw
In response to Re: [HACKERS] Some cleanups/enhancements  (Brian E Gallew <geek+@cmu.edu>)
List pgsql-hackers
> > > - Add a template for linux-elf-586 with (optimized) code for a Pentium
> > > (gcc 2.8.0 not only supports -m486 but also -mpentium and -mpentiumpro).
> > > Why not use template names similar to the output of config.guess (maybe
> > > with some symbolic links)?
>
> IMHO, none of the gcc-specific optimization switches belong in any
> templates.  If you're using gcc on a pentium, and your version
> supportes -mpentium, then it should be in the SPECS file in your gcc
> installation.  Admittedly, this presumes a certain clue level on the
> part of the gcc installer/maintainer, but it reduces the clutter level
> with templates somewhat.

Great! Want to write it up for the docs? Need a cookbook and an explanation;
I'll add it in...

If it requires a new install of gcc, then the other option might be to include
it in Makefile.custom as

  CFLAGS+= -mpentium

                                               - Tom


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] PostGreSQL v6.2.1 for Linux Alpha
Next
From: t-ishii@sra.co.jp
Date:
Subject: MB patch