This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Weird optimization bug
- From: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- To: "Ignacio Fernández Galván" <jellby at yahoo dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Mon, 1 Oct 2007 18:25:07 +0100
- Subject: Re: Weird optimization bug
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=21WpcmBJ7/xwc4UKzaEa+WmOZ0xYdI5RvEOAOSnyxi0=; b=IgJETMjTfxooYZEVwx5zDdcDEygKf5D4lDkBoM7EyHMxSWm3e9Bwyx5rSWhvG3rzH7VjAtEQ9I7n1vj1NB0oSLmzt+mFF1mD8xNLrNW2b0n8MvVslXl5J7t2UGpykbhEn3XurQtU87NlnITbbq8IaRG9JiVbttB7uLdgbLClomA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Traru+1L+L49h/GdAUVOY/AuoorX74H0qJWNMYL5zfJaKC8feJuAGEF5B91zVvDlhh43DJR7s30wXi1xpbKUI793PxlfKpLFPsiDVN+ka9EgUsRuOrn867gyGZ8Ah86sa0eG0czcE87ByvpVl198VBv+N8Z3Rt+Dw7VnGhyZ/io=
- References: <918894.98577.qm@web33009.mail.mud.yahoo.com>
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