aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2024-03-19 09:10:26 +0100
committerJakub Jelinek <jakub@redhat.com>2024-03-19 09:10:26 +0100
commit8959ab63f1881a8a4b1921b946d4ea3986bf1063 (patch)
treebf3a4ccf40a9608ef84efba8cdf1bcb8baa5150e /gcc/system.h
parent94c3508c5a14d1948fe3bffa9e16c6f3d9c2836a (diff)
downloadgcc-8959ab63f1881a8a4b1921b946d4ea3986bf1063.zip
gcc-8959ab63f1881a8a4b1921b946d4ea3986bf1063.tar.gz
gcc-8959ab63f1881a8a4b1921b946d4ea3986bf1063.tar.bz2
openmp: Make c_omp_check_loop_binding_exprs diagnostics translatable [PR114364]
c_omp_check_loop_binding_exprs with check_loop_binding_expr was composing diagnostics from a format string with %s that provided additional words (but not keywords). That is a big no no for translations, both because the translator can't choose a different word order and because the %s part wasn't translated at all (would need to use _("...") to get translated), so this patch rewrites it such that the whole messages are in the format strings. 2024-03-19 Jakub Jelinek <jakub@redhat.com> PR c/114364 * c-omp.cc (enum check_loop_binding_expr_ctx): New type. (check_loop_binding_expr): Remove context argument, add ctx argument with check_loop_binding_expr_ctx type at the end. Don't create diagnostic message from multiple pieces. (c_omp_check_loop_binding_exprs): Adjust callers.
Diffstat (limited to 'gcc/system.h')
0 files changed, 0 insertions, 0 deletions