From 7d02bbefd529d1a7274e474dd74314b1f49c8562 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 13 Apr 1998 07:38:16 -0400 Subject: [PATCH] * tree.h (BINFO_OFFSET_ZEROP): Use integer_zerop. From-SVN: r19199 --- gcc/ChangeLog | 15 +++++++++++++++ gcc/tree.h | 13 ++++++++----- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2b7466fad94b..80339578c1a3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Mon Apr 13 11:31:49 1998 Jason Merrill + + * tree.h (BINFO_OFFSET_ZEROP): Use integer_zerop. + Sun Apr 12 20:55:32 1998 Catherine Moore * invoke.texi (ld options) Include memset requirements @@ -1955,6 +1959,11 @@ Fri Feb 20 16:22:13 1998 Michael Meissner * collect2.c (main): Still handle !do_collecting for non-AIX targets. +1998-02-16 Mark Mitchell + + * toplev.c (rest_of_compilation): Do not defer the output of a + nested function. + Fri Feb 20 10:39:47 1998 Michael Tiemann * ginclude/va-mips.h (va_arg): Remove trailing space after '\' @@ -2240,6 +2249,12 @@ Sat Feb 14 02:02:41 1998 Jeffrey A Law (law@cygnus.com) * varasm.c (assemble_string): Similarly for 'i'. * i386.h (LEGITIMIZE_ADDRESS): Similarly for 'orig_x'. +1998-02-13 Martin von Loewis + + * c-lang.c (lang_print_xnode): New function. + * objc/objc-act.c (lang_print_xnode): Likewise. + * print-tree.c (print_node): Call it + Fri Feb 13 14:38:34 1998 Jim Wilson * dwarf2out.c (decl_scope_node): New type. diff --git a/gcc/tree.h b/gcc/tree.h index 03af577247c3..668ca69250fd 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -847,7 +847,7 @@ struct tree_type #define BINFO_OFFSET(NODE) TREE_VEC_ELT ((NODE), 1) #define TYPE_BINFO_OFFSET(NODE) BINFO_OFFSET (TYPE_BINFO (NODE)) -#define BINFO_OFFSET_ZEROP(NODE) (BINFO_OFFSET (NODE) == integer_zero_node) +#define BINFO_OFFSET_ZEROP(NODE) (integer_zerop (BINFO_OFFSET (NODE))) /* The virtual function table belonging to this basetype. Virtual function tables provide a mechanism for run-time method dispatching. @@ -875,15 +875,18 @@ struct tree_type #define BINFO_BASETYPES(NODE) TREE_VEC_ELT ((NODE), 4) #define TYPE_BINFO_BASETYPES(NODE) TREE_VEC_ELT (TYPE_BINFO (NODE), 4) +/* Accessor macro to get to the Nth basetype of this basetype. */ +#define BINFO_BASETYPE(NODE,N) TREE_VEC_ELT (BINFO_BASETYPES (NODE), (N)) +#define TYPE_BINFO_BASETYPE(NODE,N) BINFO_TYPE (TREE_VEC_ELT (BINFO_BASETYPES (TYPE_BINFO (NODE)), (N))) + /* For a BINFO record describing an inheritance, this yields a pointer to the artificial FIELD_DECL node which contains the "virtual base class pointer" for the given inheritance. */ - #define BINFO_VPTR_FIELD(NODE) TREE_VEC_ELT ((NODE), 5) -/* Accessor macro to get to the Nth basetype of this basetype. */ -#define BINFO_BASETYPE(NODE,N) TREE_VEC_ELT (BINFO_BASETYPES (NODE), (N)) -#define TYPE_BINFO_BASETYPE(NODE,N) BINFO_TYPE (TREE_VEC_ELT (BINFO_BASETYPES (TYPE_BINFO (NODE)), (N))) +/* The size of a base class subobject of this type. */ +#define BINFO_SIZE(NODE) TREE_VEC_ELT ((NODE), 6) +#define TYPE_BINFO_SIZE(NODE) BINFO_SIZE (TYPE_BINFO (NODE)) /* Slot used to build a chain that represents a use of inheritance. For example, if X is derived from Y, and Y is derived from Z, -- 2.47.3