From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=66.163.190.161; helo=sonic315-35.consmr.mail.ne1.yahoo.com; envelope-from=zenith432@users.sourceforge.net; receiver=edk2-devel@lists.01.org Received: from sonic315-35.consmr.mail.ne1.yahoo.com (sonic315-35.consmr.mail.ne1.yahoo.com [66.163.190.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 94B0B2214E324 for ; Sat, 9 Dec 2017 13:28:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1512855199; bh=H6r/S/qKBF4/2smYFQs9vPJn2ZS8DrbdfZMwBY36CYo=; h=Date:From:Reply-To:To:Cc:Subject:References:From:Subject; b=ElmOYyEp6EWtpwe/wBN+v+1dJyiYQg7vflZBQSRG+DhxaPB3KY2pV81vJXByy2bS9UWtzakaGLo//KvyClo2minv+ZqBJPj4zcRBx/JojlWp2YFQeCJTkORVZWgCnsh7B1TiauzuDC4We08KR2+nmQM7tcmdXT4Kc79iL4bXv+dXnpFktJRw/xWblKNCdeel8wcoD8P59uLWM7u7wBTD9YGEDUm+Gy/jd8qShyCU2YEGyZJROG/QEU6gD4j8aWaClZ2p2kEORTVZWTPBhY0lJhOFB3wyLPF/0qmqHEL/HgKgzb0/y5HNZpR/5Cb//PiI3zByFl8H8nPPTMQf7GCp5w== X-YMail-OSG: SarwDRAVM1kzWrCuS9Cx3RGQhk0qdBhoEDra4tM.hUHWOElT5chxMQko21oqlYX WEU7hZRineJ.s5NCb9zavp0M__oghYXRTOLfADzgGHZakquffaFasZep2POVxN9VuyC8tLjKLvPo 5gMejKOzPLsoRhkfHwL1NcqZoXAfn.CstGf3xv7UM6hXpSlo.v4ggsyuPAOUXizavqV86lCccbTr PVRIDyAKoWJQ7y_UkJZr.k4EVQ4XigivV.b_1M1ocJLn4X1keHMMWbHCXEGCwvo6mJ.cGlN64D5k Vqp_GP6zAd5JhS40n54wmnYRK9LMpeGUMq8Kb_EiiRZTd7OPqMmgWpeZxVJqtcOvoN47spo5yMmE Z3I6zyRxbhDhoPz3qcXvL3zceygCc.JmqOji1HWpPc_yu8EYxckVIxt1gSZRz7c0vbpiV6SorO9U ODgCNjQ0GgZ6yv5gUvgCIl2aOL7Hq0FudODK8BqxPABahMguiccJV8vARnotc2mtwS0M5..4UKLi auew4vLoGCexqDi8nS7oyS5cMCuKffqr2 Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Sat, 9 Dec 2017 21:33:19 +0000 Date: Sat, 9 Dec 2017 21:33:18 +0000 (UTC) From: Zenith432 Reply-To: Zenith432 To: "edk2-devel@lists.01.org" , =?UTF-8?Q?Marvin_H=C3=A4user?= Cc: "michael.d.kinney@intel.com" , "liming.gao@intel.com" Message-ID: <617598899.1906935.1512855198518@mail.yahoo.com> MIME-Version: 1.0 References: <617598899.1906935.1512855198518.ref@mail.yahoo.com> X-Mailer: WebService/1.1.11051 YahooMailBasic Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7 Subject: Re: [PATCH] MdePkg: resolve bug 741 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Dec 2017 21:28:46 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It's the package maintainer's choice. As a practical matter, silencing the= warning also works because... 1. clang is the only compiler that complains. Even though it complains, it= generates correct code because it has __builtin implementation of va_start= that takes register argument and stack granularity into account. 2. In MdePkg/Include/Base.h there are __builtin implementations of VA_START= for __CC_ARM, GCC and clang which should all work despite the argument pro= motion. 3. For the other architectures (i.e. Windows) there's an implementation of = VA_START in Base.h that uses _INT_SIZE_OF for the parameter always a multip= le of UINTN. The Windows compilers also have builtin forms of va_start, bu= t this non-builtin implementation looks ok for all arguments actually passe= d as variadic in EDK2. -------------------------------------------- On Sat, 12/9/17, Marvin H=C3=A4user wrote: ... It's your choice of course. ... Regards, Marvin. =20