summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/g++spec.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index bd54df02f4c..4988985dcd4 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-16 Phil Edwards <pme@sources.redhat.com>
+
+ * g++spec.c: Don't add libraries needlessly if -fsyntax-only
+ was given.
+
2001-01-15 Nathan Sidwell <nathan@codesourcery.com>
* pt.c (check_nontype_parm): Rename to ...
diff --git a/gcc/cp/g++spec.c b/gcc/cp/g++spec.c
index 1602ab6b4e0..63787b9f9b1 100644
--- a/gcc/cp/g++spec.c
+++ b/gcc/cp/g++spec.c
@@ -156,7 +156,8 @@ lang_specific_driver (in_argc, in_argv, in_added_libraries)
quote = argv[i];
else if (library != 0 && ((argv[i][2] == '\0'
&& (char *) strchr ("cSEM", argv[i][1]) != NULL)
- || strcmp (argv[i], "-MM") == 0))
+ || strcmp (argv[i], "-MM") == 0
+ || strcmp (argv[i], "-fsyntax-only") == 0))
{
/* Don't specify libraries if we won't link, since that would
cause a warning. */
OpenPOWER on IntegriCloud