From: Richard Kenner Date: Mon, 6 May 1996 14:00:02 +0000 (-0400) Subject: (ASM_OUTPUT_MI_THUNK): Define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0140d3ee3a5ec625b83a0eaf87d6aa6ae0554b38;p=gcc.git (ASM_OUTPUT_MI_THUNK): Define. From-SVN: r11937 --- diff --git a/gcc/config/vax/vax.h b/gcc/config/vax/vax.h index fd00fa75e7a..12a241eb023 100644 --- a/gcc/config/vax/vax.h +++ b/gcc/config/vax/vax.h @@ -1,5 +1,5 @@ /* Definitions of target machine for GNU compiler. Vax version. - Copyright (C) 1987, 88, 91, 93, 94, 95 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 91, 93, 94, 95, 1996 Free Software Foundation, Inc. This file is part of GNU CC. @@ -1203,6 +1203,21 @@ do { char dstr[30]; \ fprintf (FILE, "___vax_%c_doubles:\n", ASM_DOUBLE_CHAR); \ } while (0) +/* Output code to add DELTA to the first argument, and then jump to FUNCTION. + Used for C++ multiple inheritance. + .mask ^m #conservative entry mask + addl2 $DELTA, 4(ap) #adjust first argument + jmp FUNCTION+2 #jump beyond FUNCTION's entry mask + */ +#define ASM_OUTPUT_MI_THUNK(FILE, THUNK_FNDECL, DELTA, FUNCTION) \ +do { \ + fprintf (FILE, "\t.word 0x0ffc\n"); \ + fprintf (FILE, "\taddl2 $%d,4(ap)\n", DELTA); \ + fprintf (FILE, "\tjmp "); \ + assemble_name (FILE, IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (FUNCTION))); \ + fprintf (FILE, "+2\n"); \ +} while (0) + /* Define the parentheses used to group arithmetic operations in assembler code. */