From: Jason Merrill Date: Tue, 1 Sep 1998 13:17:36 +0000 (+0000) Subject: decl2.c (output_vtable_inherit): Use %cDIGIT in the operands. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59fa060f42bd2d31a1a15ea578fa500935579e7e;p=gcc.git decl2.c (output_vtable_inherit): Use %cDIGIT in the operands. * decl2.c (output_vtable_inherit): Use %cDIGIT in the operands. * class.c (build_vtable_entry_ref): Likewise. From-SVN: r22161 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c19dcd7e272..7873e86b04e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1998-09-01 Jason Merrill + + * decl2.c (output_vtable_inherit): Use %cDIGIT in the operands. + * class.c (build_vtable_entry_ref): Likewise. + 1998-09-01 Mark Mitchell * cp-tree.h (DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION): New macro. diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 75ae6e3c13b..bcdf9571d47 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -431,7 +431,7 @@ build_vtable_entry (delta, pfn) /* We want to give the assembler the vtable identifier as well as the offset to the function pointer. So we generate - __asm__ __volatile__ (".vtable_entry %0, %1" + __asm__ __volatile__ (".vtable_entry %c0, %c1" : : "s"(&class_vtable), "i"((long)&vtbl[idx].pfn - (long)&vtbl[0])); */ @@ -439,7 +439,7 @@ static void build_vtable_entry_ref (basetype, vtbl, idx) tree basetype, vtbl, idx; { - static char asm_stmt[] = ".vtable_entry %0, %1"; + static char asm_stmt[] = ".vtable_entry %c0, %c1"; tree s, i, i2; s = build_unary_op (ADDR_EXPR, TYPE_BINFO_VTABLE (basetype), 0); diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 1359475f486..f5c1031502d 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2657,8 +2657,7 @@ finish_prevtable_vardecl (prev, vars) } /* We need to describe to the assembler the relationship between - a vtable and the vtable of the parent class. It is not - straightforward how to get this during multiple inheritance. */ + a vtable and the vtable of the parent class. */ static void output_vtable_inherit (vars) @@ -2681,7 +2680,7 @@ output_vtable_inherit (vars) else my_friendly_abort (980826); - output_asm_insn (".vtable_inherit %0, %1", op); + output_asm_insn (".vtable_inherit %c0, %c1", op); } static int