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
cea05fab
Commit
cea05fab
authored
Feb 15, 1996
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix alloca on NT
From-SVN: r11280
parent
10568ad0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
gcc/config/rs6000/rs6000.md
+14
-3
No files found.
gcc/config/rs6000/rs6000.md
View file @
cea05fab
...
...
@@ -6336,9 +6336,10 @@
if (DEFAULT_ABI == ABI_NT
&& (GET_CODE (operands
[
0
]
) != CONST_INT || INTVAL (operands
[
0
]
) > 4096))
{
emit_library_call (gen_rtx (SYMBOL_REF, Pmode,
\"
__
allocate_stack
\"
), 0,
VOIDmode, 1,
operands
[
0
]
, Pmode);
rtx tmp = gen_reg_rtx (SImode);
emit_library_call_value (gen_rtx (SYMBOL_REF, Pmode,
\"
__
allocate_stack
\"
),
tmp, 0, SImode, 1, operands
[
0
]
, Pmode);
emit_insn (gen_set_sp (tmp));
DONE;
}
...
...
@@ -6363,6 +6364,16 @@
DONE;
}")
;; Marker to indicate that the stack pointer was changed under NT in
;; ways not known to the compiler
(define_insn "set_sp"
[
(set (reg:SI 1)
(unspec
[
(match_operand:SI 0 "register_operand" "r")
]
7))]
""
""
[
(set_attr "length" "0")
]
)
;; These patterns say how to save and restore the stack pointer. We need not
;; save the stack pointer at function level since we are careful to
;; preserve the backchain. At block level, we have to restore the backchain
...
...
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