From b7115e7ff56ab2f84ad57366bf49d032829175cc Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Wed, 9 Jun 2004 17:54:17 +0000 Subject: [PATCH] g++spec.c (lang_specific_driver): Remove check for -lm and -lmath when check it see if it was the math library. 2004-06-09 Andrew Pinski * 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 | 5 +++++ gcc/cp/g++spec.c | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 365bcd1fba5..c127f60d1ce 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2004-06-09 Andrew Pinski + + * 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 PR c++/7841 diff --git a/gcc/cp/g++spec.c b/gcc/cp/g++spec.c index e6c9ee6892a..69cf1864cf8 100644 --- a/gcc/cp/g++spec.c +++ b/gcc/cp/g++spec.c @@ -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; -- 2.30.2