This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Janitor] Remove ALT_LIBM


As Zack pointed out (and verified myself) ALT_LIBM is not used in GCC.

Ok to commit the appended patch if bootstrap passes on i686-linux?

Andreas

For cp/
2003-05-30  Andreas Jaeger  <aj@suse.de>

	* g++spec.c (lang_specific_driver): Remove ALT_LIBM usage.

For f/
2003-05-30  Andreas Jaeger  <aj@suse.de>

	* g77spec.c (lang_specific_driver): Likewise.

============================================================
Index: gcc/f/g77spec.c
--- f/g77spec.c	15 Mar 2003 06:12:33 -0000	1.42
+++ f/g77spec.c	30 May 2003 18:17:55 -0000
@@ -451,11 +451,7 @@ or type the command `info -f g77 Copying
 	saw_library = 0;	/* -xfoo currently active. */
       else
 	{			/* -lfoo or filename. */
-	  if (strcmp (argv[i], MATH_LIBRARY) == 0
-#ifdef ALT_LIBM
-	      || strcmp (argv[i], ALT_LIBM) == 0
-#endif
-	      )
+	  if (strcmp (argv[i], MATH_LIBRARY) == 0)
 	    {
 	      if (saw_library == 1)
 		saw_library = 2;	/* -l<library> -lm. */
============================================================
Index: gcc/cp/g++spec.c
--- cp/g++spec.c	10 Mar 2003 23:41:39 -0000	1.36
+++ cp/g++spec.c	30 May 2003 18:17:56 -0000
@@ -141,9 +141,6 @@ lang_specific_driver (in_argc, in_argv, 
 	  else if (strcmp (argv[i], "-lm") == 0
 		   || strcmp (argv[i], "-lmath") == 0
 		   || strcmp (argv[i], MATH_LIBRARY) == 0
-#ifdef ALT_LIBM
-		   || strcmp (argv[i], ALT_LIBM) == 0
-#endif
 		  )
 	    {
 	      args[i] |= MATHLIB;

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]