This is the mail archive of the gcc-patches@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]

[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);
 }
 


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