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
6a7b00ad
Commit
6a7b00ad
authored
Jul 08, 2005
by
Kazuhiro Inaoka
Committed by
Nick Clifton
Jul 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config/m32r/m32r.c (m32r_output_function_epilogue): Care for a large stack #
frame at epilogue. From-SVN: r101759
parent
0921bc44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
gcc/ChangeLog
+3
-0
gcc/config/m32r/m32r.c
+18
-2
No files found.
gcc/ChangeLog
View file @
6a7b00ad
...
@@ -4,6 +4,9 @@
...
@@ -4,6 +4,9 @@
(ENDFILE_SPEC): Likewise.
(ENDFILE_SPEC): Likewise.
* config/m32r/m32r.h (ASM_SPEC): Likewise.
* config/m32r/m32r.h (ASM_SPEC): Likewise.
* config/m32r/m32r.c (m32r_output_function_epilogue): Care for
a large stack frame at epilogue.
2005-07-08 David Billinghurst <David.Billinghurst@riotinto.com>
2005-07-08 David Billinghurst <David.Billinghurst@riotinto.com>
* final.c: Include sdbout.h when required.
* final.c: Include sdbout.h when required.
...
...
gcc/config/m32r/m32r.c
View file @
6a7b00ad
...
@@ -1532,11 +1532,19 @@ m32r_output_function_epilogue (FILE * file, HOST_WIDE_INT size ATTRIBUTE_UNUSED)
...
@@ -1532,11 +1532,19 @@ m32r_output_function_epilogue (FILE * file, HOST_WIDE_INT size ATTRIBUTE_UNUSED)
else
if
(
reg_offset
<
32768
)
else
if
(
reg_offset
<
32768
)
fprintf
(
file
,
"
\t
add3 %s,%s,%s%d
\n
"
,
fprintf
(
file
,
"
\t
add3 %s,%s,%s%d
\n
"
,
sp_str
,
sp_str
,
IMMEDIATE_PREFIX
,
reg_offset
);
sp_str
,
sp_str
,
IMMEDIATE_PREFIX
,
reg_offset
);
else
else
if
(
reg_offset
<
(
1
<<
24
))
fprintf
(
file
,
"
\t
ld24 %s,%s%d
\n\t
add %s,%s
\n
"
,
fprintf
(
file
,
"
\t
ld24 %s,%s%d
\n\t
add %s,%s
\n
"
,
reg_names
[
PROLOGUE_TMP_REGNUM
],
reg_names
[
PROLOGUE_TMP_REGNUM
],
IMMEDIATE_PREFIX
,
reg_offset
,
IMMEDIATE_PREFIX
,
reg_offset
,
sp_str
,
reg_names
[
PROLOGUE_TMP_REGNUM
]);
sp_str
,
reg_names
[
PROLOGUE_TMP_REGNUM
]);
else
fprintf
(
file
,
"
\t
seth %s,%s%d
\n\t
or3 %s,%s,%s%d
\n\t
add %s,%s
\n
"
,
reg_names
[
PROLOGUE_TMP_REGNUM
],
IMMEDIATE_PREFIX
,
reg_offset
>>
16
,
reg_names
[
PROLOGUE_TMP_REGNUM
],
reg_names
[
PROLOGUE_TMP_REGNUM
],
IMMEDIATE_PREFIX
,
reg_offset
&
0xffff
,
sp_str
,
reg_names
[
PROLOGUE_TMP_REGNUM
]);
}
}
else
if
(
frame_pointer_needed
)
else
if
(
frame_pointer_needed
)
{
{
...
@@ -1547,11 +1555,19 @@ m32r_output_function_epilogue (FILE * file, HOST_WIDE_INT size ATTRIBUTE_UNUSED)
...
@@ -1547,11 +1555,19 @@ m32r_output_function_epilogue (FILE * file, HOST_WIDE_INT size ATTRIBUTE_UNUSED)
else
if
(
reg_offset
<
32768
)
else
if
(
reg_offset
<
32768
)
fprintf
(
file
,
"
\t
add3 %s,%s,%s%d
\n
"
,
fprintf
(
file
,
"
\t
add3 %s,%s,%s%d
\n
"
,
sp_str
,
fp_str
,
IMMEDIATE_PREFIX
,
reg_offset
);
sp_str
,
fp_str
,
IMMEDIATE_PREFIX
,
reg_offset
);
else
else
if
(
reg_offset
<
(
1
<<
24
))
fprintf
(
file
,
"
\t
ld24 %s,%s%d
\n\t
add %s,%s
\n
"
,
fprintf
(
file
,
"
\t
ld24 %s,%s%d
\n\t
add %s,%s
\n
"
,
reg_names
[
PROLOGUE_TMP_REGNUM
],
reg_names
[
PROLOGUE_TMP_REGNUM
],
IMMEDIATE_PREFIX
,
reg_offset
,
IMMEDIATE_PREFIX
,
reg_offset
,
sp_str
,
reg_names
[
PROLOGUE_TMP_REGNUM
]);
sp_str
,
reg_names
[
PROLOGUE_TMP_REGNUM
]);
else
fprintf
(
file
,
"
\t
seth %s,%s%d
\n\t
or3 %s,%s,%s%d
\n\t
add %s,%s
\n
"
,
reg_names
[
PROLOGUE_TMP_REGNUM
],
IMMEDIATE_PREFIX
,
reg_offset
>>
16
,
reg_names
[
PROLOGUE_TMP_REGNUM
],
reg_names
[
PROLOGUE_TMP_REGNUM
],
IMMEDIATE_PREFIX
,
reg_offset
&
0xffff
,
sp_str
,
reg_names
[
PROLOGUE_TMP_REGNUM
]);
}
}
else
else
gcc_unreachable
();
gcc_unreachable
();
...
...
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