From a26e7fb5aaccf225730f2da59e99c0944c198240 Mon Sep 17 00:00:00 2001 From: Phil Edwards Date: Tue, 16 Jan 2001 16:10:47 +0000 Subject: [PATCH] g++spec.c: Don't add libraries needlessly if -fsyntax-only was given. 2001-01-16 Phil Edwards * g++spec.c: Don't add libraries needlessly if -fsyntax-only was given. From-SVN: r39069 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/g++spec.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + * g++spec.c: Don't add libraries needlessly if -fsyntax-only + was given. + 2001-01-15 Nathan Sidwell * 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. */ -- 2.30.2