aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-decl.cc
diff options
context:
space:
mode:
authorMartin Uecker <uecker@tugraz.at>2022-12-21 10:52:34 +0100
committerMartin Uecker <uecker@tugraz.at>2023-09-12 06:49:46 +0200
commit26da1970a4011893cdf3f38793dc856e2a88be25 (patch)
tree3cf7e7049868cf60207cea6e4a610e6c9c63bdf1 /gcc/c/c-decl.cc
parentc1e4efd8ae3488c5a2c11ac42d4670b67e1f7bf4 (diff)
downloadgcc-26da1970a4011893cdf3f38793dc856e2a88be25.zip
gcc-26da1970a4011893cdf3f38793dc856e2a88be25.tar.gz
gcc-26da1970a4011893cdf3f38793dc856e2a88be25.tar.bz2
c: reorganize recursive type checking
Reorganize recursive type checking to use a structure to store information collected during the recursion and returned to the caller (warning_needed, enum_and_init_p, different_types_p). gcc/c: * c-typeck.cc (struct comptypes_data): Add structure. (tagged_types_tu_compatible_p, function_types_compatible_p, type_lists_compatible_p, comptypes_internal): Add structure to interface, change return type to bool, and adapt calls. (comptarget_types): Change return type too bool. (comptypes, comptypes_check_enum_int, comptypes_check_different_types): Adapt calls.
Diffstat (limited to 'gcc/c/c-decl.cc')
0 files changed, 0 insertions, 0 deletions