Changes from v6: 1. Drop the PR middle-end/14907 fix for GCC 15. 2. Add a testcase for PR middle-end/118288.
Changes from v5: 1. Properly check x86 targets in gfortran.dg/pr112877-1.f90. Changes from v4: 1. Rename gcc/testsuite/gfortran.dg/pr14907-1.f90 to gcc/testsuite/gfortran.dg/pr112877-1.f90 2. Mention https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48274 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112877 Changes from v3: 1. Split improvement of outgoing integer argument promotion into 3 patches. 2. Drop the expand_promote_outgoing_argument change. The bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117547 should be fixed differently in the x86 backend. 3. Update testcase adjustments. 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/crc-pr118288.c | 11 +++++ 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 ------- 19 files changed, 59 insertions(+), 157 deletions(-) create mode 100644 gcc/testsuite/gcc.dg/crc-pr118288.c create mode 100644 gcc/testsuite/gfortran.dg/pr112877-1.f90 -- 2.47.1