This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: PR33749 - Wrong evaluation of expressions in lhs of assignment statements
- From: "Paul Richard Thomas" <paul dot richard dot thomas at gmail dot com>
- To: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, "Paul Brook" <paul at codesourcery dot com>
- Date: 2007年10月14日 20:39:10 +0200
- Subject: Re: PR33749 - Wrong evaluation of expressions in lhs of assignment statements
- 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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=/jrR9/oGV9Mu4tAyPfTduXjdU8nP0SFB4ngQV1VBf2g=; b=HrgZyAKVxKUL2GtCRWY0/a8hBpdTyabNOg0GXA85KZFjJCG/mqY5nU3Ca17wBlOXgGaVyX9YSA1ouuE5r96zm05Q1PvurPu1CnHL2RS4x8xEjnOpiVjGigYw3AKFJTcvxzva+W9qFhiNq7/Q/GduR3VfWryHfECNwB2LkW8vVTo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=k2fXkeZo6ZCDZSzndbJpZ1zTCU9m1lbbX0RmK5vFnZiLYLISHrnegbaF83zMSR6b/IHs/NKSJZGSnDA0BzCEicQjMKDmq8LeQANmNczFMwlX12Uvzq1vqpDBhsbFCBGyWOJ5xn+jFIdCP+0xsTHKU4C0/rJZ6b/oAUL2y+e16+I=
- References: <339c37f20710121221r132b7aa2y6a44c9ca4de21cf5@mail.gmail.com> <339c37f20710140953t693c4a76gc2279cdd506ab63d@mail.gmail.com>
Dear All,
> The problem is that the expression for the index in p(p) gets
> correctly identified as a variable in -m32 but becomes a function in
> -m64. The latter causes need_tmp to be set, which than "corrects"
> this problem.
This is the offender:
ASSIGN MAIN__:p(__convert_i4_i8[[((MAIN__:p(FULL)))]]) (/ 1 , 2 , 3 , 4 /)
The conversion comes through and triggers an unconditional production of a temp.
>
> I have a patch for PR33749 but will have to fix the above first,
> otherwise it will lurk undetected and get us in other ways. I wonder
> how often unnecessary temporaries are created in -m64?
I now feel confident about submitting the patch - it's on its way in a few days.
Cheers
Paul
>
--
The knack of flying is learning how to throw yourself at the ground and miss.
--Hitchhikers Guide to the Galaxy