>From 4916e4604e109259a177c1a9d36488b8be437e98 Mon Sep 17 00:00:00 2001
From: Zhongteng Gui <[email protected]>
Date: Thu, 22 Oct 2026 15:59:51 +0800
Subject: [PATCH 2/4] i386: Remove outdated message from GCC 4.4 (complex float
 ABI) [PR128083]

This removes "the ABI of passing structure with %<complex float%> member
has changed in GCC 4.4".  It has been 15+ years since then.

        PR target/128083

gcc/ChangeLog:

        * config/i386/i386.cc (classify_argument): Don't warn for
        complex float ABI change from GCC 4.4.

gcc/testsuite/ChangeLog:

        * gcc.target/i386/pr39678.c: Remove dg-message.

Signed-off-by: Zhongteng Gui <[email protected]>
---
 gcc/config/i386/i386.cc                 | 9 ---------
 gcc/testsuite/gcc.target/i386/pr39678.c | 2 +-
 2 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc
index e68246a74d8..41df78f432e 100644
--- a/gcc/config/i386/i386.cc
+++ b/gcc/config/i386/i386.cc
@@ -2641,15 +2641,6 @@ classify_argument (machine_mode mode, const_tree type,
        return 1;
       else
        {
-         static bool warned;
-
-         if (!warned && warn_psabi)
-           {
-             warned = true;
-             inform (input_location,
-                     "the ABI of passing structure with %<complex float%>"
-                     " member has changed in GCC 4.4");
-           }
          classes[1] = X86_64_SSESF_CLASS;
          return 2;
        }
diff --git a/gcc/testsuite/gcc.target/i386/pr39678.c 
b/gcc/testsuite/gcc.target/i386/pr39678.c
index c94c002f14b..656ac68aeb5 100644
--- a/gcc/testsuite/gcc.target/i386/pr39678.c
+++ b/gcc/testsuite/gcc.target/i386/pr39678.c
@@ -10,7 +10,7 @@ struct X {
 
 struct X
 foo (float *p)
-{ /* { dg-message "note: the ABI of passing structure with 'complex float' 
member has changed in GCC 4.4" } */
+{
   struct X x;
   x.c = -3;
   __real x.val = p[0];
-- 
2.56.0.windows.2

Reply via email to