Tested revisions:
r159348 - fail
r158969 - fail

I couldn't reproduce it with x86_64 host, even with -m32

Compiler flags:
gcc -O1 -finline-small-functions -fipa-sra -ftree-pre

$ valgrind -q
/mnt/svn/gcc-trunk/binary-159348-x86-lto-fortran/libexec/gcc/i686-pc-linux-gnu/4.6.0/cc1
/usr/portage/distfiles/svn-src/gcc/trunk/gcc/testsuite/gcc.c-torture/compile/pr34091.c
-O1 -finline-small-functions -fipa-sra -ftree-pre                               
 lerp_2d lerp_rgba lerp_rgba_2d sample_2d_linear_repeat
sample_2d_nearest_mipmap_linear sample_2d_linear_mipmap_linear_repeat
sample_lambda_2d _swrast_choose_texture_sample_func                             
Analyzing compilation unit                                                      
Performing interprocedural optimizations                                        
 <*free_lang_data> <visibility> <early_local_cleanups> <whole-program>
<ipa-profile> <inline> <static-var> <pure-const>Assembling functions:           
 sample_lambda_2d==29532== Invalid read of size 4                               
==29532==    at 0x853C0A0: vn_nary_may_trap (tree-ssa-sccvn.c:3435)             
==29532==  Address 0x50a8610 is 0 bytes after a block of size 4,064 alloc'd     
==29532==    at 0x40277FE: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)                              
==29532==    by 0x892B969: xmalloc (xmalloc.c:147)                              
==29532==                                                                       
 lerp_2d sample_2d_nearest_mipmap_linear _swrast_choose_texture_sample_func     
Execution times (seconds)


-- 
           Summary: valgrind reports invalid read while compiling
                    compile/pr34091.c
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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

Reply via email to