diff options
author | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-15 21:48:19 +0000 |
---|---|---|
committer | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-15 21:48:19 +0000 |
commit | bc74b641c7c60bf2183e923220d10c5bc44f4bdc (patch) | |
tree | f0232500e3e80f82cf9bf3ed6decd6681d9ccc9a /gcc/fortran/invoke.texi | |
parent | cfc77d337c39a8d81e819960a63e010f0336cb40 (diff) | |
download | gcc-bc74b641c7c60bf2183e923220d10c5bc44f4bdc.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172524 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/invoke.texi')
-rw-r--r-- | gcc/fortran/invoke.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi index 96beff58215..57f7313f4bd 100644 --- a/gcc/fortran/invoke.texi +++ b/gcc/fortran/invoke.texi @@ -167,6 +167,7 @@ and warnings}. -fbounds-check -fcheck-array-temporaries -fmax-array-constructor =@var{n} @gol -fcheck=@var{<all|array-temps|bounds|do|mem|pointer|recursion>} @gol -fcoarray=@var{<none|single|lib>} -fmax-stack-var-size=@var{n} @gol +-fstack-arrays @gol -fpack-derived -frepack-arrays -fshort-enums -fexternal-blas @gol -fblas-matmul-limit=@var{n} -frecursive -finit-local-zero @gol -finit-integer=@var{n} -finit-real=@var{<zero|inf|-inf|nan|snan>} @gol @@ -1370,6 +1371,13 @@ Future versions of GNU Fortran may improve this behavior. The default value for @var{n} is 32768. +@item -fstack-arrays +@opindex @code{fstack-arrays} +Adding this option will make the fortran compiler put all local arrays, +even those of unknown size onto stack memory. If your program uses very +large local arrays it's possible that you'll have to extend your runtime +limits for stack memory on some operating systems. + @item -fpack-derived @opindex @code{fpack-derived} @cindex structure packing |