This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH] Fix PR fortran/26994, transfer with a constant (CONST_DECL) vs the inliner
- From: Andrew Pinski <pinskia at gmail dot com>
- To: FX Coudert <fxcoudert at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Mon, 13 Nov 2006 06:36:49 -0800
- Subject: Re: [PATCH] Fix PR fortran/26994, transfer with a constant (CONST_DECL) vs the inliner
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=Tew5jc0jvUc3dS/6XDelnNBOWK50V5e423osslr5Wk3Gybv9RmJfyOvIXuIGZ/hJux9MayN2xIrpmdPIMCbp6wt/eIFiQrR7vZDWuIp+6Bi6CP9kWIHvmNefciRARIU/RgVfB2ng5+SvE5sKYzySV8qqDPHssndFBKW80qq9JeE=
- References: <1163390389.2539.42.camel@celery.andrew.com> <8FB51188-98E8-4CF9-8D2B-0C579D7F34BE@gmail.com>
On Mon, 2006-11-13 at 07:11 +0100, FX Coudert wrote:
> > ChangeLog:
> >
> > * trans-expr.c (gfc_conv_expr_reference): Set TREE_STATIC on the
> > new CONST_DECL.
> >
> > * gfortran.fortran-torture/compile/transfer-1.f90: New testcase.
>
> OK for mainline. If I understand the PR trail correctly, the same
> patch should also be applied to 4.2 and 4.1, shouldn't it?
Yes, I am going to test it for the 4.2 branch and then apply it there.
Assuming that is ok with you.
Thanks,
Andrew Pinski