g++spec.c (lang_specific_driver): Remove check for -lm and -lmath when check it see...
authorAndrew Pinski <pinskia@physics.uc.edu>
Wed, 9 Jun 2004 17:54:17 +0000 (17:54 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 9 Jun 2004 17:54:17 +0000 (10:54 -0700)
2004-06-09  Andrew Pinski  <pinskia@physics.uc.edu>

        * g++spec.c (lang_specific_driver): Remove check for -lm
        and -lmath when check it see if it was the math library.

From-SVN: r82843

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

index 365bcd1fba576ce1df7c5822105eb1a68fbd4d7c..c127f60d1ce6c3871053b0608d1cf5ed4e82eeaf 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-09  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * g++spec.c (lang_specific_driver): Remove check for -lm
+       and -lmath when check it see if it was the math library.
+
 2004-06-08  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
 
        PR c++/7841
index e6c9ee6892a0dfd685c12f1457a243f7267101c4..69cf1864cf8c69e80d5006763a18b6518ec10479 100644 (file)
@@ -136,10 +136,7 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
            {
              library = -1;
            }
-         else if (strcmp (argv[i], "-lm") == 0
-                  || strcmp (argv[i], "-lmath") == 0
-                  || strcmp (argv[i], MATH_LIBRARY) == 0
-                 )
+         else if (strcmp (argv[i], MATH_LIBRARY) == 0)
            {
              args[i] |= MATHLIB;
              need_math = 0;