]> git.ipfire.org Git - thirdparty/gcc.git/commit
Drop targetm.promote_prototypes from C, C++ and Ada frontends
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 20 Nov 2024 23:54:35 +0000 (07:54 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 27 Apr 2025 02:36:56 +0000 (10:36 +0800)
commita670ebde3995481225ec62b29686ec07a21e5c10
tree74b8e87e9a15b71a1fb205eb8ddbe60578232800
parent78db4753c9646a372512e6a951fced12f74de0bc
Drop targetm.promote_prototypes from C, C++ and Ada frontends

Remove the targetm.calls.promote_prototypes call from C, C++ and Ada
frontends.

gcc/

PR c/48274
PR middle-end/112877
PR middle-end/118288
* gimple.cc (gimple_builtin_call_types_compatible_p): Remove the
targetm.calls.promote_prototypes call.
* tree.cc (tree_builtin_call_types_compatible_p): Likewise.

gcc/ada/

PR middle-end/112877
* gcc-interface/utils.cc (create_param_decl): Remove the
targetm.calls.promote_prototypes call.

gcc/c/

PR c/48274
PR middle-end/112877
PR middle-end/118288
* c-decl.cc (start_decl): Remove the
targetm.calls.promote_prototypes call.
(store_parm_decls_oldstyle): Likewise.
(finish_function): Likewise.
* c-typeck.cc (convert_argument): Likewise.
(c_safe_arg_type_equiv_p): Likewise.

gcc/cp/

PR middle-end/112877
* call.cc (type_passed_as): Remove the
targetm.calls.promote_prototypes call.
(convert_for_arg_passing): Likewise.
* typeck.cc (cxx_safe_arg_type_equiv_p): Likewise.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gcc/ada/gcc-interface/utils.cc
gcc/c/c-decl.cc
gcc/c/c-typeck.cc
gcc/cp/call.cc
gcc/cp/typeck.cc
gcc/gimple.cc
gcc/tree.cc