OSDN Git Service

2001-01-16 Phil Edwards <pme@sources.redhat.com>
authorpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jan 2001 16:10:47 +0000 (16:10 +0000)
committerpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jan 2001 16:10:47 +0000 (16:10 +0000)
* 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

gcc/cp/ChangeLog
gcc/cp/g++spec.c

index bd54df0..4988985 100644 (file)
@@ -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 ...
index 1602ab6..63787b9 100644 (file)
@@ -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.  */