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
8207e7c6
Commit
8207e7c6
authored
Jan 16, 2001
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor whitespace changes
From-SVN: r39066
parent
0875baa0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
26 deletions
+17
-26
gcc/config/alpha/alpha.c
+15
-25
gcc/function.c
+2
-1
No files found.
gcc/config/alpha/alpha.c
View file @
8207e7c6
...
@@ -4695,10 +4695,8 @@ alpha_expand_prologue ()
...
@@ -4695,10 +4695,8 @@ alpha_expand_prologue ()
}
}
if
(
frame_size
!=
0
)
if
(
frame_size
!=
0
)
{
FRP
(
emit_insn
(
gen_adddi3
(
stack_pointer_rtx
,
stack_pointer_rtx
,
FRP
(
emit_insn
(
gen_adddi3
(
stack_pointer_rtx
,
stack_pointer_rtx
,
GEN_INT
(
-
frame_size
))));
GEN_INT
(
-
frame_size
))));
}
}
}
else
else
{
{
...
@@ -4822,28 +4820,24 @@ alpha_expand_prologue ()
...
@@ -4822,28 +4820,24 @@ alpha_expand_prologue ()
if
(
TARGET_OPEN_VMS
)
if
(
TARGET_OPEN_VMS
)
{
{
if
(
!
vms_is_stack_procedure
)
if
(
!
vms_is_stack_procedure
)
{
/* Register frame procedures fave the fp. */
/* Register frame procedures fave the fp. */
FRP
(
emit_move_insn
(
gen_rtx_REG
(
DImode
,
vms_save_fp_regno
),
FRP
(
emit_move_insn
(
gen_rtx_REG
(
DImode
,
vms_save_fp_regno
),
hard_frame_pointer_rtx
));
hard_frame_pointer_rtx
));
}
if
(
vms_base_regno
!=
REG_PV
)
if
(
vms_base_regno
!=
REG_PV
)
FRP
(
emit_move_insn
(
gen_rtx_REG
(
DImode
,
vms_base_regno
),
FRP
(
emit_move_insn
(
gen_rtx_REG
(
DImode
,
vms_base_regno
),
gen_rtx_REG
(
DImode
,
REG_PV
)));
gen_rtx_REG
(
DImode
,
REG_PV
)));
if
(
vms_unwind_regno
==
HARD_FRAME_POINTER_REGNUM
)
if
(
vms_unwind_regno
==
HARD_FRAME_POINTER_REGNUM
)
{
FRP
(
emit_move_insn
(
hard_frame_pointer_rtx
,
stack_pointer_rtx
));
FRP
(
emit_move_insn
(
hard_frame_pointer_rtx
,
stack_pointer_rtx
));
}
/* If we have to allocate space for outgoing args, do it now. */
/* If we have to allocate space for outgoing args, do it now. */
if
(
current_function_outgoing_args_size
!=
0
)
if
(
current_function_outgoing_args_size
!=
0
)
{
FRP
(
emit_move_insn
FRP
(
emit_move_insn
(
stack_pointer_rtx
,
(
stack_pointer_rtx
,
plus_constant
(
hard_frame_pointer_rtx
,
plus_constant
(
hard_frame_pointer_rtx
,
-
ALPHA_ROUND
(
current_function_outgoing_args_size
))));
-
(
ALPHA_ROUND
}
(
current_function_outgoing_args_size
)))));
}
}
else
else
{
{
...
@@ -4853,12 +4847,10 @@ alpha_expand_prologue ()
...
@@ -4853,12 +4847,10 @@ alpha_expand_prologue ()
if
(
TARGET_CAN_FAULT_IN_PROLOGUE
)
if
(
TARGET_CAN_FAULT_IN_PROLOGUE
)
FRP
(
emit_move_insn
(
hard_frame_pointer_rtx
,
stack_pointer_rtx
));
FRP
(
emit_move_insn
(
hard_frame_pointer_rtx
,
stack_pointer_rtx
));
else
else
{
/* This must always be the last instruction in the
/* This must always be the last instruction in the
prologue, thus we emit a special move + clobber. */
prologue, thus we emit a special move + clobber. */
FRP
(
emit_insn
(
gen_init_fp
(
hard_frame_pointer_rtx
,
FRP
(
emit_insn
(
gen_init_fp
(
hard_frame_pointer_rtx
,
stack_pointer_rtx
,
sa_reg
)));
stack_pointer_rtx
,
sa_reg
)));
}
}
}
}
}
...
@@ -5128,9 +5120,7 @@ alpha_expand_epilogue ()
...
@@ -5128,9 +5120,7 @@ alpha_expand_epilogue ()
if
((
TARGET_OPEN_VMS
if
((
TARGET_OPEN_VMS
&&
vms_unwind_regno
==
HARD_FRAME_POINTER_REGNUM
)
&&
vms_unwind_regno
==
HARD_FRAME_POINTER_REGNUM
)
||
(
!
TARGET_OPEN_VMS
&&
frame_pointer_needed
))
||
(
!
TARGET_OPEN_VMS
&&
frame_pointer_needed
))
{
FRP
(
emit_move_insn
(
stack_pointer_rtx
,
hard_frame_pointer_rtx
));
FRP
(
emit_move_insn
(
stack_pointer_rtx
,
hard_frame_pointer_rtx
));
}
/* Cope with very large offsets to the register save area. */
/* Cope with very large offsets to the register save area. */
if
(
reg_offset
+
sa_size
>
0x8000
)
if
(
reg_offset
+
sa_size
>
0x8000
)
...
@@ -5235,7 +5225,7 @@ alpha_expand_epilogue ()
...
@@ -5235,7 +5225,7 @@ alpha_expand_epilogue ()
if
(
fp_is_frame_pointer
)
if
(
fp_is_frame_pointer
)
{
{
emit_insn
(
gen_blockage
());
emit_insn
(
gen_blockage
());
mem
=
gen_rtx_MEM
(
DImode
,
plus_constant
(
sa_reg
,
fp_offset
));
mem
=
gen_rtx_MEM
(
DImode
,
plus_constant
(
sa_reg
,
fp_offset
));
MEM_ALIAS_SET
(
mem
)
=
alpha_sr_alias_set
;
MEM_ALIAS_SET
(
mem
)
=
alpha_sr_alias_set
;
FRP
(
emit_move_insn
(
hard_frame_pointer_rtx
,
mem
));
FRP
(
emit_move_insn
(
hard_frame_pointer_rtx
,
mem
));
}
}
...
...
gcc/function.c
View file @
8207e7c6
...
@@ -7039,7 +7039,8 @@ keep_stack_depressed (seq)
...
@@ -7039,7 +7039,8 @@ keep_stack_depressed (seq)
/* If the epilogue is just a single instruction, it's OK as is */
/* If the epilogue is just a single instruction, it's OK as is */
if
(
GET_CODE
(
seq
)
!=
SEQUENCE
)
return
;
if
(
GET_CODE
(
seq
)
!=
SEQUENCE
)
return
;
/* Scan all insns in SEQ looking for ones that modified the stack
/* Scan all insns in SEQ looking for ones that modified the stack
pointer. Record if it modified the stack pointer by copying it
pointer. Record if it modified the stack pointer by copying it
...
...
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