GPC and G77
Mon, 13 Jan 1997 17:16:22 +0100 (MET)
Hello!
If trying to build the gpc-2.0 with the gcc-2.7.2.1 with the GNU Fortran
enabled, will not run. There are some problems with the file toplev.c. Here is
a simple diff, which worked at mine.
--------cut--------------
diff -rcp2N gcc-2.7.2.1/toplev.c gcc-2.7.2.1.f.1/toplev.c
*** gpc-2.0/toplev.c Fri Oct 20 17:56:35 1995
--- gpc-2.0.f.1/toplev.c Mon Nov 11 15:02:33 1996
*************** int flag_unroll_loops;
*** 388,391 ****
--- 388,405 ----
int flag_unroll_all_loops;
+ /* Nonzero forces all invariant computations in loops to be moved
+ outside the loop. */
+
+ int flag_move_all_movables = 0;
+
+ /* Nonzero forces all general induction variables in loops to be
+ strength reduced. */
+
+ int flag_reduce_all_givs = 0;
+
+ /* Nonzero gets another run of loop_optimize performed. */
+
+ int flag_rerun_loop_opt = 0;
+
/* Nonzero for -fwritable-strings:
store string constants in data segment and don't uniquize them. */
*************** struct { char *string; int *variable; in
*** 542,545 ****
--- 556,562 ----
{"unroll·loops", &flag_unroll_loops, 1},
{"unroll-all·loops", &flag_unroll_all_loops, 1},
+ {"move-all-movables", &flag_move_all_movables, 1},
+ {"reduce-all-givs", &flag_reduce_all_givs, 1},
+ {"rerun-loop-opt", &flag_rerun_loop_opt, 1},
{"writable-strings", &flag_writable_strings, 1},
{"peephole", &flag_no_peephole, 0},
*************** rest_of_compilation (decl)
*** 2894,2897 ****
--- 2911,2916 ----
{
loop_optimize (insns, loop_dump_file);
+ if (flag_rerun_loop_opt)
+ loop_optimize (insns, loop_dump_file);
});
}
--------------cut-------------
It's from the patch which came with GNU Fortran.
Bye, Nils
--
Nils Bokermann
Johanneswerkstr. 90 Phone: +49 521 891279
33613 Bielefeld FAX: +49 521 550116
Germany "Wir wollen die Natur nicht erhalten --
Wir wollen nur ihre Dynamik nicht st"oren."
_______________________________________________________________________________
Nils Bokermann (nilsb@reality.owl.de)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es