Commit ad6c5fa9 by Richard Kenner

(__va_rounded_size): Delete.

(__va_round): Args have at least PARM_BOUNDARY (=32) alignment.

From-SVN: r8688
parent 941df33c
...@@ -39,12 +39,11 @@ typedef struct ...@@ -39,12 +39,11 @@ typedef struct
(AP).__va_num = __builtin_args_info (0)) (AP).__va_num = __builtin_args_info (0))
#endif /* _STDARG_H */ #endif /* _STDARG_H */
#define __va_rounded_size(TYPE) \ /* round to alignment of `type' but keep a least integer alignment */
(((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int))
#define __va_round(AP,TYPE) \ #define __va_round(AP,TYPE) \
((AP).__va_ap = ((AP).__va_ap + __alignof__ (TYPE) - 1 ) & \ ((AP).__va_ap = ((AP).__va_ap + __alignof__ (TYPE) - 1 ) & \
~(__alignof__ (TYPE) - 1)) ~(__alignof__ (TYPE) - 1), \
((AP).__va_ap = ((AP).__va_ap + sizeof (int) - 1) & ~(sizeof (int) - 1)))
#define va_arg(AP, TYPE) \ #define va_arg(AP, TYPE) \
((AP).__va_num < 2 && __builtin_classify_type (* (TYPE *)0) < 12 \ ((AP).__va_num < 2 && __builtin_classify_type (* (TYPE *)0) < 12 \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment