From: Julien Grall <julien.grall@arm.com>
To: Volodymyr Babchuk <volodymyr_babchuk@epam.com>,
Jan Beulich <JBeulich@suse.com>
Cc: "Edgar E . Iglesias" <edgar.iglesias@xilinx.com>,
Tim Deegan <tim@xen.org>,
Stefano Stabellini <sstabellini@kernel.org>,
Wei Liu <wei.liu2@citrix.com>,
George Dunlap <george.dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH 4/7] arm: smccc: handle SMCs according to SMCCC
Date: Thu, 17 Aug 2017 13:52:08 +0100 [thread overview]
Message-ID: <7f4b848a-4988-595e-c69c-141bf8cbbed3@arm.com> (raw)
In-Reply-To: <20170817123551.GA27229@EPUAKYIW2556.kyiv.epam.com>
Hi,
On 17/08/17 13:35, Volodymyr Babchuk wrote:
> I wrote this small test program:
>
> #include <stdio.h>
>
> struct test
> {
> int a[2];
> };
>
> int main (int argc, char* argv[])
> {
> printf("%d\n", ((struct test){{1,2}}).a[0]);
> return 0;
> }
>
> It is compiles with gcc --std=c89 without warnings.
This is because GCC supports compounds literals in C89 as an extension
(see [1]).
>
>>>>>> + ((d0) << 24 | (d1) << 16 | (d2) << 8 | (d3) << 0), \
>>>>>> + ((d4) << 24 | (d5) << 16 | (d6) << 8 | (d7) << 0)}})
>>>>>> +
>>>
>>> [1] http://port70.net/~nsz/c/c89/c89-draft.html#3.5.7
>>
>> ... this also doesn't have anything like that.
> I'm sorry, I don't get what do you mean under "this".
The web page does not mention (<type>){<initializers>}. Which is normal
because this also appears in c99 (see [2]).
>
>> Jan
>>
Cheers,
[1] https://gcc.gnu.org/onlinedocs/gcc-4.3.1/gcc/Compound-Literals.html
[2] http://en.cppreference.com/w/c/language/compound_literal
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-08-17 12:52 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-08 20:08 [PATCH v3 0/7] Handle SMCs and HVCs in conformance with SMCCC Volodymyr Babchuk
2017-08-08 20:08 ` [PATCH 1/7] arm: traps: psci: use generic register accessors Volodymyr Babchuk
2017-08-08 20:37 ` Andrew Cooper
2017-08-08 20:46 ` Volodymyr Babchuk
2017-08-09 9:52 ` Julien Grall
2017-08-09 11:12 ` Andrew Cooper
2017-08-09 11:43 ` Julien Grall
2017-08-08 20:08 ` [PATCH 2/7] arm: make processor-specific functions from traps.c globaly visible Volodymyr Babchuk
2017-08-09 9:53 ` Julien Grall
2017-08-09 19:26 ` Volodymyr Babchuk
2017-08-09 20:13 ` Julien Grall
2017-08-08 20:08 ` [PATCH 3/7] arm: traps: check if SMC was conditional before handling it Volodymyr Babchuk
2017-08-09 9:56 ` Julien Grall
2017-08-08 20:08 ` [PATCH 4/7] arm: smccc: handle SMCs according to SMCCC Volodymyr Babchuk
2017-08-09 10:10 ` Julien Grall
2017-08-09 11:58 ` Jan Beulich
2017-08-09 21:39 ` Volodymyr Babchuk
2017-08-10 7:30 ` Jan Beulich
2017-08-10 10:48 ` Julien Grall
2017-08-16 21:41 ` Volodymyr Babchuk
2017-08-17 7:45 ` Jan Beulich
2017-08-17 12:35 ` Volodymyr Babchuk
2017-08-17 12:52 ` Julien Grall [this message]
2017-08-17 12:56 ` Jan Beulich
2017-08-10 15:33 ` Volodymyr Babchuk
2017-08-10 16:11 ` Julien Grall
2017-08-10 17:40 ` Volodymyr Babchuk
2017-08-10 18:18 ` Julien Grall
2017-08-10 20:09 ` Volodymyr Babchuk
2017-08-10 21:09 ` Julien Grall
2017-08-11 10:47 ` Julien Grall
2017-08-11 13:08 ` Volodymyr Babchuk
2017-08-08 20:08 ` [PATCH 5/7] arm: traps: handle PSCI calls inside `smccc.c` Volodymyr Babchuk
2017-08-09 11:02 ` Julien Grall
2017-08-08 20:08 ` [PATCH 6/7] arm: psci: use definitions provided by vsmc.h Volodymyr Babchuk
2017-08-09 11:36 ` Julien Grall
2017-08-08 20:08 ` [PATCH 7/7] arm: vsmc: remove 64 bit mode check in psci handler Volodymyr Babchuk
2017-08-09 11:38 ` Julien Grall
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-all 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=7f4b848a-4988-595e-c69c-141bf8cbbed3@arm.com \
--to=julien.grall@arm.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=edgar.iglesias@xilinx.com \
--cc=george.dunlap@eu.citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=sstabellini@kernel.org \
--cc=tim@xen.org \
--cc=volodymyr_babchuk@epam.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
/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;
as well as URLs for NNTP newsgroup(s).