C: Cleanups for function comptypes hierarchy
This commit refactors the comptypes function hierarchy in the C language frontend to improve code clarity and correctness.
This commit refactors the comptypes function hierarchy in the C language frontend of GCC. It changes functions to return a boolean value to indicate attribute mismatches, simplifying the code and removing the need for wrapper functions. Additionally, it corrects a faulty condition check, enhancing the reliability of type compatibility assessments.
In Details
Refactors the comptypes hierarchy in c-typeck.cc to return booleans instead of integers, streamlining the code and correcting a condition check in comp_target_types.
For Context
This commit improves the internal workings of GCC's C language support. The comptypes functions are responsible for determining if two types are compatible with each other during compilation. This change makes the code easier to understand and maintain, which can lead to fewer bugs and better overall performance.