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
92a4639e
Commit
92a4639e
authored
Jan 24, 2002
by
Nick Clifton
Committed by
Nick Clifton
Jan 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow SImode values to be assigned to the stack pointer.
From-SVN: r49183
parent
467cb2da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletions
+19
-1
gcc/ChangeLog
+5
-0
gcc/config/arm/arm.c
+14
-1
No files found.
gcc/ChangeLog
View file @
92a4639e
2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
* config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
values to be assigned to the stack pointer.
2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
* emit_rtl.c (gen_lowpart_common): Conversion from const_int
...
...
gcc/config/arm/arm.c
View file @
92a4639e
...
...
@@ -9143,7 +9143,20 @@ arm_hard_regno_mode_ok (regno, mode)
it only if it not a special register (SP, LR, PC) and only
if there will be enough (non-special) registers to hold the
entire value. */
return
regno
<
(
SP_REGNUM
-
(
unsigned
)
NUM_REGS
(
mode
));
{
/* As a special exception we allow an SImode value to be
"assigned" to the stack pointer. This is not intended
to actually allow a value to be stored in the SP, but so
that the stack pointer can be referenced from C code like
this:
register char * stack_ptr asm ("sp");
This expression is actually used in newlib... */
if
(
mode
==
SImode
&&
regno
==
SP_REGNUM
)
return
1
;
return
regno
<
(
SP_REGNUM
-
(
unsigned
)
NUM_REGS
(
mode
));
}
if
(
regno
==
FRAME_POINTER_REGNUM
||
regno
==
ARG_POINTER_REGNUM
)
...
...
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