diff options
author | Tobias Burnus <burnus@net-b.de> | 2010-02-20 09:31:25 +0100 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2010-02-20 09:31:25 +0100 |
commit | 22bdbb0fd240000f224a62ccf1e5460140a482ce (patch) | |
tree | 394c4ce0617433ffcc3399c7facb3e046d446672 /gcc/fortran/options.c | |
parent | f233f7ed7fe361eeab0fdc35ff821b87b8d10a59 (diff) | |
download | gcc-22bdbb0fd240000f224a62ccf1e5460140a482ce.zip gcc-22bdbb0fd240000f224a62ccf1e5460140a482ce.tar.gz gcc-22bdbb0fd240000f224a62ccf1e5460140a482ce.tar.bz2 |
re PR fortran/42958 (Weird temporary array allocation)
2010-02-20 Tobias Burnus <burnus@net-b.de>
PR fortran/42958
* libgfortran.h: Add GFC_RTCHECK_MEM.
* invoke.texi (-fcheck=): Document -fcheck=mem.
* tranc.c (gfc_call_malloc): Remove negative-size run-time error
and enable malloc-success check only with -fcheck=mem.
* option.c (gfc_handle_runtime_check_option): Add -fcheck=mem.
From-SVN: r156923
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r-- | gcc/fortran/options.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c index 9296a0b..a9ce560 100644 --- a/gcc/fortran/options.c +++ b/gcc/fortran/options.c @@ -482,11 +482,12 @@ gfc_handle_runtime_check_option (const char *arg) { int result, pos = 0, n; static const char * const optname[] = { "all", "bounds", "array-temps", - "recursion", "do", "pointer", NULL }; + "recursion", "do", "pointer", + "mem", NULL }; static const int optmask[] = { GFC_RTCHECK_ALL, GFC_RTCHECK_BOUNDS, GFC_RTCHECK_ARRAY_TEMPS, GFC_RTCHECK_RECURSION, GFC_RTCHECK_DO, - GFC_RTCHECK_POINTER, + GFC_RTCHECK_POINTER, GFC_RTCHECK_MEM, 0 }; while (*arg) |