www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1999/05/24/14:34:47

To: pgcc AT delorie DOT com
Subject: pgcc -pg -O6 segfault
Mime-Version: 1.0 (generated by tm-edit 7.108)
From: nbecker AT fred DOT net
Date: 24 May 1999 14:27:51 -0400
Message-ID: <x88r9o6uxug.fsf@nbeckerpc.hns.com>
Lines: 24
Sender: <nbecker AT hns DOT com>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019