Commit d436d3de by Steven G. Kargl

trans-intrinsic.c (gfc_conv_intrinsic_iargc): remove boolean argument.

* trans-intrinsic.c (gfc_conv_intrinsic_iargc): remove boolean argument.
  (gfc_conv_intrinsic_function): update function calls

From-SVN: r95695
parent 4e3d9146
2005-02-28 Steven G. Kargl <kargl@gcc.gnu.org>
* trans-intrinsic.c (gfc_conv_intrinsic_iargc): remove boolean argument.
(gfc_conv_intrinsic_function): update function calls
2005-02-27 Steven G. Kargl <kargl@gcc.gnu.org> 2005-02-27 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/20058 PR fortran/20058
......
...@@ -2649,11 +2649,10 @@ gfc_conv_intrinsic_repeat (gfc_se * se, gfc_expr * expr) ...@@ -2649,11 +2649,10 @@ gfc_conv_intrinsic_repeat (gfc_se * se, gfc_expr * expr)
} }
/* Generate code for the IARGC intrinsic. If args_only is true this is /* Generate code for the IARGC intrinsic. */
actually the COMMAND_ARGUMENT_COUNT intrinsic, so return IARGC - 1. */
static void static void
gfc_conv_intrinsic_iargc (gfc_se * se, gfc_expr * expr, bool args_only) gfc_conv_intrinsic_iargc (gfc_se * se, gfc_expr * expr)
{ {
tree tmp; tree tmp;
tree fndecl; tree fndecl;
...@@ -2667,8 +2666,6 @@ gfc_conv_intrinsic_iargc (gfc_se * se, gfc_expr * expr, bool args_only) ...@@ -2667,8 +2666,6 @@ gfc_conv_intrinsic_iargc (gfc_se * se, gfc_expr * expr, bool args_only)
type = gfc_typenode_for_spec (&expr->ts); type = gfc_typenode_for_spec (&expr->ts);
tmp = fold_convert (type, tmp); tmp = fold_convert (type, tmp);
if (args_only)
tmp = build2 (MINUS_EXPR, type, tmp, build_int_cst (type, 1));
se->expr = tmp; se->expr = tmp;
} }
...@@ -2827,7 +2824,7 @@ gfc_conv_intrinsic_function (gfc_se * se, gfc_expr * expr) ...@@ -2827,7 +2824,7 @@ gfc_conv_intrinsic_function (gfc_se * se, gfc_expr * expr)
break; break;
case GFC_ISYM_COMMAND_ARGUMENT_COUNT: case GFC_ISYM_COMMAND_ARGUMENT_COUNT:
gfc_conv_intrinsic_iargc (se, expr, TRUE); gfc_conv_intrinsic_iargc (se, expr);
break; break;
case GFC_ISYM_CONJG: case GFC_ISYM_CONJG:
...@@ -2869,7 +2866,7 @@ gfc_conv_intrinsic_function (gfc_se * se, gfc_expr * expr) ...@@ -2869,7 +2866,7 @@ gfc_conv_intrinsic_function (gfc_se * se, gfc_expr * expr)
break; break;
case GFC_ISYM_IARGC: case GFC_ISYM_IARGC:
gfc_conv_intrinsic_iargc (se, expr, FALSE); gfc_conv_intrinsic_iargc (se, expr);
break; break;
case GFC_ISYM_IEOR: case GFC_ISYM_IEOR:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment