aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/g++spec.c
diff options
context:
space:
mode:
authorPhil Edwards <pme@sources.redhat.com>2001-01-16 16:10:47 +0000
committerPhil Edwards <pme@sources.redhat.com>2001-01-16 16:10:47 +0000
commitd229e66ca35c45d6f31b45d8007e8f9daa4d5429 (patch)
tree4244945ff23ede99204dc39a4b494ea74f8c54ef /gcc/cp/g++spec.c
parent5ee1f767b67ea1b1ca9db4f961871288cfd34815 (diff)
2001-01-16 Phil Edwards <pme@sources.redhat.com>
* g++spec.c: Don't add libraries needlessly if -fsyntax-only was given. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@39069 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/g++spec.c')
-rw-r--r--gcc/cp/g++spec.c3
1 files changed, 2 insertions, 1 deletions
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. */