summaryrefslogtreecommitdiff
path: root/gcc/cp/g++spec.c
diff options
context:
space:
mode:
authorpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-16 16:10:47 +0000
committerpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-16 16:10:47 +0000
commit066e08f5669b784b00986bfb01a47bdbfb39d0de (patch)
tree4244945ff23ede99204dc39a4b494ea74f8c54ef /gcc/cp/g++spec.c
parent067746936050d0eda63d2f0179202e5ba9cb33d1 (diff)
downloadgcc-066e08f5669b784b00986bfb01a47bdbfb39d0de.tar.gz
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: svn+ssh://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. */