Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
88e42c0b
Commit
88e42c0b
authored
Apr 21, 1996
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* arm/aout.h (ASM_OUTPUT_MI_THUNK): Define.
From-SVN: r11862
parent
c94b3179
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
gcc/config/arm/aout.h
+21
-0
No files found.
gcc/config/arm/aout.h
View file @
88e42c0b
...
...
@@ -261,4 +261,25 @@ do { char dstr[30]; \
#define ASM_COMMENT_START "@"
#endif
/* 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 mi_delta = (DELTA); \
char *mi_op = mi_delta < 0 ? "sub" : "add"; \
unsigned int mi_mask = 0xff000000; \
if (mi_delta < 0) mi_delta = -mi_delta; \
while (mi_mask) \
{ \
if (mi_delta & mi_mask) \
fprintf (FILE, "\t%s %s, %s, #%d\n", \
mi_op, reg_names[0], reg_names[0], mi_delta & mi_mask); \
arm_increase_location (4); \
mi_mask >>= 8; \
} \
fprintf (FILE, "\tldr pc, 1f\n1:"); \
arm_increase_location (4); \
ASM_OUTPUT_INT (FILE, XEXP (DECL_RTL (FUNCTION), 0)); \
} while (0)
#include "arm/arm.h"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment