Commit 3e8d8d4b by Jason Merrill

x

From-SVN: r14446
parent 6373aa3a
......@@ -1538,3 +1538,23 @@ extern char *i960_output_move_quad ();
/* Defined in reload.c, and used in insn-recog.c. */
extern int rtx_equal_function_value_matters;
/* Output code to add DELTA to the first argument, and then jump to FUNCTION.
Used for C++ multiple inheritance. */
#define ASM_OUTPUT_MI_THUNK(FILE, THUNK_FNDECL, DELTA, FUNCTION) \
do { \
int d = (DELTA); \
if (d < 0 && d > -32) \
fprintf (FILE, "\tsubo %d,g0,g0\n", -d); \
else if (d > 0 && d < 32) \
fprintf (FILE, "\taddo %d,g0,g0\n", d); \
else \
{ \
fprintf (FILE, "\tldconst %d,r5\n", d); \
fprintf (FILE, "\taddo r5,g0,g0\n"); \
} \
fprintf (FILE, "\tbx "); \
assemble_name \
(FILE, IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (FUNCTION))); \
fprintf (FILE, "\n"); \
} while (0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment