This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41297] [4.5 Regression] Functions are called twice
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Sep 2009 21:21:12 -0000
- Subject: [Bug fortran/41297] [4.5 Regression] Functions are called twice
- References: <bug-41297-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from rguenther at suse dot de 2009-09-07 21:21 -------
Subject: Re: [4.5 Regression] Functions are called
twice
On Mon, 7 Sep 2009, burnus at gcc dot gnu dot org wrote:
> ------- Comment #4 from burnus at gcc dot gnu dot org 2009-09-07 21:12 -------
> (In reply to comment #3)
> > > r150817 | rguenth | 2009-08-17 00:36:13 +0200 (Mon, 17 Aug 2009) | 5 lines
> > Impossible!
>
> I am not sure whether it is impossible or just extremely unlikely, but
> reverting that patch does not help :-)
>
> > Looks like a tree sharing / FE issue to me.
> Likely. None of the other checkins looks as if they could have been the cause.
Ah, can you check/commit
+ gfc_add_block_to_block (&block, &lse->pre);
+ gfc_add_block_to_block (&block, &rse->pre);
+ tmp = gfc_evaluate_now (rse->expr, &block);
+ tmp = fold_build1 (VIEW_CONVERT_EXPR, TREE_TYPE (lse->expr),
rse->expr);
^^^^^^^^
tmp
?
Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41297