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]
Other format: [Raw text]

Re: Little tr1_impl/cmath redundacy


... here the issue is different, more substantive. I applied the below.

Paolo.

///////////////
2008-12-08  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/tr1_impl/cmath: Undef remquof / remquol too; add using
	declarations.
	* acinclude.m4 [GLIBCXX_CHECK_C99_TR1]: Check remquof / remquol too.
	* testsuite/tr1/8_c_compatibility/cmath/functions.cc: Adjust.
	* configure: Regenerate.
Index: include/tr1_impl/cmath
===================================================================
*** include/tr1_impl/cmath	(revision 142546)
--- include/tr1_impl/cmath	(working copy)
***************
*** 119,126 ****
  #undef remainderf
  #undef remainderl
  #undef remquo
! #undef remquo
! #undef remquo
  #undef rint
  #undef rintf
  #undef rintl
--- 119,126 ----
  #undef remainderf
  #undef remainderl
  #undef remquo
! #undef remquof
! #undef remquol
  #undef rint
  #undef rintf
  #undef rintl
*************** _GLIBCXX_BEGIN_NAMESPACE_TR1
*** 266,273 ****
    using ::remainderl;
  
    using ::remquo;
!   using ::remquo;
!   using ::remquo;
  
    using ::rint;
    using ::rintf;
--- 266,273 ----
    using ::remainderl;
  
    using ::remquo;
!   using ::remquof;
!   using ::remquol;
  
    using ::rint;
    using ::rintf;
Index: testsuite/tr1/8_c_compatibility/cmath/functions.cc
===================================================================
*** testsuite/tr1/8_c_compatibility/cmath/functions.cc	(revision 142546)
--- testsuite/tr1/8_c_compatibility/cmath/functions.cc	(working copy)
***************
*** 2,8 ****
  
  // 2006-02-07  Paolo Carlini  <pcarlini@suse.de>
  //
! // Copyright (C) 2006 Free Software Foundation, Inc.
  //
  // This file is part of the GNU ISO C++ Library.  This library is free
  // software; you can redistribute it and/or modify it under the
--- 2,8 ----
  
  // 2006-02-07  Paolo Carlini  <pcarlini@suse.de>
  //
! // Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc.
  //
  // This file is part of the GNU ISO C++ Library.  This library is free
  // software; you can redistribute it and/or modify it under the
*************** void test01()
*** 156,163 ****
    ldret = std::tr1::remainderl(ld0, ld0);
  
    ret = std::tr1::remquo(d0, d0, pquo);
!   fret = std::tr1::remquo(f0, f0, pquo);
!   ldret = std::tr1::remquo(ld0, ld0, pquo);
  
    ret = std::tr1::rint(d0);
    fret = std::tr1::rintf(f0);
--- 156,163 ----
    ldret = std::tr1::remainderl(ld0, ld0);
  
    ret = std::tr1::remquo(d0, d0, pquo);
!   fret = std::tr1::remquof(f0, f0, pquo);
!   ldret = std::tr1::remquol(ld0, ld0, pquo);
  
    ret = std::tr1::rint(d0);
    fret = std::tr1::rintf(f0);
Index: acinclude.m4
===================================================================
*** acinclude.m4	(revision 142546)
--- acinclude.m4	(working copy)
*************** AC_DEFUN([GLIBCXX_CHECK_C99_TR1], [
*** 1523,1530 ****
  	          remainderf(0.0f, 0.0f);
  	          remainderl(0.0l, 0.0l);
  	          remquo(0.0, 0.0, 0);
! 	          remquo(0.0f, 0.0f, 0);
! 	          remquo(0.0l, 0.0l, 0);
  	          rint(0.0);
  	          rintf(0.0f);
  	          rintl(0.0l);
--- 1523,1530 ----
  	          remainderf(0.0f, 0.0f);
  	          remainderl(0.0l, 0.0l);
  	          remquo(0.0, 0.0, 0);
! 	          remquof(0.0f, 0.0f, 0);
! 	          remquol(0.0l, 0.0l, 0);
  	          rint(0.0);
  	          rintf(0.0f);
  	          rintl(0.0l);

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