]> Git Repo - qemu.git/commit - linux-user/qemu.h
linux-user: Rewrite __get_user/__put_user with __builtin_choose_expr
authorRichard Henderson <[email protected]>
Sat, 5 Jan 2013 00:39:31 +0000 (16:39 -0800)
committerBlue Swirl <[email protected]>
Sat, 12 Jan 2013 12:24:47 +0000 (12:24 +0000)
commit658f2dc970996d547a641b5685e384ebe6f2648e
treec88fc8c6d516caac5942676f65bcb7cb1f5788ff
parentc732a52d3e3b7ed42d7daa94ba40a83408cd6f22
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 <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
linux-user/qemu.h
This page took 0.027317 seconds and 4 git commands to generate.