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
61b2fbe7
Commit
61b2fbe7
authored
Aug 06, 1996
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make STACK_BOUNDARY always 64 bits
From-SVN: r12599
parent
3d348653
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
gcc/config/rs6000/rs6000.c
+5
-1
gcc/config/rs6000/sysv4.h
+7
-2
No files found.
gcc/config/rs6000/rs6000.c
View file @
61b2fbe7
...
@@ -2994,6 +2994,10 @@ rs6000_makes_calls ()
...
@@ -2994,6 +2994,10 @@ rs6000_makes_calls ()
old SP. To support calls through pointers, we also allocate a
old SP. To support calls through pointers, we also allocate a
fixed slot to store the TOC, -8 off the old SP. */
fixed slot to store the TOC, -8 off the old SP. */
#ifndef ABI_STACK_BOUNDARY
#define ABI_STACK_BOUNDARY STACK_BOUNDARY
#endif
rs6000_stack_t
*
rs6000_stack_t
*
rs6000_stack_info
()
rs6000_stack_info
()
{
{
...
@@ -3108,7 +3112,7 @@ rs6000_stack_info ()
...
@@ -3108,7 +3112,7 @@ rs6000_stack_info ()
+
info_ptr
->
varargs_size
+
info_ptr
->
varargs_size
+
info_ptr
->
fixed_size
);
+
info_ptr
->
fixed_size
);
info_ptr
->
total_size
=
ALIGN
(
total_raw_size
,
STACK_BOUNDARY
/
BITS_PER_UNIT
);
info_ptr
->
total_size
=
ALIGN
(
total_raw_size
,
ABI_
STACK_BOUNDARY
/
BITS_PER_UNIT
);
/* Determine if we need to allocate any stack frame.
/* Determine if we need to allocate any stack frame.
For AIX We need to push the stack if a frame pointer is needed (because
For AIX We need to push the stack if a frame pointer is needed (because
...
...
gcc/config/rs6000/sysv4.h
View file @
61b2fbe7
...
@@ -383,9 +383,14 @@ do { \
...
@@ -383,9 +383,14 @@ do { \
#undef STRICT_ALIGNMENT
#undef STRICT_ALIGNMENT
#define STRICT_ALIGNMENT (TARGET_STRICT_ALIGN || TARGET_LITTLE_ENDIAN)
#define STRICT_ALIGNMENT (TARGET_STRICT_ALIGN || TARGET_LITTLE_ENDIAN)
/* Align stack to 8 byte boundaries for eabi, 16 byte boundaries for System V.4 */
/* Alignment in bits of the stack boundary. Note, in order to allow building
one set of libraries with -mno-eabi instead of eabi libraries and non-eabi
versions, just use 64 as the stack boundary. */
#undef STACK_BOUNDARY
#undef STACK_BOUNDARY
#define STACK_BOUNDARY ((TARGET_EABI) ? 64 : 128)
#define STACK_BOUNDARY 64
/* Real stack boundary as mandated by the appropriate ABI */
#define ABI_STACK_BOUNDARY ((TARGET_EABI) ? 64 : 128)
/* No data type wants to be aligned rounder than this. */
/* No data type wants to be aligned rounder than this. */
#undef BIGGEST_ALIGNMENT
#undef BIGGEST_ALIGNMENT
...
...
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