This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CVS head breakage



--On Friday, October 18, 2002 02:18:12 PM -0700 tm <tm@mail.kloo.net> wrote:

  host: i386-linux
target: sh-elf

Looks like someone broke CVS head for sh-elf, and possibly other targets
as well:

Someone was me; it looks like I got away with this on i686 GNU/Linux for
some reason; fixed with the attached patch.

Thanks!

--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com

2002-10-18 Mark Mitchell <mark@codesourcery.com>

* class.c (base_derived_from): Make sure return value is a bool.

Index: class.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/class.c,v
retrieving revision 1.479
diff -c -5 -p -r1.479 class.c
*** class.c 18 Oct 2002 09:26:42 -0000 1.479
--- class.c 18 Oct 2002 21:46:17 -0000
*************** dfs_base_derived_from (tree binfo, void
*** 2223,2233 ****
subobject. */

static bool
base_derived_from (tree derived, tree base)
{
! return dfs_walk (derived, dfs_base_derived_from, NULL, base);
}

typedef struct find_final_overrider_data_s {
/* The function for which we are trying to find a final overrider. */
tree fn;
--- 2223,2233 ----
subobject. */

static bool
base_derived_from (tree derived, tree base)
{
! return dfs_walk (derived, dfs_base_derived_from, NULL, base) != NULL_TREE;
}

typedef struct find_final_overrider_data_s {
/* The function for which we are trying to find a final overrider. */
tree fn;

Attachment: diffs
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]