Re: [PATCH v2 1/3] OpenMP: Improve front-end error-checking for "declare variant"

2025-08-25 Thread Tobias Burnus
Sandra Loosemore wrote: This patch fixes a number of problems with parser error checking of "declare variant", especially in the C front end. ... gcc/c/ChangeLog * c-parser.cc (c_finish_omp_declare_variant): Rework diagnostic code. Do not record variant if there are errors. Ma

[PATCH v2 1/3] OpenMP: Improve front-end error-checking for "declare variant"

2025-08-24 Thread Sandra Loosemore
This patch fixes a number of problems with parser error checking of "declare variant", especially in the C front end. The new C testcase unprototyped-variant.c added by this patch used to ICE when gimplifying the call site, at least in part because the variant was being recorded even after it was