To: pgcc AT delorie DOT com Subject: pgcc -pg -O6 segfault Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII From: nbecker AT fred DOT net Date: 24 May 1999 14:27:51 -0400 Message-ID: Lines: 24 Sender: Reply-To: pgcc AT delorie DOT com gcc version pgcc-2.91.66 19990314 (egcs-1.1.2 release) i686-pc-linux-gnu glibc-2.0.7(RH5.2) My program is OK with pgcc -O6, but with -pg it segfaults if optimization is -O6. It's OK with -pg with -O3. If -pg -O6 is used it says: g++ -g -W -O6 -ffast-math -malign-double -pg -c -o TestEqualizer2.pg.o TestEqualizer2.cc TestEqualizer2.cc: In function `int main(int, char **)': TestEqualizer2.cc:173: warning: `int DELAY' might be used uninitialized in this function make[1]: Leaving directory `/disk1/nbecker/spaceway' make LINK.o LDFLAGS="-pg -lfftw" TARGET=TestEqualizer2.pg OBJS=TestEqualizer2.pg.o LIBS="-L. -ls.pg" make[1]: Entering directory `/disk1/nbecker/spaceway' g++ -pg -lfftw -o TestEqualizer2.pg TestEqualizer2.pg.o -L. -ls.pg >Starting program: /disk1/nbecker/spaceway/TestEqualizer2.pg Program received signal SIGSEGV, Segmentation fault. 0x40118b17 in mcount () from /lib/libc.so.6 Current language: auto; currently c (gdb) where #0 0x40118b17 in mcount () from /lib/libc.so.6