diff options
author | Sandra Loosemore <sloosemore@baylibre.com> | 2025-03-27 00:59:37 +0000 |
---|---|---|
committer | Sandra Loosemore <sloosemore@baylibre.com> | 2025-03-27 01:52:57 +0000 |
commit | 876a521a198130bac638d682444e908b331c1185 (patch) | |
tree | a92b5533bc4f05e7cb7e04973bed256de63f32e0 /libgrust/libproc_macro_internal/Makefile.in | |
parent | abd8e46e72c81837d61bc94bd5dfee6b9ef4cde1 (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
I ran into this while backporting my declare variant/dispatch/interop
patch f016ee89955ab4da5fe7ef89368e9437bb5ffb13 to the og14 development
branch. In C dialects prior to C23 (the default on mainline),
functions declared "float f()" and "float g(void)" aren't considered
equivalent for the purpose of the C front end code that checks whether
a type of a variant matches the base function after accounting for the
added interop arguments. Using "(void)" instead of "()" works in all
C dialects as well as C++, so do that.
gcc/testsuite/ChangeLog
* c-c++-common/gomp/append-args-interop.c: Fix declaration of base
function to be correct for pre-C23 dialects.
Diffstat (limited to 'libgrust/libproc_macro_internal/Makefile.in')
0 files changed, 0 insertions, 0 deletions