Bug 22314 - [4.1 regression] ICE in make profiledbootstrap: corrupted profile info for gcc/dominance.c
Summary: [4.1 regression] ICE in make profiledbootstrap: corrupted profile info for gc...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: 4.1.0
Assignee: Not yet assigned to anyone
URL:
Keywords: build, ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2005-07-05 19:51 UTC by Robin Green
Modified: 2005-09-06 14:07 UTC (History)
2 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2005-07-08 08:39:17


Attachments
gzipped testcase (53.23 KB, application/octet-stream)
2005-07-05 19:54 UTC, Robin Green
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Green 2005-07-05 19:51:54 UTC
Tried to build the gentoo ebuild for gcc head pulled from CVS on 20050702. Got
this error:

stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c   -save-temps
-march=athlon-xp -O2 -pipe -fprofile-use -freorder-blocks-and-partitio
n -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    
-DHAVE_CONFIG_H    -I. -I.
-I/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc
-I/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/.
-I/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/../include
-I/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/../libcpp/include
 /var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c
-o dominance.o                                                                 
                                                      xgcc: warning: -pipe
ignored because -save-temps specified                                          
                                     
/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:
In function 'calculate_dominance_info':                    
/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649:
error: corrupted profile info: number of executions for edge 40-98 thought to be
-9801                                                                          
                                 
/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649:
error: corrupted profile info: number of executions for edge 40-41 thought to be
14798                                                                          
                                 
/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649:
error: corrupted profile info: number of iterations for basic block 98 thought
to be -4804                                                                    
                                   
/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649:
error: corrupted profile info: number of executions for edge 98-103 thought to
be -9801                                                                       
                                   
/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649:
error: corrupted profile info: number of executions for edge 98-99 thought to be
4997                                                                           
                                 
/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649:
error: corrupted profile info: number of iterations for basic block 103 thought
to be -4804                                                                    
                                  
/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649:
error: corrupted profile info: number of executions for edge 103-110 thought to
be -9801                                                                       
                                  
/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649:
error: corrupted profile info: number of executions for edge 103-104 thought to
be 4997                                                                        
                                  
/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/gcc/dominance.c:649:
error: corrupted profile info: number of iterations for basic block 110 thought
to be -4804                                                                    
                                   make[2]: *** [dominance.o] Error 1          
                                                                               
              make[2]: Leaving directory
`/var/tmp/portage/gcc-4.1.0_beta20050702/work/build/gcc'                       
                                make[1]: *** [stagefeedback_build] Error 2     
                                                                               
           make[1]: Leaving directory
`/var/tmp/portage/gcc-4.1.0_beta20050702/work/build/gcc'                       
                                make: *** [profiledbootstrap] Error 2          
                                                              

# gcc/stage1/xgcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with:
/var/tmp/portage/gcc-4.1.0_beta20050702/work/gcc-4.1-20050702/configure
--enable-version-specific-runtime-libs --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.0-beta20050702
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.0-beta20050702/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0-beta20050702
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0-beta20050702/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0-beta20050702/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.0-beta20050702/include/g++-v4
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
--enable-nls --without-included-gettext --with-system-zlib --disable-checking
--disable-werror --disable-libunwind-exceptions --disable-multilib
--enable-java-awt=gtk --enable-languages=c,c++,java,f95 --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.0 20050702 (experimental)

gzipped dominance.i attached.
Comment 1 Robin Green 2005-07-05 19:54:09 UTC
Created attachment 9210 [details]
gzipped testcase
Comment 2 benoit.hudson 2005-07-11 19:42:15 UTC
I get a similar error on my pentium-3 box, configuring with just:
    /afs/cs/usr/bhudson/gcc/gcc-cvs-head/configure --enable-languages=c,c++
and 
    gmake CFLAGS=-O2 BOOT_CFLAGS=-O2 profiledbootstrap
with CVS of Sun Jul 10 06:06:01 EDT 2005

stage1/xgcc -Bstage1/ -B/usr/local/i686-pc-linux-gnu/bin/ -c   -O2 -fprofile-use
 -freorder-blocks-and-partition -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-pro
totypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold
-style-definition -Werror -fno-common   -DHAVE_CONFIG_H    -I. -I. -I/afs/cs/usr
/bhudson/gcc/gcc-cvs-head/gcc -I/afs/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/. -I/af
s/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/../include -I/afs/cs/usr/bhudson/gcc/gcc-c
vs-head/gcc/../libcpp/include  /afs/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/builtins
.c -o builtins.o
/afs/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/builtins.c: In function 'expand_builtin
':
/afs/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/builtins.c:6283: error: corrupted profi
le info: number of executions for edge 49-676 thought to be -148
/afs/cs/usr/bhudson/gcc/gcc-cvs-head/gcc/builtins.c:6283: error: corrupted profi
le info: number of executions for edge 49-50 thought to be 148
gmake[2]: *** [builtins.o] Error 1
Comment 3 Peter Doerfler 2005-08-02 15:21:34 UTC
Has this PR been fixed by  
http://gcc.gnu.org/ml/gcc-patches/2005-07/msg01881.html  
? 
  
The latest snapshot  
gcc (GCC) 4.1.0 20050730 (experimental) (gentoo x86)  
succeeded with profiledbootstrap 
  
Is PR 22471 related - possibly also fixed? 
Comment 4 Andrew Pinski 2005-08-09 19:25:45 UTC
Fixed.