Mail Archives: pgcc/1999/05/24/14:34:47
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
- Raw text -