stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lnico...@apache.org
Subject svn commit: r1385086 - in /stdcxx/branches/4.3.x: ./ etc/config/src/LIMITS.cpp tests/numerics/26.valarray.cassign.cpp
Date Sat, 15 Sep 2012 15:27:57 GMT
Author: lnicoara
Date: Sat Sep 15 15:27:57 2012
New Revision: 1385086

URL: http://svn.apache.org/viewvc?rev=1385086&view=rev
Log:
2012-09-15  Liviu Nicoara  <lnicoara@apache.org>

    Merged revision 1381727 from 4.2.x, via trunk:

    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.3.x/   (props changed)
    stdcxx/branches/4.3.x/etc/config/src/LIMITS.cpp
    stdcxx/branches/4.3.x/tests/numerics/26.valarray.cassign.cpp

Propchange: stdcxx/branches/4.3.x/
------------------------------------------------------------------------------
  Merged /stdcxx/trunk:r1381727-1385074,1385077-1385081
  Merged /stdcxx/branches/4.2.x:r1381727

Modified: stdcxx/branches/4.3.x/etc/config/src/LIMITS.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.3.x/etc/config/src/LIMITS.cpp?rev=1385086&r1=1385085&r2=1385086&view=diff
==============================================================================
--- stdcxx/branches/4.3.x/etc/config/src/LIMITS.cpp (original)
+++ stdcxx/branches/4.3.x/etc/config/src/LIMITS.cpp Sat Sep 15 15:27:57 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.3.x/tests/numerics/26.valarray.cassign.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.3.x/tests/numerics/26.valarray.cassign.cpp?rev=1385086&r1=1385085&r2=1385086&view=diff
==============================================================================
--- stdcxx/branches/4.3.x/tests/numerics/26.valarray.cassign.cpp (original)
+++ stdcxx/branches/4.3.x/tests/numerics/26.valarray.cassign.cpp Sat Sep 15 15:27:57 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