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

Zdenek Sojka <zsojka at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zsojka at seznam dot cz

--- Comment #11 from Zdenek Sojka <zsojka at seznam dot cz> 2010-10-19 23:00:48 
UTC ---
I am able to reproduce this at x86_64-pc-linux-gnu. Crashes with -fprofile-use
with r165699 and r163636.

However, valgrind reports invalid operations even without -fprofile-*:
(-g is not needed to reproduce)
$ gcc -O -fipa-matrix-reorg -fwhole-program transpose-3.i -g
$ valgrind -q ./a.out >/dev/null
==28612== Invalid free() / delete / delete[]
==28612==    at 0x4C25A2D: free (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==28612==    by 0x40098D: main (transpose-3.c:45)
==28612==  Address 0x5185100 is 0 bytes inside a block of size 16 free'd
==28612==    at 0x4C25A2D: free (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==28612==    by 0x40098D: main (transpose-3.c:45)
==28612== 

Removing any of these flags (except -g) makes the problem disappear.

Reply via email to