arc profiling broken on gcc-3.0.4 Linux
Neal D. Becker
nbecker@hns.com
Wed Mar 27 13:33:00 GMT 2002
It looks like all arc profiling is broken on gcc-3.0.4 Linux. Here's
what happens:
#include <iostream>
#include <stdexcept>
using std::cout;
main() {
cout << "hello world\n";
}
g++3 -v -o Hello Hello.cc -Wall -O6 -ffast-math -fprofile-arcs -malign-functions=4 -fstrict-aliasing -g
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.0.4/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib
Thread model: posix
gcc version 3.0.4 (Red Hat Linux 7.2 3.0.4-1)
/usr/lib/gcc-lib/i386-redhat-linux/3.0.4/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=4 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__OPTIMIZE__ -D__FAST_MATH__ -D__STDC_HOSTED__=1 -Wall -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i386__ Hello.cc -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase Hello.cc -malign-functions=4 -g -O6 -Wall -version -ffast-math -fprofile-arcs -fstrict-aliasing -o /tmp/ccF4XgFY.s
GNU CPP version 3.0.4 (Red Hat Linux 7.2 3.0.4-1) (cpplib) (i386 Linux/ELF)
GNU C++ version 3.0.4 (Red Hat Linux 7.2 3.0.4-1) (i386-redhat-linux)
compiled by GNU C version 3.0.4 (Red Hat Linux 7.2 3.0.4-1).
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/include/g++-v3
/usr/include/g++-v3/i386-redhat-linux
/usr/include/g++-v3/backward
/usr/local/include
/usr/lib/gcc-lib/i386-redhat-linux/3.0.4/include
/usr/include
End of search list.
Hello.cc:6: warning: ISO C++ forbids declaration of `main' with no type
as -V -Qy -o /tmp/ccZO3Sg4.o /tmp/ccF4XgFY.s
GNU assembler version 2.11.90.0.8 (i386-redhat-linux) using BFD version 2.11.90.0.8
/usr/lib/gcc-lib/i386-redhat-linux/3.0.4/collect2 -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o Hello /usr/lib/gcc-lib/i386-redhat-linux/3.0.4/../../../crt1.o /usr/lib/gcc-lib/i386-redhat-linux/3.0.4/../../../crti.o /usr/lib/gcc-lib/i386-redhat-linux/3.0.4/crtbegin.o -L/usr/lib/gcc-lib/i386-redhat-linux/3.0.4 -L/usr/lib/gcc-lib/i386-redhat-linux/3.0.4/../../.. /tmp/ccZO3Sg4.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc-lib/i386-redhat-linux/3.0.4/crtend.o /usr/lib/gcc-lib/i386-redhat-linux/3.0.4/../../../crtn.o
[nbecker@rpppc1 ~]$ ./Hello
hello world
arc profiling: Can't open output file /home/nbecker/Hello.da.
More information about the Gcc-bugs
mailing list