------- Comment #5 from pault at gcc dot gnu dot org 2008-01-31 08:30 ------- (In reply to comment #4) > Reply to comment two: > > There is front-endery code to do "cond ? a : b" in the handling of missing > optional dummy arguments. You can borrow from that. >
I know about the TREE_SSA expressions - what I need is a frontend, ie. a gfc_expr that delivers this functionality. The bit of code that needs sorting is manipulating gfc_expressions. The reason that this is necessary, is that the conditional operators carry over the magnitude of the conditional expression: i = 4 => (i > 0) * f => 4*f when implemented with gfc binops. In writing this, I realise that I never tried to convert the (i > 0) to logical but I do not think that it would make any difference. Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34945