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
d9d0de41
Commit
d9d0de41
authored
Feb 08, 1995
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(nonlocal_goto): Use Pmode instead of SImode.
From-SVN: r8896
parent
cd5fb1ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gcc/config/sparc/sparc.md
+4
-4
No files found.
gcc/config/sparc/sparc.md
View file @
d9d0de41
...
...
@@ -5146,7 +5146,7 @@
"jmp %a0%#"
[
(set_attr "type" "uncond_branch")
]
)
;; ???
This doesn't handle v9 yet. It also d
oesn't work with -mflat.
;; ???
D
oesn't work with -mflat.
(define_expand "nonlocal_goto"
[
(match_operand:SI 0 "general_operand" "")
(match_operand:SI 1 "general_operand" "")
...
...
@@ -5163,11 +5163,11 @@
register. Thus we must copy operands
[
0
]
into a register if it isn't
already one.
*
/
if (GET_CODE (operands
[
0
]
) != REG)
operands
[
0
]
= force_reg (
SI
mode, operands
[
0
]
);
operands
[
0
]
= force_reg (
P
mode, operands
[
0
]
);
emit_move_insn (virtual_stack_vars_rtx, operands
[
0
]
);
/
*
Find the containing function's current nonlocal goto handler,
which will do any cleanups and then jump to the label.
*
/
emit_move_insn (gen_rtx (REG,
SI
mode, 8), operands
[
1
]
);
emit_move_insn (gen_rtx (REG,
P
mode, 8), operands
[
1
]
);
/
*
Restore %fp from stack pointer value for containing function.
The restore insn that follows will move this to %sp,
and reload the appropriate value into %fp.
*
/
...
...
@@ -5179,7 +5179,7 @@
emit_insn (gen_rtx (USE, VOIDmode, frame_pointer_rtx));
emit_insn (gen_rtx (USE, VOIDmode, stack_pointer_rtx));
emit_insn (gen_rtx (USE, VOIDmode, static_chain_rtx));
emit_insn (gen_rtx (USE, VOIDmode, gen_rtx (REG,
SI
mode, 8)));
emit_insn (gen_rtx (USE, VOIDmode, gen_rtx (REG,
P
mode, 8)));
/
* Return, restoring reg window and jumping to goto handler. *
/
emit_insn (gen_goto_handler_and_restore ());
DONE;
...
...
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