public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/45694]  New: fortran host associated variables+optimization==failure?
@ 2010-09-16 19:29 jpr at csc dot fi
  2010-09-16 19:31 ` [Bug middle-end/45694] " jpr at csc dot fi
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: jpr at csc dot fi @ 2010-09-16 19:29 UTC (permalink / raw)
  To: gcc-bugs

Hi,
(i first reported this to mingw32-w64's bug tracker:
http://sourceforge.net/tracker/?func=detail&aid=3067541&group_id=202880&atid=983354
and was forwarded here)

The attached fortran program aborts() (a host associated variable
changes value from host to hostee without asking) using
gfortran -O1 -o fail fail.f90; ./fail
on a 64bit windows 7 (mingw32-w64) platform.

Very probably platform dependent as i can't reproduce this elsewhere.
Also 32bit compile on the same platform works as does unoptimized
compilation.

On a larger application i see sevaral failures of the same kind, seems
to depend also on the number and/or size of the local variables in the
procedures..

Regards, Juha

PS. I entered middle-end as the bugs 'component' as  an optimization flag seems
to be needed to trigger this...


-- 
           Summary: fortran host associated variables+optimization==failure?
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jpr at csc dot fi
GCC target triplet: x86_64-w64-mingw32


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


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-09-22 12:20 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-16 19:29 [Bug middle-end/45694] New: fortran host associated variables+optimization==failure? jpr at csc dot fi
2010-09-16 19:31 ` [Bug middle-end/45694] " jpr at csc dot fi
2010-09-20  6:54 ` [Bug target/45694] " jpr at csc dot fi
2010-09-20 11:05 ` [Bug target/45694] [MinGW64] " jpr at csc dot fi
2010-09-20 11:12 ` jpr at csc dot fi
2010-09-20 11:36 ` jpr at csc dot fi
2010-09-20 11:41 ` t66667 at gmail dot com
2010-09-20 11:46 ` jpr at csc dot fi
2010-09-20 12:00 ` t66667 at gmail dot com
2010-09-20 12:08 ` ktietz at gcc dot gnu dot org
2010-09-21  5:57 ` t66667 at gmail dot com
2010-09-21 10:29 ` t66667 at gmail dot com
2010-09-21 17:59 ` ktietz at gcc dot gnu dot org
2010-09-21 19:06 ` ktietz at gcc dot gnu dot org
2010-09-21 19:09 ` ktietz at gcc dot gnu dot org
2010-09-22 12:20 ` t66667 at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).