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
97bb4812
Commit
97bb4812
authored
Feb 23, 2018
by
Jan Hubicka
Committed by
Jan Hubicka
Feb 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lto-partition.c (lto_balanced_map): Watch overflow.
From-SVN: r257939
parent
1996c75e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
gcc/lto/ChangeLog
+4
-0
gcc/lto/lto-partition.c
+2
-1
No files found.
gcc/lto/ChangeLog
View file @
97bb4812
2018-02-08 Jan Hubicka <hubicka@ucw.cz>
* lto-partition.c (lto_balanced_map): Watch overflow.
2018-02-08 Jan Hubicka <hubicka@ucw.cz>
PR ipa/81360
* lto.c (unify_scc): Register prevailing trees, not trees to be freed.
(read_cgraph_and_symbols): Use
...
...
gcc/lto/lto-partition.c
View file @
97bb4812
...
...
@@ -757,7 +757,8 @@ lto_balanced_map (int n_lto_partitions, int max_partition_size)
if
(
npartitions
<
n_lto_partitions
)
partition_size
=
total_size
/
(
n_lto_partitions
-
npartitions
);
else
partition_size
=
INT_MAX
;
/* Watch for overflow. */
partition_size
=
INT_MAX
/
16
;
if
(
partition_size
<
PARAM_VALUE
(
MIN_PARTITION_SIZE
))
partition_size
=
PARAM_VALUE
(
MIN_PARTITION_SIZE
);
...
...
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