Commit a26e7fb5 by Phil Edwards

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
parent 76e5b312
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 ...
......
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment