From: Zenith432 <zenith432@users.sourceforge.net>
To: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
"Marvin Häuser" <Marvin.Haeuser@outlook.com>
Cc: "michael.d.kinney@intel.com" <michael.d.kinney@intel.com>,
"liming.gao@intel.com" <liming.gao@intel.com>
Subject: Re: [PATCH] MdePkg: resolve bug 741
Date: Sat, 9 Dec 2017 21:33:18 +0000 (UTC) [thread overview]
Message-ID: <617598899.1906935.1512855198518@mail.yahoo.com> (raw)
In-Reply-To: 617598899.1906935.1512855198518.ref@mail.yahoo.com
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 promotion.
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 multiple of UINTN. The Windows compilers also have builtin forms of va_start, but this non-builtin implementation looks ok for all arguments actually passed as variadic in EDK2.
--------------------------------------------
On Sat, 12/9/17, Marvin Häuser <Marvin.Haeuser@outlook.com> wrote:
...
It's your choice of course.
...
Regards,
Marvin.
next parent reply other threads:[~2017-12-09 21:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <617598899.1906935.1512855198518.ref@mail.yahoo.com>
2017-12-09 21:33 ` Zenith432 [this message]
2018-01-03 2:06 ` [PATCH] MdePkg: resolve bug 741 Gao, Liming
[not found] <1822489314.1922023.1512852000221.ref@mail.yahoo.com>
2017-12-09 20:40 ` Zenith432
2017-12-09 20:57 ` Marvin Häuser
[not found] <541697813.1899563.1512848632833.ref@mail.yahoo.com>
2017-12-09 19:43 ` Zenith432
2017-12-09 20:22 ` Marvin H?user
2017-12-10 13:52 ` Gao, Liming
2017-12-10 14:41 ` Zenith432
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=617598899.1906935.1512855198518@mail.yahoo.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox