[binutils-gdb] [gdb/build] Drop -Wno-deprecated-declarations on Solaris

Tom de Vries vries@sourceware.org
Tue Dec 1 21:10:32 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7124c4bdd6550f68487d48e4fc4ab969990d7e8d

commit 7124c4bdd6550f68487d48e4fc4ab969990d7e8d
Author: Tom de Vries <tdevries@suse.de>
Date:   Tue Dec 1 22:10:19 2026 +0100

    [gdb/build] Drop -Wno-deprecated-declarations on Solaris
    
    For Solaris we compile with -Wno-deprecated-declarations to deal with vfork
    deprecation.  Now that that's handled at all three vfork call sites, for all
    hosts, it's no longer necessary.
    
    Drop -Wno-deprecated-declarations for Solaris.
    
    Approved-By: Tom Tromey <tom@tromey.com>

Diff:
---
 gdb/configure         | 4 +---
 gdbserver/configure   | 4 +---
 gdbsupport/configure  | 4 +---
 gdbsupport/warning.m4 | 4 +---
 4 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/gdb/configure b/gdb/configure
index 0e4ed1da98b..b0891b94d07 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -31197,9 +31197,7 @@ case "${host}" in
   *-*-solaris*)
     # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
     # doesn't understand.
-    build_warnings="$build_warnings -Wno-unknown-pragmas"
-    # Solaris 11 <unistd.h> marks vfork deprecated.
-    build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
+    build_warnings="$build_warnings -Wno-unknown-pragmas" ;;
   *)
     # Intentionally left empty.  If a default case is required, add another
     # case statement, as for the Wformat settings.
diff --git a/gdbserver/configure b/gdbserver/configure
index c97bcd0a0ab..5913c5e8fce 100755
--- a/gdbserver/configure
+++ b/gdbserver/configure
@@ -12927,9 +12927,7 @@ case "${host}" in
   *-*-solaris*)
     # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
     # doesn't understand.
-    build_warnings="$build_warnings -Wno-unknown-pragmas"
-    # Solaris 11 <unistd.h> marks vfork deprecated.
-    build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
+    build_warnings="$build_warnings -Wno-unknown-pragmas" ;;
   *)
     # Intentionally left empty.  If a default case is required, add another
     # case statement, as for the Wformat settings.
diff --git a/gdbsupport/configure b/gdbsupport/configure
index a9a98a3e6f6..4feb53b834c 100755
--- a/gdbsupport/configure
+++ b/gdbsupport/configure
@@ -13930,9 +13930,7 @@ case "${host}" in
   *-*-solaris*)
     # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
     # doesn't understand.
-    build_warnings="$build_warnings -Wno-unknown-pragmas"
-    # Solaris 11 <unistd.h> marks vfork deprecated.
-    build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
+    build_warnings="$build_warnings -Wno-unknown-pragmas" ;;
   *)
     # Intentionally left empty.  If a default case is required, add another
     # case statement, as for the Wformat settings.
diff --git a/gdbsupport/warning.m4 b/gdbsupport/warning.m4
index 12decac3534..a8bd1aac8a0 100644
--- a/gdbsupport/warning.m4
+++ b/gdbsupport/warning.m4
@@ -85,9 +85,7 @@ case "${host}" in
   *-*-solaris*)
     # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
     # doesn't understand.
-    build_warnings="$build_warnings -Wno-unknown-pragmas"
-    # Solaris 11 <unistd.h> marks vfork deprecated.
-    build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
+    build_warnings="$build_warnings -Wno-unknown-pragmas" ;;
   *)
     # Intentionally left empty.  If a default case is required, add another
     # case statement, as for the Wformat settings.


More information about the Gdb-cvs mailing list