This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gfortran] Gimplify functions.
- From: Paul Brook <paul at nowt dot org>
- To: "gcc-g95 List" <gcc-g95-devel at lists dot sourceforge dot net>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 5 Sep 2003 23:13:50 +0100
- Subject: [gfortran] Gimplify functions.
The patch below makes gfortran gimplify functions before passing them to the
optimizers. It fixes the majority of the remaining testsuite failures.
Hopefully this will only be a temporary fix until this is done properly in
tree_rest_of_compilation or similar.
Applied to tree-ssa branch.
Paul
2003-09-05 Paul Brook <paul@nowt.org>
* f95-lang.c (expand_function_body): Gimplify the function.
diff -uprxCVS clean/tree-ssa/gcc/fortran/f95-lang.c gcc/gcc/fortran/
f95-lang.c
--- clean/tree-ssa/gcc/fortran/f95-lang.c 2003-09-04 23:03:08 +0100
+++ gcc/gcc/fortran/f95-lang.c 2003-09-05 22:22:25 +0100
@@ -200,6 +200,9 @@ tree *ridpointers = NULL;
void
expand_function_body (tree fndecl, int nested ATTRIBUTE_UNUSED)
{
+ if (!flag_disable_gimple)
+ gimplify_function_tree (fndecl);
+
tree_rest_of_compilation (fndecl);
}