This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

[v3] remove unused GLIBCPP_CFLAGS/CXXFLAGS


We were going to some trouble accumulating possible flags for GLIBCPP_CFLAGS
and GLIBCPP_CXXFLAGS, but never using the results.  Just as well, since
they were always empty strings anyhow.  Simply one of those things that
we thought would be used but wasn't.

This removes all that.  Tested on i686, applied to mainline.  Rebuilt files
not included here.



2001-02-28  Phil Edwards  <pme@sources.redhat.com>

	* acinclude.m4 (GLIBCPP_CONFIGURE):  Remove GLIBCPP_CFLAGS
	  and GLIBCPP_CXXFLAGS as unused variables.
	* configure.host:  Likewise.
	* configure.target:  Likewise.
	* aclocal.m4:  Regenerated.
	* configure:  Regenerated.
	* Makefile.in:  Regenerated.
	* libio/Makefile.in:  Regenerated.
	* libmath/Makefile.in:  Regenerated.
	* libsupc++/Makefile.in:  Regenerated.
	* src/Makefile.in:  Regenerated.


Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/acinclude.m4,v
retrieving revision 1.133
diff -u -3 -p -r1.133 acinclude.m4
--- acinclude.m4	2001/02/28 03:20:34	1.133
+++ acinclude.m4	2001/02/28 18:40:22
@@ -133,12 +133,6 @@ LIB_AC_PROG_CXX
     AC_EXEEXT
   fi
 
-  # configure.host sets the following important variables
-  #        glibcpp_cflags    - host specific C compiler flags
-  #        glibcpp_cxxflags  - host specific C++ compiler flags
-  glibcpp_cflags=
-  glibcpp_cxxflags=
-
   . [$]{glibcpp_basedir}/configure.host
 
   case [$]{glibcpp_basedir} in
@@ -147,13 +141,8 @@ LIB_AC_PROG_CXX
   esac
 
   # This does for the target what configure.host does for the host.  In
-  # addition to modifying the same flags, it also sets up symlinks.
+  # addition to possibly modifying the same flags, it also sets up symlinks.
   GLIBCPP_CHECK_TARGET
-
-  GLIBCPP_CFLAGS="[$]{glibcpp_cflags}"
-  GLIBCPP_CXXFLAGS="[$]{glibcpp_cxxflags}"
-  AC_SUBST(GLIBCPP_CFLAGS)
-  AC_SUBST(GLIBCPP_CXXFLAGS)
 ])
 
 
Index: configure.host
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/configure.host,v
retrieving revision 1.2
diff -u -3 -p -r1.2 configure.host
--- configure.host	2000/11/13 23:49:41	1.2
+++ configure.host	2001/02/28 18:40:22
@@ -15,8 +15,6 @@
 #   target_optspace       --enable-target-optspace ("yes", "no", "")
 
 # It sets the following shell variables:
-#   glibcpp_cflags         Special CFLAGS to use when building
-#   glibcpp_cxxflags       Special CXXFLAGS to use when building
 
 
 AM_RUNTESTFLAGS= 
@@ -25,17 +23,9 @@ AM_RUNTESTFLAGS= 
 # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
 
 
-DIVIDESPEC=-fuse-divide-subroutine
-
 case "${host}" in
-  i686-*|i586-*)
-       ;;
-  sparc-*)
-        ;;
   *)
-       ;;
+    ;;
 esac
 
-glibcpp_cflags="${glibcpp_cflags} ${libgcj_flags}"
-glibcpp_cxxflags="${glibcpp_cxxflags} ${libgcj_flags}"
 
Index: configure.target
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/configure.target,v
retrieving revision 1.14
diff -u -3 -p -r1.14 configure.target
--- configure.target	2001/02/08 19:53:19	1.14
+++ configure.target	2001/02/28 18:40:22
@@ -16,19 +16,10 @@
 #   target_optspace       --enable-target-optspace ("yes", "no", "")
 
 # It possibly modifies the following shell variables:
-#   glibcpp_cflags         Special CFLAGS to use when building
-#   glibcpp_cxxflags       Special CXXFLAGS to use when building
 #   cpu_include_dir        CPU-specific include directory, relative to srcdir
 #   os_include_dir         OS-specific include directory, relative to srcdir
-# The first two are set in configure.host and modified here.
 
 
-# These are "local" and should be set in the switch statements below.  They
-# will be appended to their real conterparts once the dust settles.
-l_glibcpp_cflags=
-l_glibcpp_cxxflags=
-
-
 # Set any CPU dependent compiler flags.
 # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
 
@@ -132,10 +123,4 @@ case "${target}" in
      ;;
 esac
     
-
-# Okay, folks, show's over.  Move along, move along.
-
-glibcpp_cflags="${glibcpp_cflags} ${libgcj_flags} ${l_glibcpp_cflags}"
-glibcpp_cxxflags="${glibcpp_cxxflags} ${libgcj_flags} ${l_glibcpp_cxxflags}"
-
 


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