This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/12012] New: problems with -fprofile-arcs/-fbranch-probabilities


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12012

           Summary: problems with -fprofile-arcs/-fbranch-probabilities
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kapalka at icslab dot agh dot edu dot pl
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: ia64
  GCC host triplet: ia64
GCC target triplet: ia64

When I compile some Geant4 benchmarks with '-O2 -fprofile-arcs' options, run
them (so .da files are created) and then try to compile them again using '-O2
-fbranch-probabilities' I get a 'corrupted profile info' error message for some
of the source files. Details:

GCC version: 3.3
Configured with: ./configure --prefix=/opt/gcc3.3 --enable-threads=posix
--enable-languages=c,c++,f77
Thread model: posix

System type: dual Itanium 1000 MHz, Linux (RedHat Linux Advanced Workstation 2.1
(beta) with a 2.4.20 kernel)
 
Command line: g++ -O2 -fbranch-probabilities -w -Iinclude -I..
-DG4_STORE_TRAJECTORY -DG4USE_STL -DG4OPTIMISE -DG4USE_STD_NAMESPACE
-DG4UI_USE_TERMINAL -c Em2PhysicsList.cc

The detailed output from the compiler (-v -save-temps):
Reading specs from /opt/gcc3.3/lib/gcc-lib/ia64-unknown-linux-gnu/3.3/specs
Configured with: ./configure --prefix=/opt/gcc3.3 --enable-threads=posix
--enable-languages=c,c++,f77
Thread model: posix
gcc version 3.3
 /opt/gcc3.3/lib/gcc-lib/ia64-unknown-linux-gnu/3.3/cc1plus -E -D__GNUG__=3
-quiet -v -Iinclude -I.. -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0
-D_GNU_SOURCE -DG4_STORE_TRAJECTORY -DG4USE_STL -DG4OPTIMISE
-DG4USE_STD_NAMESPACE -DG4UI_USE_TERMINAL Em2PhysicsList.cc -w
-fbranch-probabilities -O2 Em2PhysicsList.ii
ignoring nonexistent directory "/opt/gcc3.3/ia64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 include
 ..
 /opt/gcc3.3/include/c++/3.3
 /opt/gcc3.3/include/c++/3.3/ia64-unknown-linux-gnu
 /opt/gcc3.3/include/c++/3.3/backward
 /usr/local/include
 /opt/gcc3.3/include
 /opt/gcc3.3/lib/gcc-lib/ia64-unknown-linux-gnu/3.3/include
 /usr/include
End of search list.
 /opt/gcc3.3/lib/gcc-lib/ia64-unknown-linux-gnu/3.3/cc1plus -fpreprocessed
Em2PhysicsList.ii -quiet -dumpbase Em2PhysicsList.cc -auxbase Em2PhysicsList -O2
-w -version -fbranch-probabilities -o Em2PhysicsList.s
GNU C++ version 3.3 (ia64-unknown-linux-gnu)
	compiled by GNU C version 3.2.3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Em2PhysicsList.cc: In member function `void 
   Em2PhysicsList::AddPhysicsList(const G4String&)':
Em2PhysicsList.cc:107: error: corrupted profile info: prob for 54-55 thought to
   be -10000
Em2PhysicsList.cc:107: error: corrupted profile info: prob for 54-56 thought to
   be 20000


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]