diff options
author | Tobias Burnus <burnus@gcc.gnu.org> | 2009-03-28 15:04:14 +0100 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2009-03-28 15:04:14 +0100 |
commit | 43998ed92e06a48a1d52a37536fcc609ab2a608d (patch) | |
tree | f7ba51c41dbc70d06547423c13013047c63f8adc /gcc/fortran/options.c | |
parent | dc186969b5524ab768c53c2e2f226bf24d0a35f8 (diff) | |
download | gcc-43998ed92e06a48a1d52a37536fcc609ab2a608d.zip gcc-43998ed92e06a48a1d52a37536fcc609ab2a608d.tar.gz gcc-43998ed92e06a48a1d52a37536fcc609ab2a608d.tar.bz2 |
re PR fortran/32626 (Run-time check for recursive functions)
2009-03-28 Tobias Burnus <burnus@net-b.de>
PR fortran/32626
* option.c (gfc_handle_runtime_check_option): Enable recursion check.
* trans-decl.c (gfc_generate_function_code): Add recursion check.
* invoke.texi (-fcheck): Add recursive option.
From-SVN: r145188
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r-- | gcc/fortran/options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c index 5daa736..fd9fb88 100644 --- a/gcc/fortran/options.c +++ b/gcc/fortran/options.c @@ -458,10 +458,10 @@ gfc_handle_runtime_check_option (const char *arg) { int result, pos = 0, n; static const char * const optname[] = { "all", "bounds", "array-temps", - /* "recursion", "do", */ NULL }; + "recursion", /* "do", */ NULL }; static const int optmask[] = { GFC_RTCHECK_ALL, GFC_RTCHECK_BOUNDS, GFC_RTCHECK_ARRAY_TEMPS, - /* GFC_RTCHECK_RECURSION, GFC_RTCHECK_DO, */ + GFC_RTCHECK_RECURSION, /* GFC_RTCHECK_DO, */ 0 }; while (*arg) |