From owner-svn-src-all@freebsd.org Tue Jul 12 08:45:32 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4FD0BB93A6E for ; Tue, 12 Jul 2016 08:45:32 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0801E12BE for ; Tue, 12 Jul 2016 08:45:31 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mail-lf0-f49.google.com with SMTP id f93so6267904lfi.2 for ; Tue, 12 Jul 2016 01:45:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ex2NJ9LrbGDqexYoXH9t0ebRRiAzAGkHPQN8HQ2xBls=; b=krbhjxWyrMwGvxNuYHkRDsHwXvjVJY97wMPREqyqb1uqL/xAJuwKpuWS27evYxHEAQ Z4DtoQ3boUx9jCQxhuI0Q4h2kuQwEGHEdmqJm6Uuib++ZPgIOZLAKAEGTdp79XShT08/ nPuoKeY7O8oEwNqabhl0NZ7mozTeyuAV31gI5O+caEAATx7txvfd2DREL2ZIpWeg5tsN HEyvGemZ1NIdwhWvqD3zVqqaeRy/4aO2v/bJWZ74oo5mN0wZiQJ1bILwUeKYcRsVPUPU nRc9bjZONEPI/FjDNf5Xu3Qtt+D6jsg3k382nfdiifzzQZHW24VPtMNYMhUZHJUvzpE+ 3U1Q== X-Gm-Message-State: ALyK8tKzCGaV2+LVlADvT/zjyv/vNFHFGhmGNOaDjYsYt1mb5m92bOT3ZyeT1z+t15uVqA== X-Received: by 10.25.21.160 with SMTP id 32mr295715lfv.1.1468313129904; Tue, 12 Jul 2016 01:45:29 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by smtp.gmail.com with ESMTPSA id 4sm12291866ljf.9.2016.07.12.01.45.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jul 2016 01:45:29 -0700 (PDT) Subject: Re: svn commit: r302601 - in head/sys: arm/include arm64/include To: Andrew Turner References: <201607120037.u6C0bmNF054452@repo.freebsd.org> <20160712093509.69540801@zapp> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org From: Andrey Chernov Message-ID: <03ee3549-563d-6ee1-dab7-4818e8376dd1@freebsd.org> Date: Tue, 12 Jul 2016 11:45:28 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160712093509.69540801@zapp> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2016 08:45:32 -0000 On 12.07.2016 11:35, Andrew Turner wrote: > On Tue, 12 Jul 2016 00:37:48 +0000 (UTC) > "Andrey A. Chernov" wrote: > >> Author: ache >> Date: Tue Jul 12 00:37:48 2016 >> New Revision: 302601 >> URL: https://svnweb.freebsd.org/changeset/base/302601 >> >> Log: >> I don't know why unsigned int is choosed for wchar_t here, but >> WCHAR_MAX should be <= WINT_MAX. It is bigger, __UINT_MAX > INT32_MAX > > Because the ABI either requires us to use an unsigned int [1], or the > preferred type is unsigned int [2]. In the latter case the other choice > is unsigned short, it would seem this is for Windows. Thanx for explanation. Perhaps we need to use 32bit unsigned int for other architectures too (instead of 32bit signed int), because no L'' literals produce negative value and locale enumerates positive values only. BTW, this commit is already backed out. > > Andrew > > [1] > http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055c/IHI0055C_beta_aapcs64.pdf > [2] > http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042f/IHI0042F_aapcs.pdf >