Re: [PATCH] libcpp, v2: Add support for gnu::offset #embed/__has_embed parameter

2024-08-16 Thread Joseph Myers
On Thu, 15 Aug 2024, Jakub Jelinek wrote: > + else > + { > + if (res > INTTYPE_MAXIMUM (off_t)) > + cpp_error_with_line (pfile, CPP_DL_ERROR, loc, 0, > + "too large 'gnu::offset' argument"); Having a testcase for this diagnostic

[PATCH] libcpp, v2: Add support for gnu::offset #embed/__has_embed parameter

2024-08-15 Thread Jakub Jelinek
Hi! Here is a new version of the gnu::offset parameter support with the use of EMBED_PARAMS macro for the registry of parameters. 2024-08-15 Jakub Jelinek libcpp/ * internal.h (struct cpp_embed_params): Add offset member. * directives.cc (EMBED_PARAMS): Add gnu::offset entry.