aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2016-12-19 22:29:43 +0000
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2016-12-19 22:29:43 +0000
commit75b07bb45a8a4e20557744873f98681e2d17db1f (patch)
treed20bd66d44e63418a7efc78ea891d3383d0a2b62 /libgfortran
parente9c2033eff925ac2577ac6f30578bc6a8498c2e9 (diff)
downloadgcc-75b07bb45a8a4e20557744873f98681e2d17db1f.zip
gcc-75b07bb45a8a4e20557744873f98681e2d17db1f.tar.gz
gcc-75b07bb45a8a4e20557744873f98681e2d17db1f.tar.bz2
trans-decl.c (create_main_function): Remove unused elements to the set_options call.
* trans-decl.c (create_main_function): Remove unused elements to the set_options call. * runtime/compile_options.c (set_options): Remove unused elements. From-SVN: r243814
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog4
-rw-r--r--libgfortran/runtime/compile_options.c17
2 files changed, 9 insertions, 12 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index f64dae2..2837e2e 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 71ec56a..9355e37 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