aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-06-09 17:54:17 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-06-09 10:54:17 -0700
commitb7115e7ff56ab2f84ad57366bf49d032829175cc (patch)
tree4640fc33b8ce30140bbcc14f647a0b2d75aaf40e
parent62b857eabfaedc1e5f9c824d0d508ac4a6005d9b (diff)
downloadgcc-b7115e7ff56ab2f84ad57366bf49d032829175cc.zip
gcc-b7115e7ff56ab2f84ad57366bf49d032829175cc.tar.gz
gcc-b7115e7ff56ab2f84ad57366bf49d032829175cc.tar.bz2
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 <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
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/g++spec.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 365bcd1..c127f60 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/g++spec.c b/gcc/cp/g++spec.c
index e6c9ee6..69cf186 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;