[v3] turn of tricks if --enable-debug, regression for "C" header

Benjamin Kosnik bkoz@redhat.com
Wed Dec 20 00:23:00 GMT 2000


2000-12-20  Benjamin Kosnik  <bkoz@fillmore.constant.com>

	* testsuite/17_intro/headers_c.cc (main): New file.

	* acinclude.m4 (SECTION_FLAGS): Only set if --enable-debug is not
	passed.
	(OPT_LDFLAGS): And here.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	

Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/acinclude.m4,v
retrieving revision 1.110
diff -c -p -r1.110 acinclude.m4
*** acinclude.m4	2000/12/14 23:42:27	1.110
--- acinclude.m4	2000/12/20 08:22:41
*************** AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES
*** 230,236 ****
      # this is the suspicious part
      CXXFLAGS=''
    fi
!   if test "$ac_gabydiags" = "yes"; then
      WFMT_FLAGS='-fdiagnostics-show-location=once'
    fi
    AC_MSG_RESULT($ac_gabydiags)
--- 230,236 ----
      # this is the suspicious part
      CXXFLAGS=''
    fi
!   if test x"$ac_gabydiags" = x"yes"; then
      WFMT_FLAGS='-fdiagnostics-show-location=once'
    fi
    AC_MSG_RESULT($ac_gabydiags)
*************** AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES
*** 246,252 ****
      # this is the suspicious part
      CXXFLAGS=''
    fi
!   if test "$ac_fdsections" = "yes"; then
      SECTION_FLAGS='-ffunction-sections -fdata-sections'
    fi
    AC_MSG_RESULT($ac_fdsections)
--- 246,252 ----
      # this is the suspicious part
      CXXFLAGS=''
    fi
!   if test x"$ac_fdsections" = x"yes" && x"$enable_debug" = x"no"; then
      SECTION_FLAGS='-ffunction-sections -fdata-sections'
    fi
    AC_MSG_RESULT($ac_fdsections)
*************** AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, 
*** 314,320 ****
    fi
  
    # Set linker optimization flags.
!   if test "$ac_cv_prog_gnu_ld" = "yes"; then
      OPT_LDFLAGS='-Wl,-O1'
    fi
  
--- 314,320 ----
    fi
  
    # Set linker optimization flags.
!   if test x"$ac_cv_prog_gnu_ld" = x"yes" && x"$enable_debug" = x"no"; then
      OPT_LDFLAGS='-Wl,-O1'
    fi
  


More information about the Gcc-patches mailing list