aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorIain Sandoe <iains@gcc.gnu.org>2010-04-09 13:34:33 +0000
committerIain Sandoe <iains@gcc.gnu.org>2010-04-09 13:34:33 +0000
commit8351bca7e4147d3aef7dd3f1f20ce91e59d4e7af (patch)
treed6784490d07537190dfd92ff5e81eaa2360d99a9 /gcc/fortran
parent014753cc4d898e889ab04dcdb41bb6cc99645e69 (diff)
downloadgcc-8351bca7e4147d3aef7dd3f1f20ce91e59d4e7af.zip
gcc-8351bca7e4147d3aef7dd3f1f20ce91e59d4e7af.tar.gz
gcc-8351bca7e4147d3aef7dd3f1f20ce91e59d4e7af.tar.bz2
re PR bootstrap/43684 (multiple 'set but not used' errors.)
gcc/ 2010-04-09 Iain Sandoe <iains@gcc.gnu.org> PR bootstrap/43684 * varasm.c (default_assemble_visibility): Wrap vars that are set, but unused, by targets without GAS. * config/rs6000/rs6000.c: (paired_emit_vector_compare): Remove set, but unused, vars. (rs6000_legitimize_tls_address): Likewise. (altivec_expand_dst_builtin): Likewise. * config/darwin.c (machopic_classify_symbol): Likewise. (machopic_indirection_name): Likewise. gcc/fortran/ 2010-04-09 Iain Sandoe <iains@gcc.gnu.org> PR bootstrap/43684 * gfortranspec.c (lang_specific_driver): Do not expose vars only used by HAVE_LD_STATIC_DYNAMIC targets unless compiling for such. From-SVN: r158164
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/ChangeLog7
-rw-r--r--gcc/fortran/gfortranspec.c12
2 files changed, 17 insertions, 2 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 96efee0..ebce913 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,10 @@
+2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
+
+ PR bootstrap/43684
+ * gfortranspec.c (lang_specific_driver): Do not expose vars
+ only used by HAVE_LD_STATIC_DYNAMIC targets unless compiling
+ for such.
+
2010-04-09 Tobias Burnus <burnus@net-b.de>
PR fortran/18918
diff --git a/gcc/fortran/gfortranspec.c b/gcc/fortran/gfortranspec.c
index 8f860a6..b7eccc3 100644
--- a/gcc/fortran/gfortranspec.c
+++ b/gcc/fortran/gfortranspec.c
@@ -275,11 +275,13 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
/* By default, we throw on the math library if we have one. */
int need_math = (MATH_LIBRARY[0] != '\0');
- /* Whether we should link a static libgfortran. */
- int static_lib = 0;
+#ifdef HAVE_LD_STATIC_DYNAMIC
+ /* Whether we should link a static libgfortran. */
+ int static_lib = 0;
/* Whether we need to link statically. */
int static_linking = 0;
+#endif
/* The number of input and output files in the incoming arg list. */
int n_infiles = 0;
@@ -340,11 +342,17 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
break;
case OPTION_static_libgfortran:
+#ifdef HAVE_LD_STATIC_DYNAMIC
static_lib = 1;
+#endif
break;
case OPTION_static:
+#ifdef HAVE_LD_STATIC_DYNAMIC
static_linking = 1;
+#endif
+ /* Fall through, count OPTION_static as an item included in
+ the rewritten command line. */
case OPTION_l:
++n_infiles;