stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lnico...@apache.org
Subject svn commit: r1381727 - in /stdcxx/branches/4.2.x: etc/config/src/LIMITS.cpp src/memattr.cpp tests/numerics/26.valarray.cassign.cpp
Date Thu, 06 Sep 2012 19:34:07 GMT
Author: lnicoara
Date: Thu Sep  6 19:34:06 2012
New Revision: 1381727

URL: http://svn.apache.org/viewvc?rev=1381727&view=rev
Log:
2012-09-06  Liviu Nicoara  <nikkoara@hates.ms>

Trivial build fixes:

    * etc/config/src/LIMITS.cpp: volatile-qualified max to avoid
      compiler optimization 
    * src/memattr.cpp: removed inadvertent include of config header
    * tests/numerics/26.valarray.cassign.cpp: bumped up the library
      version in conditional for which we don't test user defined types


Modified:
    stdcxx/branches/4.2.x/etc/config/src/LIMITS.cpp
    stdcxx/branches/4.2.x/src/memattr.cpp
    stdcxx/branches/4.2.x/tests/numerics/26.valarray.cassign.cpp

Modified: stdcxx/branches/4.2.x/etc/config/src/LIMITS.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/etc/config/src/LIMITS.cpp?rev=1381727&r1=1381726&r2=1381727&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/etc/config/src/LIMITS.cpp (original)
+++ stdcxx/branches/4.2.x/etc/config/src/LIMITS.cpp Thu Sep  6 19:34:06 2012
@@ -173,7 +173,7 @@ template <class T>
 T compute_limits (T *pval, const char *pfx, const char *sfx, const char *type)
 {
     T min = T (-one);
-    T max = T (one);
+    T volatile max = T (one);
 
     int is_signed = T (min - one) < T (zero);
 

Modified: stdcxx/branches/4.2.x/src/memattr.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/memattr.cpp?rev=1381727&r1=1381726&r2=1381727&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/src/memattr.cpp (original)
+++ stdcxx/branches/4.2.x/src/memattr.cpp Thu Sep  6 19:34:06 2012
@@ -29,8 +29,6 @@
 
 #define _RWSTD_LIB_SRC
 
-#include <config.h>
-
 #include <errno.h>    // for ENOMEM, errno
 #include <string.h>   // for memchr(), size_t
 

Modified: stdcxx/branches/4.2.x/tests/numerics/26.valarray.cassign.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/numerics/26.valarray.cassign.cpp?rev=1381727&r1=1381726&r2=1381727&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/tests/numerics/26.valarray.cassign.cpp (original)
+++ stdcxx/branches/4.2.x/tests/numerics/26.valarray.cassign.cpp Thu Sep  6 19:34:06 2012
@@ -805,9 +805,9 @@ run_test (int, char**)
     TEST (int);
     TEST (double);
 
-#if 0x04020100 >= _RWSTD_VER
+#if 0x05000000 > _RWSTD_VER
 
-    // test fails to compile with stdcxx 4.2.1 and prior due to
+    // test fails to compile with stdcxx 4.x and prior due to
     // STDCXX-512: http://issues.apache.org/jira/browse/STDCXX-512
     rw_warn (0, 0, __LINE__,
              "test of UserClass disabled in stdcxx 4.2.0 and prior "



Mime
View raw message