This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/25586] FAIL: gfortran.dg/cray_pointers_2.f90 at -O2 and above
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Dec 2005 00:37:41 -0000
- Subject: [Bug middle-end/25586] FAIL: gfortran.dg/cray_pointers_2.f90 at -O2 and above
- References: <bug-25586-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from pinskia at gcc dot gnu dot org 2005-12-28 00:37 -------
(In reply to comment #6)
> It I'm reading this correctly, we appear to have the sum of two
> real4* pointers in the MEM.
You are reading this correctly. PRE is only run at -O2 but I don't think this
is a PRE bug.
Can you try -fno-ivopts -O2 -fcray-pointer and see if that works and if it does
attach the dump provided by -fdump-tree-vars. I almost think IV-OPTS is going
wrong here.
D.6538 = (real4 *) ivtmp___1132;
MEM[index: D.6538 + (real4 *) pretmp___1055] = D.4409 * 5.0e+0;
IV-OPTS produces ivtmp___1132 which is a void* and it just increments that.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|fortran |middle-end
Keywords| |wrong-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25586