public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/41862]  New: valgrind warns about using uninitialized variable with -fgcse-sm
@ 2009-10-29  0:03 zsojka at seznam dot cz
  2009-10-29  0:04 ` [Bug rtl-optimization/41862] " zsojka at seznam dot cz
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: zsojka at seznam dot cz @ 2009-10-29  0:03 UTC (permalink / raw)
  To: gcc-bugs

4.5.0 r153685 

Command line:
$ valgrind --track-origins=yes -v
/mnt/svn/gcc-trunk/binary-153685-lto/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1
-fpreprocessed testcase.i -m32 -O1 -version -fgcse-sm -o tmp.o

...

GNU C (GCC) version 4.5.0 20091028 (experimental) (x86_64-unknown-linux-gnu)    
        compiled by GNU C version 4.5.0 20091028 (experimental), GMP version
4.3.1, MPFR version 2.4.1-p5, MPC version 0.7 

...

==5211== 43 errors in context 1 of 2:                                           
==5211== Conditional jump or move depends on uninitialised value(s)             
==5211==    at 0x7B2215: store_killed_after (store-motion.c:270)                
==5211==    by 0x7B3221: execute_rtl_store_motion (store-motion.c:1084)         
==5211==    by 0x71349C: execute_one_pass (passes.c:1519)                       
==5211==    by 0x7136C4: execute_pass_list (passes.c:1568)                      
==5211==    by 0x7136D6: execute_pass_list (passes.c:1569)                      
==5211==    by 0x80B8B0: tree_rest_of_compilation (tree-optimize.c:392)         
==5211==    by 0x9836AB: cgraph_expand_function (cgraphunit.c:1160)             
==5211==    by 0x985524: cgraph_optimize (cgraphunit.c:1219)                    
==5211==    by 0x985A5E: cgraph_finalize_compilation_unit (cgraphunit.c:1089)   
==5211==    by 0x4AE2DA: c_write_global_declarations (c-decl.c:9489)            
==5211==    by 0x7B8CAB: toplev_main (toplev.c:1061)                            
==5211==    by 0x6587A25: (below main) (in /lib64/libc-2.10.1.so)               
==5211==  Uninitialised value was created by a heap allocation                  
==5211==    at 0x4C270AC: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)                          
==5211==    by 0xC90C27: xmalloc (xmalloc.c:147)                                
==5211==    by 0x7B30CB: execute_rtl_store_motion (store-motion.c:1066)         
==5211==    by 0x71349C: execute_one_pass (passes.c:1519)                       
==5211==    by 0x7136C4: execute_pass_list (passes.c:1568)                      
==5211==    by 0x7136D6: execute_pass_list (passes.c:1569)                      
==5211==    by 0x80B8B0: tree_rest_of_compilation (tree-optimize.c:392)         
==5211==    by 0x9836AB: cgraph_expand_function (cgraphunit.c:1160)             
==5211==    by 0x985524: cgraph_optimize (cgraphunit.c:1219)                    
==5211==    by 0x985A5E: cgraph_finalize_compilation_unit (cgraphunit.c:1089)   
==5211==    by 0x4AE2DA: c_write_global_declarations (c-decl.c:9489)            
==5211==    by 0x7B8CAB: toplev_main (toplev.c:1061)                            
==5211==                                                                        
==5211==                                                                        
==5211== 2273 errors in context 2 of 2:                                         
==5211== Conditional jump or move depends on uninitialised value(s)             
==5211==    at 0x7B21FD: store_killed_after (store-motion.c:270)                
==5211==    by 0x7B3221: execute_rtl_store_motion (store-motion.c:1084)         
==5211==    by 0x71349C: execute_one_pass (passes.c:1519)                       
==5211==    by 0x7136C4: execute_pass_list (passes.c:1568)                      
==5211==    by 0x7136D6: execute_pass_list (passes.c:1569)                      
==5211==    by 0x80B8B0: tree_rest_of_compilation (tree-optimize.c:392)         
==5211==    by 0x9836AB: cgraph_expand_function (cgraphunit.c:1160)             
==5211==    by 0x985524: cgraph_optimize (cgraphunit.c:1219)                    
==5211==    by 0x985A5E: cgraph_finalize_compilation_unit (cgraphunit.c:1089)   
==5211==    by 0x4AE2DA: c_write_global_declarations (c-decl.c:9489)            
==5211==    by 0x7B8CAB: toplev_main (toplev.c:1061)                            
==5211==    by 0x6587A25: (below main) (in /lib64/libc-2.10.1.so)               
==5211==  Uninitialised value was created by a heap allocation                  
==5211==    at 0x4C270AC: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)                          
==5211==    by 0xC90C27: xmalloc (xmalloc.c:147)                                
==5211==    by 0x7B30CB: execute_rtl_store_motion (store-motion.c:1066)         
==5211==    by 0x71349C: execute_one_pass (passes.c:1519)                       
==5211==    by 0x7136C4: execute_pass_list (passes.c:1568)                      
==5211==    by 0x7136D6: execute_pass_list (passes.c:1569)                      
==5211==    by 0x80B8B0: tree_rest_of_compilation (tree-optimize.c:392)         
==5211==    by 0x9836AB: cgraph_expand_function (cgraphunit.c:1160)             
==5211==    by 0x985524: cgraph_optimize (cgraphunit.c:1219)                    
==5211==    by 0x985A5E: cgraph_finalize_compilation_unit (cgraphunit.c:1089)   
==5211==    by 0x4AE2DA: c_write_global_declarations (c-decl.c:9489)            
==5211==    by 0x7B8CAB: toplev_main (toplev.c:1061)


-- 
           Summary: valgrind warns about using uninitialized variable with -
                    fgcse-sm
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2010-01-03 22:46 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-29  0:03 [Bug rtl-optimization/41862] New: valgrind warns about using uninitialized variable with -fgcse-sm zsojka at seznam dot cz
2009-10-29  0:04 ` [Bug rtl-optimization/41862] " zsojka at seznam dot cz
2009-10-29  0:06 ` zsojka at seznam dot cz
2009-10-29 10:25 ` rguenth at gcc dot gnu dot org
2009-10-29 10:58 ` steven at gcc dot gnu dot org
2009-11-17 18:34 ` zsojka at seznam dot cz
2009-11-25 10:45 ` zsojka at seznam dot cz
2009-11-27 11:23 ` [Bug rtl-optimization/41862] [4.5 Regression] -fgcse-sm causes bootstrap comparison failures zsojka at seznam dot cz
2009-12-04 14:25 ` rguenth at gcc dot gnu dot org
2009-12-24 13:12 ` steven at gcc dot gnu dot org
2009-12-24 20:24 ` zsojka at seznam dot cz
2009-12-24 20:35 ` zsojka at seznam dot cz
2010-01-02 15:57 ` rguenth at gcc dot gnu dot org
2010-01-03 17:15 ` steven at gcc dot gnu dot org
2010-01-03 17:23 ` steven at gcc dot gnu dot org
2010-01-03 18:25 ` rguenth at gcc dot gnu dot org
2010-01-03 20:03 ` [Bug rtl-optimization/41862] [4.5 Regression] -fgcse-sm causes bootstrap-debug " steven at gcc dot gnu dot org
2010-01-03 22:33 ` rguenth at gcc dot gnu dot org
2010-01-03 22:42 ` steven at gcc dot gnu dot org
2010-01-03 22:46 ` steven at gcc dot gnu dot org

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).