stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lnico...@apache.org
Subject svn commit: r1388879 - /stdcxx/branches/4.2.x/etc/config/src/LIMITS.cpp
Date Sat, 22 Sep 2012 19:52:23 GMT
Author: lnicoara
Date: Sat Sep 22 19:52:22 2012
New Revision: 1388879

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

    * etc/config/src/LIMITS.cpp: (compute_min) qualified variable
      volatile to avoid Intel C++-optimized infinite loop


Modified:
    stdcxx/branches/4.2.x/etc/config/src/LIMITS.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=1388879&r1=1388878&r2=1388879&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/etc/config/src/LIMITS.cpp (original)
+++ stdcxx/branches/4.2.x/etc/config/src/LIMITS.cpp Sat Sep 22 19:52:22 2012
@@ -138,7 +138,7 @@ T compute_min (T min)
 {
     // prevents overzealous gcc optimizer from invoking
     // undefined behavior on signed integer over/underflow
-    for (T tmp; ; --min) {
+    for (T volatile tmp; ; --min) {
         tmp = T (min - one);
         if (tmp >= min)
             break;



Mime
View raw message