public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] gdb: TYPE_VECTOR -> type::is_vector in amd64-windows-tdep.c
@ 2020-10-05 16:23 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2020-10-05 16:23 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

I get this build failure:

      CXX    amd64-windows-tdep.o
    cc1plus: warning: command-line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    /home/smarchi/src/binutils-gdb/gdb/amd64-windows-tdep.c: In function 'return_value_convention amd64_windows_return_value(gdbarch*, value*, type*, regcache*, gdb_byte*, const gdb_byte*)':
    /home/smarchi/src/binutils-gdb/gdb/amd64-windows-tdep.c:374:6: error: 'TYPE_VECTOR' was not declared in this scope
      374 |  if (TYPE_VECTOR (type) && len == 16)
          |      ^~~~~~~~~~~

TYPE_VECTOR was removed in favor of the type::is_vector method.

gdb/ChangeLog:

	* amd64-windows-tdep.c (amd64_windows_return_value): Use
	type::is_vector instead of TYPE_VECTOR.

Change-Id: I0ce26c3f7a33625761a8dba351c3158464f21b01
---
 gdb/ChangeLog            | 5 +++++
 gdb/amd64-windows-tdep.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 39a2cf352297..183b92970341 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2020-10-05  Simon Marchi  <simon.marchi@efficios.com>
+
+	* amd64-windows-tdep.c (amd64_windows_return_value): Use
+	type::is_vector instead of TYPE_VECTOR.
+
 2020-10-05  Simon Marchi  <simon.marchi@polymtl.ca>
 
 	* auto-load.c (auto_load_objfile_script_1): Don't use
diff --git a/gdb/amd64-windows-tdep.c b/gdb/amd64-windows-tdep.c
index 320388b5a879..48cd00955385 100644
--- a/gdb/amd64-windows-tdep.c
+++ b/gdb/amd64-windows-tdep.c
@@ -371,7 +371,7 @@ amd64_windows_return_value (struct gdbarch *gdbarch, struct value *function,
         break;
       case TYPE_CODE_ARRAY:
 	/* __m128, __m128i and __m128d are returned via XMM0.  */
-	if (TYPE_VECTOR (type) && len == 16)
+	if (type->is_vector () && len == 16)
 	  {
 	    enum type_code code = TYPE_TARGET_TYPE (type)->code ();
 	    if (code == TYPE_CODE_INT || code == TYPE_CODE_FLT)
-- 
2.26.2


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

only message in thread, other threads:[~2020-10-05 16:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-05 16:23 [pushed] gdb: TYPE_VECTOR -> type::is_vector in amd64-windows-tdep.c Simon Marchi

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).