public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/3001: option -fprofile-arcs does not work with my powerpc-linux-gcc
@ 2001-05-30  7:46 haverkam
  0 siblings, 0 replies; only message in thread
From: haverkam @ 2001-05-30  7:46 UTC (permalink / raw)
  To: gcc-gnats; +Cc: doehler

>Number:         3001
>Category:       c
>Synopsis:       option -fprofile-arcs does not work with my powerpc-linux-gcc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 30 07:46:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     haverkam@de.ibm.com
>Release:        gcc version 2.95.2 19991030 (2.95.3 prerelease/franzo)
>Organization:
>Environment:
The hostsystem is based on Redhat 7.1
The crosscompiler which caused the error was compiled with
the following options in the RPM-specfile:
  ./configure \
              --host=$my_arch \
              --target=powerpc-linux \
              --prefix=%{ROOT}/$my_arch/local \
              --enable-shared \
              --enable-languages="c,c++,f77" \
              --with-headers=%{ROOT}/%{TARGET}/include \
              --with-libs=%{ROOT}/%{TARGET}/lib \
              --with-cpu=403 --without-fp

and should produce code for a PowerPC 405GP.
We applied 2 Patches:
gcc-2.95.2-franz.patch
gcc-powerpc-fpu.patch

The compiler works fine and compiles the linuxkernel and
the libraries without any problems.
>Description:
I tried to get gcov and gprof running on my crosscompiling
environment. Unfortunatly I got some errors compiling my 
testprogram for the target. The host gcc works fine and 
causes no problems with the same options and sources.

1. gprof
=======
My powerpc-linux-gprof tool seems to work, only my compiler is a bit
strange. Trying the -a option to enable basic block counting I got:
 
powerpc-linux-gcc -Wall -g -c -o test.o test.c -a -pg
cc1: warning: `-a' option (basic block profile) not supported
 
but I got at least a working test program and could manage to run
it on the walnut. The comparision of the gprof output on the host and
on the walnut was ok.
 
2. gcov
=======
Trying to compile test.c with support for coverage testing I got the
following errors:
 
powerpc-linux-gcc -Wall -g -O2 -fprofile-arcs -ftest-coverage -c -o test.o test.c
powerpc-linux-gcc: Internal compiler error: program cc1 got fatal signal 11

The complete output was:
/opt/fsp/i586-pc-linux-gnu/local/bin/powerpc-linux-gcc -v -save-temps -Wall -g -O2 -fprofile-arcs -ftest-coverage -c -o test.o test.c
Reading specs from /opt/fsp/i586-pc-linux-gnu/local/lib/gcc-lib/powerpc-linux/2.95.2/specs
gcc version 2.95.2 19991030 (2.95.3 prerelease/franzo)
 /opt/fsp/i586-pc-linux-gnu/local/lib/gcc-lib/powerpc-linux/2.95.2/cpp -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -DPPC -D__ELF__ -Dpowerpc -D__PPC__ -D__ELF__ -D__powerpc__ -D__PPC -D__powerpc -Acpu(powerpc) -Amachine(powerpc) -D__CHAR_UNSIGNED__ -D__OPTIMIZE__ -g -Wall -D_CALL_SYSV -D_SOFT_FLOAT -D_BIG_ENDIAN -D__BIG_ENDIAN__ -Amachine(bigendian) -D_ARCH_PPC -D__unix__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem(unix) -Asystem(posix) test.c test.i
GNU CPP version 2.95.2 19991030 (2.95.3 prerelease/franzo) (PowerPC GNU/Linux)
#include "..." search starts here:
#include <...> search starts here:
 /opt/fsp/i586-pc-linux-gnu/local/lib/gcc-lib/powerpc-linux/2.95.2/include
 /opt/fsp/i586-pc-linux-gnu/local/lib/gcc-lib/powerpc-linux/2.95.2/../../../../powerpc-linux/sys-include
End of search list.
The following default directories have been omitted from the search path:
 /opt/fsp/i586-pc-linux-gnu/local/lib/gcc-lib/powerpc-linux/2.95.2/../../../../include/g++-3
 /opt/fsp/i586-pc-linux-gnu/local/lib/gcc-lib/powerpc-linux/2.95.2/../../../../powerpc-linux/include
End of omitted list.
 /opt/fsp/i586-pc-linux-gnu/local/lib/gcc-lib/powerpc-linux/2.95.2/cc1 test.i -quiet -dumpbase test.c -g -O2 -Wall -version -fprofile-arcs -ftest-coverage -o test.s
GNU C version 2.95.2 19991030 (2.95.3 prerelease/franzo) (powerpc-linux) compiled by GNU C version 2.96 20000731 (Red Hat Linux 7.1 2.96-81).
powerpc-linux-gcc: Internal compiler error: program cc1 got fatal signal 11
make: *** [test.o] Error 1
>How-To-Repeat:
via email to haverkam@de.ibm.com
If you cannot make it work it would be a great help for
me to know what the reason for the error was, and when 
it will be fixed. If you need more information please let
me know. Thanks!
>Fix:
Sorry I have not the knowledge to fix it - I hope you will
find the bug - good luck.
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-30  7:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-30  7:46 c/3001: option -fprofile-arcs does not work with my powerpc-linux-gcc haverkam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).