From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id E09DB3858D28; Mon, 18 Jul 2022 10:48:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E09DB3858D28 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdb/testsuite] Remove duplicate of supports_gnuc X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: 602d2b520dc5917c2353987032c881f79b34d634 X-Git-Newrev: 9a14143c59f9aa7c68a032cd53f0106d5a31a040 Message-Id: <20220718104842.E09DB3858D28@sourceware.org> Date: Mon, 18 Jul 2022 10:48:42 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2022 10:48:43 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D9a14143c59f9= aa7c68a032cd53f0106d5a31a040 commit 9a14143c59f9aa7c68a032cd53f0106d5a31a040 Author: Tom de Vries Date: Mon Jul 18 12:48:39 2022 +0200 [gdb/testsuite] Remove duplicate of supports_gnuc =20 In commit 9d9dd861e98 ("[gdb/testsuite] Fix regression in step-indirect-call-thunk.exp with gcc 7") I accidentally committed a du= plicate of supports_gnuc, which caused: ... DUPLICATE: gdb.base/gdb-caching-proc.exp: supports_gnuc: consistency ... =20 Fix this by removing the duplicate. =20 Tested on x86_64-linux. Diff: --- gdb/testsuite/lib/gdb.exp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index ef68c3ce9fb..a8f25b5f0dd 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -8529,17 +8529,6 @@ gdb_caching_proc supports_gnuc { return [gdb_simple_compile $me $src object ""] } =20 -# Return 1 if compiler supports __GNUC__, otherwise return 0. -gdb_caching_proc supports_gnuc { - set me "supports_gnuc" - set src { - #ifndef __GNUC__ - #error "No gnuc" - #endif - } - return [gdb_simple_compile $me $src object ""] -} - # Return 1 if target supports mpx, otherwise return 0. gdb_caching_proc have_mpx { global srcdir