Re: Re: performance hit with --enable-debug

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Re: performance hit with --enable-debug
Дата
Msg-id Pine.LNX.4.30.0101141945540.977-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: Re: performance hit with --enable-debug  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Re: performance hit with --enable-debug
Список pgsql-general
Tom Lane writes:

> BTW, it appears to me that configure won't even add the -g unless it
> thinks the compiler is gcc ... ie, --enable-debug is a no-op on non-gcc
> compilers.  Peter, isn't that a bug?

In case you're referring to

if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
  CFLAGS="$CFLAGS -g"
fi

this has nothing to do with GCC.  $ac_cv_prog_cc_g is set to yes if the
compiler understands -g.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


В списке pgsql-general по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: performance hit with --enable-debug
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: performance hit with --enable-debug