> In patch form now (for ~ we'd need to use (size_t) ~(size_t) 0 to be
> fully portable, I think nothing in the standard requires that size_t isn't
> e.g. unsigned char or unsigned short that would then promote to int.
> 
> Ok for trunk?
> 
> 2021-01-31  Jakub Jelinek  <ja...@redhat.com>
> 
>       * fold-const-call.c (fold_const_call): Use INTTYPE_MAXIMUM (size_t)
>       instead of SIZE_MAX.

Why not just:

#ifndef SIZE_MAX
# define SIZE_MAX INTTYPE_MAXIMUM (size_t)
#endif

just below UCHAR_MAX in system.h?

-- 
Eric Botcazou


Reply via email to