This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/41297] [4.5 Regression] Functions are called twice



------- 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


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