From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1726) id D81B93858CDA; Tue, 26 Mar 2024 18:58:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D81B93858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711479523; bh=tpSjpwGbOltdpImpSUHh+rbI0up5imLEdxAvtafMHXc=; h=From:To:Subject:Date:From; b=IBgX/BNHyl6+OyQWI5RqgVt0FvoIitOoqweyf/YTc+vf/IZz7tFETrr/sFR79wRhx yGwS9lLAjdEBL5AcOKnlmwg61D1QWFNUts/nPJaDV5DJ0QlpE3v3ZzFXD8u7xJkDdJ hpWz5V6uOWHaMXrTlZemwK5OigquunGCMKWZ8dww= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Andrew Burgess To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Revert "gdb/gdbserver: fix some defined but unused function warnings" X-Act-Checkin: binutils-gdb X-Git-Author: Andrew Burgess X-Git-Refname: refs/heads/master X-Git-Oldrev: fc36b8d1e074ed13c97c2d3836f5e060781eebeb X-Git-Newrev: 4c48ff3e92ab45de7b8bb9de30fcc6d70669e2ab Message-Id: <20240326185843.D81B93858CDA@sourceware.org> Date: Tue, 26 Mar 2024 18:58:43 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D4c48ff3e92ab= 45de7b8bb9de30fcc6d70669e2ab commit 4c48ff3e92ab45de7b8bb9de30fcc6d70669e2ab Author: Andrew Burgess Date: Tue Mar 26 18:50:48 2024 +0000 Revert "gdb/gdbserver: fix some defined but unused function warnings" =20 This reverts commit f4c19f89ef43dbce8065532c808e1aeb05d08994. Diff: --- gdb/nat/x86-linux-tdesc.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/gdb/nat/x86-linux-tdesc.c b/gdb/nat/x86-linux-tdesc.c index 8a02f77fa6a..c438dfae84f 100644 --- a/gdb/nat/x86-linux-tdesc.c +++ b/gdb/nat/x86-linux-tdesc.c @@ -160,8 +160,6 @@ static constexpr x86_tdesc_feature x86_linux_all_tdesc_= features[] =3D { { X86_XSTATE_X87, true, false, false } }; =20 -#if defined __i386__ || !defined IN_PROCESS_AGENT - /* Return a compile time constant which is a mask of all the cpu features that are checked for when building an i386 target description. */ =20 @@ -177,10 +175,6 @@ x86_linux_i386_tdesc_feature_mask () return mask; } =20 -#endif /* __i386__ || !IN_PROCESS_AGENT */ - -#ifdef __x86_64__ - /* Return a compile time constant which is a mask of all the cpu features that are checked for when building an amd64 target description. */ =20 @@ -211,8 +205,6 @@ x86_linux_x32_tdesc_feature_mask () return mask; } =20 -#endif /* __x86_64__ */ - /* Return a compile time constant which is a count of the number of cpu features that are checked for when building an i386 target description.= */ =20 @@ -230,8 +222,6 @@ x86_linux_i386_tdesc_count () return (1 << count); } =20 -#if defined __x86_64__ || defined IN_PROCESS_AGENT - /* Return a compile time constant which is a count of the number of cpu features that are checked for when building an amd64 target description= . */ =20 @@ -266,8 +256,6 @@ x86_linux_x32_tdesc_count () return (1 << count); } =20 -#endif /* __x86_64__ || IN_PROCESS_AGENT */ - #ifdef IN_PROCESS_AGENT =20 /* See linux-x86-tdesc.h. */