Re: [PERFORM] Sun performance - Major discovery!

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: [PERFORM] Sun performance - Major discovery!
Дата
Msg-id
200310140048.h9E0mDe09671@candle.pha.pa.us
Ответ на
Список
Дерево обсуждения
Re: [PERFORM] Sun performance - Major discovery! Tom Lane <tgl@sss.pgh.pa.us>
Re: [PERFORM] Sun performance - Major discovery! Marko Karppinen <marko@karppinen.fi>
Re: [PERFORM] Sun performance - Major discovery! Peter Eisentraut <peter_e@gmx.net>

Done as you suggested.

---------------------------------------------------------------------------

Tom Lane wrote:
> Bruce Momjian  writes:
> > OK, patch attached and applied.  It centralizes the optimization
> > defaults into configure.in, rather than having CFLAGS= in the template
> > files.
> 
> I think there's a problem here:
> 
> > + # configure sets CFLAGS to -O2 for gcc, so this is only for non-gcc
> > + if test x"$CFLAGS" = x""; then
> > + 	CFLAGS="-O"
> > + fi
> >   if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
> >     CFLAGS="$CFLAGS -g"
> >   fi
> 
> since this will cause "configure --enable-debug" to default to selecting
> CFLAGS="-O -g" for non-gcc compilers.  On a lot of compilers that
> combination does not work, and will generate tons of useless warnings.
> I think it might be better to do
> 
>   if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
>     CFLAGS="$CFLAGS -g"
> + else
> +   # configure sets CFLAGS to -O2 for gcc, so this is only for non-gcc
> +   if test x"$CFLAGS" = x""; then
> + 	CFLAGS="-O"
> +   fi
>   fi
> 
> 			regards, tom lane
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
В списке pgsql-hackers по дате отправления
От: Bruce Momjian
Дата:
Сообщение: Re: Heading to final release
От: Tom Lane
Дата:
Сообщение: Re: _GNU_SOURCE
FAQ