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
b02ab63a
Commit
b02ab63a
authored
Jan 15, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
({,round_}trampoline_address): TRAMPOLINE_ALIGNMENT is in bits, not
bytes. From-SVN: r10993
parent
e2056677
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
gcc/function.c
+5
-4
No files found.
gcc/function.c
View file @
b02ab63a
/* Expands front end tree to back end RTL for GNU C-Compiler
Copyright (C) 1987, 88, 89, 91-9
4, 1995
Free Software Foundation, Inc.
Copyright (C) 1987, 88, 89, 91-9
5, 1996
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -4529,7 +4529,8 @@ trampoline_address (function)
/* If rounding needed, allocate extra space
to ensure we have TRAMPOLINE_SIZE bytes left after rounding up. */
#ifdef TRAMPOLINE_ALIGNMENT
#define TRAMPOLINE_REAL_SIZE (TRAMPOLINE_SIZE + TRAMPOLINE_ALIGNMENT - 1)
#define TRAMPOLINE_REAL_SIZE \
(TRAMPOLINE_SIZE + (TRAMPOLINE_ALIGNMENT / BITS_PER_UNIT) - 1)
#else
#define TRAMPOLINE_REAL_SIZE (TRAMPOLINE_SIZE)
#endif
...
...
@@ -4577,10 +4578,10 @@ round_trampoline_addr (tramp)
/* Round address up to desired boundary. */
rtx
temp
=
gen_reg_rtx
(
Pmode
);
temp
=
expand_binop
(
Pmode
,
add_optab
,
tramp
,
GEN_INT
(
TRAMPOLINE_ALIGNMENT
-
1
),
GEN_INT
(
TRAMPOLINE_ALIGNMENT
/
BITS_PER_UNIT
-
1
),
temp
,
0
,
OPTAB_LIB_WIDEN
);
tramp
=
expand_binop
(
Pmode
,
and_optab
,
temp
,
GEN_INT
(
-
TRAMPOLINE_ALIGNMENT
),
GEN_INT
(
-
TRAMPOLINE_ALIGNMENT
/
BITS_PER_UNIT
),
temp
,
0
,
OPTAB_LIB_WIDEN
);
#endif
return
tramp
;
...
...
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