From owner-svn-src-projects@FreeBSD.ORG Sun Jan 29 02:13:02 2012 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90A96106564A; Sun, 29 Jan 2012 02:13:02 +0000 (UTC) (envelope-from andrew@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7B2968FC18; Sun, 29 Jan 2012 02:13:02 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q0T2D2KK011745; Sun, 29 Jan 2012 02:13:02 GMT (envelope-from andrew@svn.freebsd.org) Received: (from andrew@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q0T2D2Rb011743; Sun, 29 Jan 2012 02:13:02 GMT (envelope-from andrew@svn.freebsd.org) Message-Id: <201201290213.q0T2D2Rb011743@svn.freebsd.org> From: Andrew Turner Date: Sun, 29 Jan 2012 02:13:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r230722 - projects/arm_eabi/contrib/libstdc++/include/std X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2012 02:13:02 -0000 Author: andrew Date: Sun Jan 29 02:13:01 2012 New Revision: 230722 URL: http://svn.freebsd.org/changeset/base/230722 Log: Fix a warning where a left shift is greater than the width of an unsigned type in __glibcxx_{min,max}. The code is unused because __glibcxx_signed is false. __glibcxx_max came from libstdc++ r138078, the last GPLv2 revision. Modified: projects/arm_eabi/contrib/libstdc++/include/std/std_limits.h Modified: projects/arm_eabi/contrib/libstdc++/include/std/std_limits.h ============================================================================== --- projects/arm_eabi/contrib/libstdc++/include/std/std_limits.h Sun Jan 29 01:50:26 2012 (r230721) +++ projects/arm_eabi/contrib/libstdc++/include/std/std_limits.h Sun Jan 29 02:13:01 2012 (r230722) @@ -134,10 +134,11 @@ #define __glibcxx_signed(T) ((T)(-1) < 0) #define __glibcxx_min(T) \ - (__glibcxx_signed (T) ? (T)1 << __glibcxx_digits (T) : (T)0) + (__glibcxx_signed (T) ? (((T)1 << (__glibcxx_digits (T) - 1)) << 1) : (T)0) #define __glibcxx_max(T) \ - (__glibcxx_signed (T) ? ((T)1 << __glibcxx_digits (T)) - 1 : ~(T)0) + (__glibcxx_signed (T) ? \ + (((((T)1 << (__glibcxx_digits (T) - 1)) - 1) << 1) + 1) : ~(T)0) #define __glibcxx_digits(T) \ (sizeof(T) * __CHAR_BIT__ - __glibcxx_signed (T))