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
1468899d
Commit
1468899d
authored
Oct 20, 2000
by
Richard Kenner
Committed by
Richard Kenner
Oct 20, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
From-SVN: r36973
parent
391db8c9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
gcc/ChangeLog
+2
-0
gcc/function.c
+4
-4
No files found.
gcc/ChangeLog
View file @
1468899d
Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
* fold-const.c (force_fit_type): Unsigned values can overflow
if they are sizetype.
(int_const_binop): Don't use cache if overflows.
...
...
gcc/function.c
View file @
1468899d
...
...
@@ -5133,8 +5133,8 @@ locate_and_pad_parm (passed_mode, type, in_regs, fndecl,
offset_ptr
->
var
=
0
;
}
if
(
where_pad
!=
none
&&
(
TREE_CODE
(
sizetree
)
!=
INTEGER_CST
||
(
(
TREE_INT_CST_LOW
(
sizetree
)
*
BITS_PER_UNIT
)
%
PARM_BOUNDARY
)
))
&&
(
!
host_integerp
(
sizetree
,
1
)
||
(
tree_low_cst
(
sizetree
,
1
)
*
BITS_PER_UNIT
)
%
PARM_BOUNDARY
))
sizetree
=
round_up
(
sizetree
,
PARM_BOUNDARY
/
BITS_PER_UNIT
);
SUB_PARM_SIZE
(
*
offset_ptr
,
sizetree
);
if
(
where_pad
!=
downward
)
...
...
@@ -5173,8 +5173,8 @@ locate_and_pad_parm (passed_mode, type, in_regs, fndecl,
pad_below
(
offset_ptr
,
passed_mode
,
sizetree
);
if
(
where_pad
!=
none
&&
(
TREE_CODE
(
sizetree
)
!=
INTEGER_CST
||
(
(
TREE_INT_CST_LOW
(
sizetree
)
*
BITS_PER_UNIT
)
%
PARM_BOUNDARY
)
))
&&
(
!
host_integerp
(
sizetree
,
1
)
||
(
tree_low_cst
(
sizetree
,
1
)
*
BITS_PER_UNIT
)
%
PARM_BOUNDARY
))
sizetree
=
round_up
(
sizetree
,
PARM_BOUNDARY
/
BITS_PER_UNIT
);
ADD_PARM_SIZE
(
*
arg_size_ptr
,
sizetree
);
...
...
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