On Thu, 11 Jul 2024, Jakub Jelinek wrote:

> With the CPP_NUMBERs around it, I believe in the C FE the only places which
> need handling of the CPP_EMBED token are initializer parsing (that is the
> only one which adds actual optimizations for it), comma expressions (I
> believe nothing really cares whether it is 25,13,95 or
> 25,13,0,1,2,3,4,5,6,7,8,9,10,13,95 etc., so besides the 2 outer CPP_NUMBER
> the parsing just adds one INTEGER_CST to the comma expression, I doubt users
> want to be spammed with millions of -Wunused warnings per #embed) and
> whatever uses c_parser_expr_list (function calls, attribute arguments,
> OpenMP sizes clause argument, OpenACC tile clause argument.  Please correct
> me if I'm wrong.

I think c_parser_get_builtin_args is also relevant.  In most cases a list 
of 4 or more elements wouldn't be valid, but for __builtin_shufflevector 
you can have such a list of integers are part of the arguments.

-- 
Joseph S. Myers
josmy...@redhat.com

Reply via email to