aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPhil Edwards <pme@gcc.gnu.org>2001-01-16 16:10:47 +0000
committerPhil Edwards <pme@gcc.gnu.org>2001-01-16 16:10:47 +0000
commita26e7fb5aaccf225730f2da59e99c0944c198240 (patch)
tree4244945ff23ede99204dc39a4b494ea74f8c54ef /gcc
parent76e5b312153d0b44a231a7f74b26757782562a01 (diff)
downloadgcc-a26e7fb5aaccf225730f2da59e99c0944c198240.zip
gcc-a26e7fb5aaccf225730f2da59e99c0944c198240.tar.gz
gcc-a26e7fb5aaccf225730f2da59e99c0944c198240.tar.bz2
g++spec.c: Don't add libraries needlessly if -fsyntax-only was given.
2001-01-16 Phil Edwards <pme@sources.redhat.com> * g++spec.c: Don't add libraries needlessly if -fsyntax-only was given. From-SVN: r39069
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 bd54df0..4988985 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 1602ab6..63787b9 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. */