trans-array.c (toplevel): Include gimple.h.
authorMichael Matz <matz@suse.de>
Fri, 15 Apr 2011 21:48:19 +0000 (21:48 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Fri, 15 Apr 2011 21:48:19 +0000 (21:48 +0000)
commitc76f8d52e24c089bbe598e08ef5813e91f02924d
treef0232500e3e80f82cf9bf3ed6decd6681d9ccc9a
parent5678a5a3bf407b6aa95e827ac6dd1056cdf6b415
trans-array.c (toplevel): Include gimple.h.

* trans-array.c (toplevel): Include gimple.h.
(gfc_trans_allocate_array_storage): Check flag_stack_arrays,
properly expand variable length arrays.
(gfc_trans_auto_array_allocation): If flag_stack_arrays create
variable length decls and associate them with their scope.
* gfortran.h (gfc_option_t): Add flag_stack_arrays member.
* options.c (gfc_init_options): Handle -fstack_arrays option.
* lang.opt (fstack-arrays): Add option.
* invoke.texi (Code Gen Options): Document it.
* Make-lang.in (trans-array.o): Depend on GIMPLE_H.

From-SVN: r172524
gcc/fortran/ChangeLog
gcc/fortran/Make-lang.in
gcc/fortran/gfortran.h
gcc/fortran/invoke.texi
gcc/fortran/lang.opt
gcc/fortran/options.c
gcc/fortran/trans-array.c