summaryrefslogtreecommitdiffstats
path: root/linux-user/syscall_defs.h
diff options
context:
space:
mode:
authorRichard Henderson2013-01-05 01:39:31 +0100
committerBlue Swirl2013-01-12 13:24:47 +0100
commit658f2dc970996d547a641b5685e384ebe6f2648e (patch)
treec88fc8c6d516caac5942676f65bcb7cb1f5788ff /linux-user/syscall_defs.h
parentbswap: Rewrite cpu_to_<endian><type>u with {ld,st}<type>_<endian>_p (diff)
downloadqemu-658f2dc970996d547a641b5685e384ebe6f2648e.tar.gz
qemu-658f2dc970996d547a641b5685e384ebe6f2648e.tar.xz
qemu-658f2dc970996d547a641b5685e384ebe6f2648e.zip
linux-user: Rewrite __get_user/__put_user with __builtin_choose_expr
The previous formuation with multiple assignments to __typeof(*hptr) falls down when hptr is qualified const. E.g. with const struct S *p, p->f is also qualified const. With this formulation, there's no assignment to any local variable. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'linux-user/syscall_defs.h')
0 files changed, 0 insertions, 0 deletions