This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/43716] [4.6/4.7/4.8 Regression] Revision 158105 miscompiles doduc.f90
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 21 Jul 2012 10:49:31 +0000
- Subject: [Bug tree-optimization/43716] [4.6/4.7/4.8 Regression] Revision 158105 miscompiles doduc.f90
- Auto-submitted: auto-generated
- References: <bug-43716-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43716
--- Comment #32 from Uros Bizjak <ubizjak at gmail dot com> 2012-07-21 10:49:31 UTC ---
gcc version 4.8.0 20120720 (experimental) [trunk revision 189718] (GCC)
==2822== Memcheck, a memory error detector
==2822== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==2822== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==2822== Command: ./a.out
==2822==
MAIN : FIN S00002
MAIN : FIN S00001
MAIN : FIN S00011
MAIN : FIN S00022
TEMPS = 33.00000000 , NITERA : 1
TEMPS = 34.00031044 , NITERA : 186
TEMPS = 35.00497388 , NITERA : 955
TEMPS = 36.00007615 , NITERA : 1512
TEMPS = 37.00012624 , NITERA : 1765
TEMPS = 38.00060760 , NITERA : 2044
TEMPS = 39.00312223 , NITERA : 2327
TEMPS = 40.00168143 , NITERA : 2607
TEMPS = 45.00187475 , NITERA : 4017
TEMPS = 50.00261983 , NITERA : 5492
TEMPS = 55.00263522 , NITERA : 6981
TEMPS = 60.00087007 , NITERA : 8679
==2822== Invalid read of size 8
==2822== at 0x4040E8: s00061_ (doduc.f90:568)
==2822== by 0x412AD3: s00013_ (doduc.f90:1150)
==2822== by 0x41B9D4: MAIN__ (doduc.f90:182)
==2822== by 0x400B4C: main (doduc.f90:199)
==2822== Address 0x3fefff770 is not stack'd, malloc'd or (recently) free'd
==2822==
I can reproduce it here with Rev. 189737; it also crashes without running
valgrind.
It crashes (on x86-64 openSUSE Factory) with
-O3 -ffast-math [-g]
It does not crash with either of the following added:
-fno-fast-math
-fno-inline-functions
-fno-predictive-commoning
-fno-tree-vectorize
-fno-protect-parens (implied by -Ofast)
Nor does it crash with:
-O2 -ftree-vectorize -finline-functions -ffpredictive-commoning -ffast-math
-m32 -O3 -ffast-math