1. Honor TARGET_PROMOTE_PROTOTYPES during RTL expand. 2. Drop targetm.promote_prototypes from C, C++ and Ada frontends. 3. Adjust tests for the C frontend promotion removal. 4. gcc.dg/tree-ssa/pr108357.c fails with the C frontend promotion removal. This is a known issue:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108357 H.J. Lu (6): Honor TARGET_PROMOTE_PROTOTYPES during RTL expand Drop targetm.promote_prototypes from C, C++ and Ada frontends i386: Adjust apx-ndd.c for frontend promotion removal vect-simd-clone-1[6-8][cd].c: Expect in-branch clones for x86 scev-cast.c: Enable for all targets and adjust scan matches ssa-fre-4.c: Enable for all targets and adjust scan match gcc/ada/gcc-interface/utils.cc | 24 ----------- gcc/c/c-decl.cc | 40 ------------------- gcc/c/c-typeck.cc | 19 ++------- gcc/calls.cc | 9 +++++ gcc/cp/call.cc | 10 ----- gcc/cp/typeck.cc | 13 ++---- gcc/gimple.cc | 10 +---- gcc/testsuite/gcc.dg/tree-ssa/scev-cast.c | 5 +-- gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-4.c | 6 +-- .../gcc.dg/vect/vect-simd-clone-16c.c | 5 +-- .../gcc.dg/vect/vect-simd-clone-16d.c | 4 +- .../gcc.dg/vect/vect-simd-clone-17c.c | 5 +-- .../gcc.dg/vect/vect-simd-clone-17d.c | 5 +-- .../gcc.dg/vect/vect-simd-clone-18c.c | 5 +-- .../gcc.dg/vect/vect-simd-clone-18d.c | 5 +-- gcc/testsuite/gcc.target/i386/apx-ndd.c | 9 ++--- gcc/testsuite/gfortran.dg/pr112877-1.f90 | 17 ++++++++ gcc/tree.cc | 14 ------- 18 files changed, 48 insertions(+), 157 deletions(-) create mode 100644 gcc/testsuite/gfortran.dg/pr112877-1.f90 -- 2.48.1