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
b5e9dd03
Commit
b5e9dd03
authored
Feb 09, 1993
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix integer overflows
From-SVN: r3446
parent
ac889e46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gcc/config/mips/mips.c
+5
-3
No files found.
gcc/config/mips/mips.c
View file @
b5e9dd03
...
...
@@ -4398,6 +4398,8 @@ mips_expand_prologue ()
/* Do any necessary cleanup after a function to restore stack, frame, and regs. */
#define RA_MASK ((long) 0x80000000)
/* 1 << 31 */
void
function_epilogue
(
file
,
size
)
FILE
*
file
;
...
...
@@ -4505,7 +4507,7 @@ function_epilogue (file, size)
save_restore_insns
(
FALSE
,
tmp_rtx
,
tsize
,
file
);
load_only_r31
=
(
current_frame_info
.
mask
==
(
1
<<
31
)
load_only_r31
=
(
current_frame_info
.
mask
==
RA_MASK
&&
current_frame_info
.
fmask
==
0
);
if
(
noreorder
)
...
...
@@ -4597,7 +4599,7 @@ function_epilogue (file, size)
"%-20s fp=%c leaf=%c alloca=%c setjmp=%c stack=%4ld arg=%3ld reg=%2d/%d delay=%3d/%3dL %3d/%3dJ refs=%3d/%3d/%3d"
,
name
,
(
frame_pointer_needed
)
?
'y'
:
'n'
,
((
current_frame_info
.
mask
&
(
1
<<
31
)
)
!=
0
)
?
'n'
:
'y'
,
((
current_frame_info
.
mask
&
RA_MASK
)
!=
0
)
?
'n'
:
'y'
,
(
current_function_calls_alloca
)
?
'y'
:
'n'
,
(
current_function_calls_setjmp
)
?
'y'
:
'n'
,
(
long
)
current_frame_info
.
total_size
,
...
...
@@ -4689,7 +4691,7 @@ mips_epilogue_delay_slots ()
if
(
current_frame_info
.
total_size
==
0
)
return
1
;
if
(
current_frame_info
.
mask
==
(
1
<<
31
)
&&
current_frame_info
.
fmask
==
0
)
if
(
current_frame_info
.
mask
==
RA_MASK
&&
current_frame_info
.
fmask
==
0
)
return
1
;
return
0
;
...
...
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