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

From Bruce Momjian
Subject Re: [HACKERS] Some cleanups/enhancements
Date
Msg-id 199802111912.OAA11157@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] Some cleanups/enhancements  (Jeroen van Vianen <jeroenv@design.nl>)
List pgsql-hackers
>
> Thomas G. Lockhart wrote:
> >
> > > I'm running PostgreSQL 6.3 on Linux 2.1.85 with gcc 2.8.0 and libc5. So
> > > far no problems, however I noted some cleanups / enhancements which I
> > > would like to do. Before I send you a bunch of patches I thought I'll
> > > tell you what I'm planning to do. Please comment on my list and indicate
> > > whether I should go ahead.
> > >
> > > - Fix all Makefiles so 'make dep' and 'make depend' work
> > > - Fix all Makefiles so 'make clean' throws away the depend file
> > > - Some other Makefile cleanups
> >
> > These all sound good. If there is a possibility of large breakage, wait
> > until after v6.3.
>
> > Some or all of these changes might not be appropriate for v6.3, since we
> > are in beta testing and since they do not affect the current functionality.
> > For those cases, how about submitting patches based on the final v6.3
> > release?
>
> After the messages I've read so far, I'll wait until after the final
> release of 6.3 and try to do the patches one at a time, so there'll be
> plenty of time :-) to review them.
>
> > [snip]
>
> > > - 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)?
> >
> > Does gcc 2.7.x support the -mpentium and -mpentiumpro switches? If not,
> > then the template should be more explicit in name (e.g.
> > "linux-elf-586-gcc2.8") or we should update the FAQ or include comments in
> > linux-elf with some suggestions. It was only in the last release or two
> > that the -m486 was added, and I worried about causing trouble for _all_ of
> > those 386 users :)
>
> No, it doesn't. linux-elf-586-gcc2.8 sounds OK to me.
> > > - Some other Makefile cleanups
> > > - gcc 2.8.0 issues some additional warnings which are very easy to fix:
> > >   - register i --> register int i
> > >   - Ambiguous else --> add braces:
> > >     if (cond1)
> > >       if (cond2)
> > >         ...
> > >       else
> > >         ...
> > >   - etc.
> >
> >         Sounds great...
>
> If I find something like this, I'll remove the register as well.

Register is gone.  Just removed them.

--
Bruce Momjian
maillist@candle.pha.pa.us

pgsql-hackers by date:

Previous
From: Tripp Lilley
Date:
Subject: compiling extension functions? (fwd)
Next
From: "Kent S. Gordon"
Date:
Subject: Re: [HACKERS] Re: [QUESTIONS] Error on PostgreSQL agregate SUM() function??