This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Weird optimization bug


Hi Ignacio,

I'm sorry that I don't have enough time to write a full answer, but
here is the short version:

> So, I would say it was a too-sensitive-to-optimization thing

You would be right.

> but fixing it with a WRITE tells me it must be a bug

The WRITE hides the optimization opportunity to the compiler, which is
why the behaviour is then identical to the unoptimized case.

FX


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]