public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Require GCC >= 5.x.x in gdb.base/utf8-identifiers.exp
@ 2023-04-24 12:48 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2023-04-24 12:48 UTC (permalink / raw)
  To: gdb-cvs

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

commit f20f27e0553b6751c4fa39ce2acb7e0da370ef23
Author: Tom de Vries <tdevries@suse.de>
Date:   Mon Apr 24 14:48:06 2023 +0200

    [gdb/testsuite] Require GCC >= 5.x.x in gdb.base/utf8-identifiers.exp
    
    Test-case gdb.base/utf8-identifiers.exp compiles starting with GCC 5, so
    require this.
    
    Tested on x86_64-linux.

Diff:
---
 gdb/testsuite/gdb.base/utf8-identifiers.exp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gdb/testsuite/gdb.base/utf8-identifiers.exp b/gdb/testsuite/gdb.base/utf8-identifiers.exp
index a6ef80fb0bd..48dce3cdc11 100644
--- a/gdb/testsuite/gdb.base/utf8-identifiers.exp
+++ b/gdb/testsuite/gdb.base/utf8-identifiers.exp
@@ -21,6 +21,11 @@
 
 load_lib completion-support.exp
 
+if { [is_c_compiler_gcc] } {
+    # Gcc fully supports fextended-identifiers starting GCC 5.
+    require {expr [gcc_major_version] >= 5}
+}
+
 standard_testfile
 
 # Enable basic use of UTF-8.  LC_ALL gets reset for each testfile.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-24 12:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-24 12:48 [binutils-gdb] [gdb/testsuite] Require GCC >= 5.x.x in gdb.base/utf8-identifiers.exp Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).