From: Michael Zimmermann <sigmaepsilon92@gmail.com>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
Michael D Kinney <michael.d.kinney@intel.com>,
Liming Gao <liming.gao@intel.com>
Subject: Re: [PATCH 1/3] MdePkg: add RETURNS_TWICE attribute
Date: Fri, 22 Dec 2017 19:27:15 +0100 [thread overview]
Message-ID: <CAN9vWDKxwbTJ_3guNK0RB7BHrM99nU7cswP72rOvZA3Rk6pMfw@mail.gmail.com> (raw)
In-Reply-To: <CAKv+Gu9ccfbOYV-2j_3z9Us+w9oo4WT44w+QOhG+wZkR2qG09Q@mail.gmail.com>
The reason for that is that I was lazy when doing copy&paste ;)
I'll send a v2.
On Fri, Dec 22, 2017 at 4:24 PM, Ard Biesheuvel <ard.biesheuvel@linaro.org>
wrote:
> On 22 December 2017 at 07:23, M1cha <sigmaepsilon92@gmail.com> wrote:
> > Contributed-under: TianoCore Contribution Agreement 1.1
> > Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
> > ---
> > MdePkg/Include/Base.h | 10 ++++++++++
> > 1 file changed, 10 insertions(+)
> >
> > diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h
> > index 22ab5d3715fb..c863de407418 100644
> > --- a/MdePkg/Include/Base.h
> > +++ b/MdePkg/Include/Base.h
> > @@ -218,6 +218,16 @@ VERIFY_SIZE_OF (__VERIFY_UINT32_ENUM_SIZE, 4);
> > #endif
> > #endif
> >
> > +#ifndef RETURNS_TWICE
> > + #if defined (__GNUC__) || defined (__clang__)
> > + #define RETURNS_TWICE __attribute__((returns_twice))
> > + #elif defined(_MSC_EXTENSIONS) && !defined(MDE_CPU_EBC)
> > + #define RETURNS_TWICE
> > + #else
> > + #define RETURNS_TWICE
>
> What is the point of having two versions that are #defined to nothing?
>
> > + #endif
> > +#endif
> > +
> > //
> > // For symbol name in assembly code, an extra "_" is sometimes necessary
> > //
> > --
> > 2.15.1
> >
>
next prev parent reply other threads:[~2017-12-22 18:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-22 7:23 [PATCH 0/3] fix GCC optimizations and warnings for SetJump/LongJump M1cha
2017-12-22 7:23 ` [PATCH 1/3] MdePkg: add RETURNS_TWICE attribute M1cha
2017-12-22 15:24 ` Ard Biesheuvel
2017-12-22 18:27 ` Michael Zimmermann [this message]
2017-12-25 3:11 ` Gao, Liming
2017-12-25 15:50 ` Michael Zimmermann
2017-12-26 16:51 ` Gao, Liming
2017-12-26 20:00 ` Michael Zimmermann
2017-12-27 15:56 ` Gao, Liming
2017-12-22 7:23 ` [PATCH 2/3] MdePkg/BaseLib: add attribute 'RETURNS_TWICE' to SetJump M1cha
2017-12-22 15:27 ` Ard Biesheuvel
2017-12-22 7:23 ` [PATCH 3/3] MdePkg: add NORETURN attribute to LongJump and InternalLongJump M1cha
2017-12-22 15:27 ` Ard Biesheuvel
2017-12-22 17:55 ` [PATCH 0/3] fix GCC optimizations and warnings for SetJump/LongJump Kinney, Michael D
2017-12-22 18:26 ` Michael Zimmermann
2017-12-22 19:01 ` Kinney, Michael D
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=CAN9vWDKxwbTJ_3guNK0RB7BHrM99nU7cswP72rOvZA3Rk6pMfw@mail.gmail.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