From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5982 invoked from network); 20 May 1998 08:49:41 -0000 Received: from smtp.paralleldata.com (HELO paralleldata.com) (38.153.145.2) by mail2.redhat.com with SMTP; 20 May 1998 08:49:41 -0000 Received: by paralleldata.com from localhost (router,SLMail V2.5); Wed, 20 May 1998 03:50:33 -0500 Received: by paralleldata.com from paralleldata.com (208.254.18.186::mail daemon; unverified,SLMail V2.5); Wed, 20 May 1998 03:50:32 -0500 Sender: "Wsb" Message-ID: <35629AC1.3808DEE5@paralleldata.com> Date: Wed, 20 May 1998 03:56:33 -0500 From: "Wes Bauske" Organization: PDS Inc. X-Mailer: Mozilla 4.04 [en] (X11; U; Linux 2.0.31 i686) MIME-Version: 1.0 To: "axp-list@redhat.com" Subject: gprof on mixed gcc/g77 code Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I've got binaries where I mix C/FORTRAN and am trying to gprof them on a RH5.0 system. Strictly C programs appear to profile fine after adding the '-pg' flag to the compile/link. However, when I add this flag to g77, it seems to convert it to '-p'. Not what I want to have happen. Is this what it does?? If so, why?? My command from the make printout: g77 -c -pg -O2 -fschedule-insns -fschedule-insns2 -v t31int.f Reading specs from /z/home/alpha/lib/gcc-lib/alphaev56-unknown-linux-gnu/egcs-2.90.27/specs gcc version egcs-2.90.27 980315 (egcs-1.0.2 release) /z/home/alpha/lib/gcc-lib/alphaev56-unknown-linux-gnu/egcs-2.90.27/f771 t31int.f -fset-g77-defaults -quiet -dumpbase t31int.f -O2 -version -fversion -p -fschedule-insns -fschedule-insns2 -o /tmp/cca08161.s GNU F77 version egcs-2.90.27 980315 (egcs-1.0.2 release) (alphaev56-unknown-linux-gnu) compiled by GNU C version 2.7.2.3. GNU Fortran Front End version 0.5.22-19970929 as -nocpp -o t31int.o /tmp/cca08161.s Is there a way to stop this from happening?? Thanks. Wes