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

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Thomas T(dot) Thai" <tom(at)minnesota(dot)com>, PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Re: performance hit with --enable-debug
Date: 2001-01-14 18:47:34
Message-ID: Pine.LNX.4.30.0101141945540.977-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2001-01-14 19:12:56 Re: performance hit with --enable-debug
Previous Message Tom Lane 2001-01-14 18:46:10 Re: Re: performance hit with --enable-debug