This is the mail archive of the gcc-bugs@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]

[Bug libstdc++/54036] Negating a DFP NAN in C++ produces NAN not -NAN


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54036

--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-08-06 18:06:46 UTC ---
Author: paolo
Date: Mon Aug  6 18:06:42 2012
New Revision: 190186

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190186
Log:
2012-08-06  Paolo Carlini  <paolo.carlini@oracle.com>

    * testsuite/decimal/mixed-mode-cmp_neg.cc: Add test variable; minor
    tweaks.
    * testsuite/decimal/unary-arith.cc: Likewise.
    * testsuite/decimal/ctor.cc: Likewise.
    * testsuite/decimal/conversion-to-integral.cc: Likewise.
    * testsuite/decimal/make-decimal.cc: Likewise.
    * testsuite/decimal/comparison.cc: Likewise.
    * testsuite/decimal/incdec-memfunc.cc: Likewise.
    * testsuite/decimal/conversion-to-generic-float.cc: Likewise.
    * testsuite/decimal/compound-assignment-memfunc.cc: Likewise.
    * testsuite/decimal/cast_neg.cc: Likewise.
    * testsuite/decimal/incdec.cc: Likewise.
    * testsuite/decimal/mixed-mode-arith_neg.cc: Likewise.
    * testsuite/decimal/binary-arith.cc: Likewise.
    * testsuite/decimal/conversion-from-float.cc: Likewise.
    * testsuite/decimal/conversion-from-integral.cc: Likewise.
    * testsuite/decimal/compound-assignment.cc: Likewise.

2012-08-06  Peter Bergner  <bergner@vnet.ibm.com>

    PR libstdc++/54036
    * include/decimal/decimal.h (_DEFINE_DECIMAL_UNARY_OP): Use _Op as
    a unary operator.
    * testsuite/decimal/pr54036-1.cc: New test.
    * testsuite/decimal/pr54036-2.cc: Likewise.
    * testsuite/decimal/pr54036-3.cc: Likewise.

Added:
    trunk/libstdc++-v3/testsuite/decimal/pr54036-1.cc
    trunk/libstdc++-v3/testsuite/decimal/pr54036-2.cc
    trunk/libstdc++-v3/testsuite/decimal/pr54036-3.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/decimal/decimal.h
    trunk/libstdc++-v3/testsuite/decimal/binary-arith.cc
    trunk/libstdc++-v3/testsuite/decimal/cast_neg.cc
    trunk/libstdc++-v3/testsuite/decimal/comparison.cc
    trunk/libstdc++-v3/testsuite/decimal/compound-assignment-memfunc.cc
    trunk/libstdc++-v3/testsuite/decimal/compound-assignment.cc
    trunk/libstdc++-v3/testsuite/decimal/conversion-from-float.cc
    trunk/libstdc++-v3/testsuite/decimal/conversion-from-integral.cc
    trunk/libstdc++-v3/testsuite/decimal/conversion-to-generic-float.cc
    trunk/libstdc++-v3/testsuite/decimal/conversion-to-integral.cc
    trunk/libstdc++-v3/testsuite/decimal/ctor.cc
    trunk/libstdc++-v3/testsuite/decimal/incdec-memfunc.cc
    trunk/libstdc++-v3/testsuite/decimal/incdec.cc
    trunk/libstdc++-v3/testsuite/decimal/make-decimal.cc
    trunk/libstdc++-v3/testsuite/decimal/mixed-mode-arith_neg.cc
    trunk/libstdc++-v3/testsuite/decimal/mixed-mode-cmp_neg.cc
    trunk/libstdc++-v3/testsuite/decimal/unary-arith.cc


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