diff options
author | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-12-19 22:29:43 +0000 |
---|---|---|
committer | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-12-19 22:29:43 +0000 |
commit | f7619ded9cee672166a5879c79097f9b442d1598 (patch) | |
tree | d20bd66d44e63418a7efc78ea891d3383d0a2b62 /libgfortran | |
parent | 5618a0a93052f0f954211be43becb3b35ed05d7d (diff) |
* trans-decl.c (create_main_function): Remove unused elements to
the set_options call.
* runtime/compile_options.c (set_options): Remove unused elements.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243814 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 4 | ||||
-rw-r--r-- | libgfortran/runtime/compile_options.c | 17 |
2 files changed, 9 insertions, 12 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index f64dae2ddee..2837e2e559f 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,7 @@ +2016-12-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> + + * runtime/compile_options.c (set_options): Remove unused elements. + 2016-12-19 Janne Blomqvist <jb@gcc.gnu.org> * Actually remove files that should have been removed by r243799. diff --git a/libgfortran/runtime/compile_options.c b/libgfortran/runtime/compile_options.c index 71ec56a5a8b..9355e370f08 100644 --- a/libgfortran/runtime/compile_options.c +++ b/libgfortran/runtime/compile_options.c @@ -151,21 +151,14 @@ set_options (int num, int options[]) compile_options.allow_std = options[1]; if (num >= 3) compile_options.pedantic = options[2]; - /* options[3] is the removed -fdump-core option. Its place in the - options array is retained due to ABI compatibility. Remove when - bumping the library ABI. */ + if (num >= 4) + compile_options.backtrace = options[3]; if (num >= 5) - compile_options.backtrace = options[4]; + compile_options.sign_zero = options[4]; if (num >= 6) - compile_options.sign_zero = options[5]; + compile_options.bounds_check = options[5]; if (num >= 7) - compile_options.bounds_check = options[6]; - /* options[7] is the -frange-check option, which no longer affects - the library behavior; range checking is now always done when - parsing integers. Its place in the options array is retained due - to ABI compatibility. Remove when bumping the library ABI. */ - if (num >= 9) - compile_options.fpe_summary = options[8]; + compile_options.fpe_summary = options[6]; #ifndef LIBGFOR_MINIMAL /* If backtrace is required, we set signal handlers on the POSIX |