Re: [PATCH] c: Diagnose char argument to __builtin_stdc_*

2024-10-30 Thread Joseph Myers
On Wed, 30 Oct 2024, Jakub Jelinek wrote: > 2024-10-30 Jakub Jelinek > > gcc/c/ > * c-parser.cc (c_parser_postfix_expression): Diagnose if > first __builtin_stdc_* argument has char type even when > -funsigned-char. > gcc/testsuite/ > * gcc.dg/builtin-stdc-bit-3.c: New

[PATCH] c: Diagnose char argument to __builtin_stdc_*

2024-10-30 Thread Jakub Jelinek
Hi! When working on __builtin_stdc_rotate_*, I've noticed that while the second argument to those is explicitly allowed to have char type, the first argument to all the stdc_* type-generic functions is - standard unsigned integer type, excluding bool; - extended unsigned integer type; - or, bit-pr