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