[HACKERS] How to use Makefile - pgxs without gcc -O2 ?

2014-07-08 Thread geohas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, is there any hint to tell pgxs to compile with gcc -O0 (CFLAGS) ? regards geohas -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

Re: [HACKERS] How to use Makefile - pgxs without gcc -O2 ?

2014-07-08 Thread Tom Lane
geohas li...@hasibether.at writes: is there any hint to tell pgxs to compile with gcc -O0 (CFLAGS) ? I tend to use make PROFILE=-O0 which relies on knowing that PG's make rules append $(PROFILE) to CFLAGS. Alternatively you could just override CFLAGS: make CFLAGS=whatever but

Re: [HACKERS] How to use Makefile - pgxs without gcc -O2 ?

2014-07-08 Thread geohas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thank you Tom! make CFLAGS=-O0 was it. now gdb doesn't print Value optimized out. regards On 08/07/14 17:45, Tom Lane wrote: geohas li...@hasibether.at writes: is there any hint to tell pgxs to compile with gcc -O0 (CFLAGS) ? I tend to use

Re: [HACKERS] How to use Makefile - pgxs without gcc -O2 ?

2014-07-08 Thread Piotr Stefaniak
On 07/08/2014 17:53, geohas wrote: make CFLAGS=-O0 was it. now gdb doesn't print Value optimized out. If you're using GCC 4.8 or later, consider using it with -Og for that kind of builds. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your