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
a4417a86
Commit
a4417a86
authored
Dec 19, 1995
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(return_address_pointer_rtx): New global variable.
(gen_rtx, init_emit_once): Add support for it. From-SVN: r10817
parent
8e05e5dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
gcc/emit-rtl.c
+14
-0
No files found.
gcc/emit-rtl.c
View file @
a4417a86
...
...
@@ -159,6 +159,10 @@ rtx static_chain_rtx; /* (REG:Pmode STATIC_CHAIN_REGNUM) */
rtx
static_chain_incoming_rtx
;
/* (REG:Pmode STATIC_CHAIN_INCOMING_REGNUM) */
rtx
pic_offset_table_rtx
;
/* (REG:Pmode PIC_OFFSET_TABLE_REGNUM) */
/* This is used to implement __builtin_return_address for some machines.
See for instance the MIPS port. */
rtx
return_address_pointer_rtx
;
/* (REG:Pmode RETURN_ADDRESS_POINTER_REGNUM) */
rtx
virtual_incoming_args_rtx
;
/* (REG:Pmode VIRTUAL_INCOMING_ARGS_REGNUM) */
rtx
virtual_stack_vars_rtx
;
/* (REG:Pmode VIRTUAL_STACK_VARS_REGNUM) */
rtx
virtual_stack_dynamic_rtx
;
/* (REG:Pmode VIRTUAL_STACK_DYNAMIC_REGNUM) */
...
...
@@ -345,6 +349,11 @@ gen_rtx VPROTO((enum rtx_code code, enum machine_mode mode, ...))
&&
!
reload_in_progress
)
return
arg_pointer_rtx
;
#endif
#ifdef RETURN_ADDRESS_POINTER_REGNUM
if
(
return_address_pointer_rtx
&&
regno
==
RETURN_ADDRESS_POINTER_REGNUM
&&
mode
==
Pmode
&&
!
reload_in_progress
)
return
return_address_pointer_rtx
;
#endif
if
(
stack_pointer_rtx
&&
regno
==
STACK_POINTER_REGNUM
&&
mode
==
Pmode
&&
!
reload_in_progress
)
return
stack_pointer_rtx
;
...
...
@@ -3392,6 +3401,11 @@ init_emit_once (line_numbers)
else
arg_pointer_rtx
=
gen_rtx
(
REG
,
Pmode
,
ARG_POINTER_REGNUM
);
#ifdef RETURN_ADDRESS_POINTER_REGNUM
return_address_pointer_rtx
=
gen_rtx
(
REG
,
Pmode
,
RETURN_ADDRESS_POINTER_REGNUM
);
#endif
/* Create the virtual registers. Do so here since the following objects
might reference them. */
...
...
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