aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/options.cc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2022-08-20 21:20:04 +0200
committerJakub Jelinek <jakub@redhat.com>2022-08-20 21:20:04 +0200
commitdd899c7de36d19ddf18e3bfab4a0c150096e2368 (patch)
treeacffc6d2ef57831cbb91147d1c3064cb2cd11bdf /gcc/fortran/options.cc
parent69458145262e4cef76410f5d42fe0d12b7c395fb (diff)
downloadgcc-dd899c7de36d19ddf18e3bfab4a0c150096e2368.zip
gcc-dd899c7de36d19ddf18e3bfab4a0c150096e2368.tar.gz
gcc-dd899c7de36d19ddf18e3bfab4a0c150096e2368.tar.bz2
fortran: Drop -static-lib{gfortran,quadmath} from f951 [PR46539]
As discussed earlier, all other -static-lib* options are Driver only, these 2 are Driver in common.opt and Fortran in lang.opt. The spec files never pass the -static-lib* options down to any compiler (f951 etc.), so the 2 errors below are reported only when one runs ./f951 -static-libgfortran by hand. The following patch just removes f951 support of these options, the gfortran driver behavior remains as before. For other -static-lib* option (and even these because it is never passed to f951) we never error if we can't support those options, and e.g. Darwin is actually able to handle those options through other means. 2022-08-20 Jakub Jelinek <jakub@redhat.com> PR fortran/46539 * lang.opt (static-libgfortran, static-libquadmath): Change Fortran to Driver. * options.cc (gfc_handle_option): Don't handle OPT_static_libgfortran nor OPT_static_libquadmath here.
Diffstat (limited to 'gcc/fortran/options.cc')
-rw-r--r--gcc/fortran/options.cc14
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/fortran/options.cc b/gcc/fortran/options.cc
index 38249d6..08afb78 100644
--- a/gcc/fortran/options.cc
+++ b/gcc/fortran/options.cc
@@ -685,20 +685,6 @@ gfc_handle_option (size_t scode, const char *arg, HOST_WIDE_INT value,
gfc_option.source_form = FORM_FREE;
break;
- case OPT_static_libgfortran:
-#ifndef HAVE_LD_STATIC_DYNAMIC
- gfc_fatal_error ("%<-static-libgfortran%> is not supported in this "
- "configuration");
-#endif
- break;
-
- case OPT_static_libquadmath:
-#ifndef HAVE_LD_STATIC_DYNAMIC
- gfc_fatal_error ("%<-static-libquadmath%> is not supported in this "
- "configuration");
-#endif
- break;
-
case OPT_fintrinsic_modules_path:
case OPT_fintrinsic_modules_path_: