« Previous | Next » 

Revision 658f2dc9

ID658f2dc970996d547a641b5685e384ebe6f2648e

Added by Richard Henderson about 11 years ago

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 <>
Signed-off-by: Blue Swirl <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences