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
2944f36d
Commit
2944f36d
authored
May 19, 2017
by
Jason Merrill
Committed by
Jason Merrill
May 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
From-SVN: r248302
parent
281161d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
gcc/ChangeLog
+4
-0
gcc/tree.c
+3
-3
No files found.
gcc/ChangeLog
View file @
2944f36d
2017-05-19 Jason Merrill <jason@redhat.com>
* tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
2017-05-19 Marek Polacek <polacek@redhat.com>
PR sanitizer/80800
...
...
gcc/tree.c
View file @
2944f36d
...
...
@@ -2268,7 +2268,7 @@ tree
make_tree_vec_stat
(
int
len
MEM_STAT_DECL
)
{
tree
t
;
in
t
length
=
(
len
-
1
)
*
sizeof
(
tree
)
+
sizeof
(
struct
tree_vec
);
size_
t
length
=
(
len
-
1
)
*
sizeof
(
tree
)
+
sizeof
(
struct
tree_vec
);
record_node_allocation_statistics
(
TREE_VEC
,
length
);
...
...
@@ -2290,8 +2290,8 @@ grow_tree_vec_stat (tree v, int len MEM_STAT_DECL)
int
oldlen
=
TREE_VEC_LENGTH
(
v
);
gcc_assert
(
len
>
oldlen
);
in
t
oldlength
=
(
oldlen
-
1
)
*
sizeof
(
tree
)
+
sizeof
(
struct
tree_vec
);
in
t
length
=
(
len
-
1
)
*
sizeof
(
tree
)
+
sizeof
(
struct
tree_vec
);
size_
t
oldlength
=
(
oldlen
-
1
)
*
sizeof
(
tree
)
+
sizeof
(
struct
tree_vec
);
size_
t
length
=
(
len
-
1
)
*
sizeof
(
tree
)
+
sizeof
(
struct
tree_vec
);
record_node_allocation_statistics
(
TREE_VEC
,
length
-
oldlength
);
...
...
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