From owner-svn-src-head@freebsd.org Tue Jul 12 08:45:38 2016 Return-Path: Delivered-To: svn-src-head@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 3B11EB93A9C for ; Tue, 12 Jul 2016 08:45:38 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) (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 DA58F12FF for ; Tue, 12 Jul 2016 08:45:37 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mail-lf0-f52.google.com with SMTP id b199so6324142lfe.0 for ; Tue, 12 Jul 2016 01:45:37 -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=C2qFIarFZefk1+UxTcbRrORVJj4D4+5DFBTHhAH1JTvznmlheR7So6Ln3Qz6VHeEPG 6xUGziUVd2QcvCcV/Al+awEHZ/MWYTK3gOI0Fjx8I3Bhs4QFdQ49/7CWxSB1py/u/OzU RqpbjrMrOkqmqhYBVzOTddAaz3W+WNjxroQwjdSfMsWxfr5vd2/4oy5Vk3DvsKwQf9YH BawR+SDcPJD9eI9hoBdQmMoz3s9msRkA7rr9S5cVv0uxVFINipj62PnuAi/kqN7M0buz UJSvpL5w0dNfMcQXH5iYk304I6pwUIBdZh7KsST0PWuA5W2hl+N3sgOcSWnRdm3OnJ0k REew== X-Gm-Message-State: ALyK8tLaB9qX3zlyRTRnKc9Y599fvHAdMV10lJ9Uit7K+R0lHnD+C32TAd3D9jgqS4B7bQ== 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-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2016 08:45:38 -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 >