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
e040476c
Commit
e040476c
authored
12 years ago
by
Steven Bosscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
From-SVN: r189812
parent
a0b0a0c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
gcc/ChangeLog
+4
-0
gcc/alloc-pool.c
+4
-5
No files found.
gcc/ChangeLog
View file @
e040476c
2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
* alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
2012-07-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
PR target/54051
...
...
This diff is collapsed.
Click to expand it.
gcc/alloc-pool.c
View file @
e040476c
...
...
@@ -140,11 +140,10 @@ create_alloc_pool (const char *name, size_t size, size_t num)
/* Now align the size to a multiple of 4. */
size
=
align_eight
(
size
);
if
(
ENABLE_CHECKING
)
{
/* Add the aligned size of ID. */
size
+=
offsetof
(
allocation_object
,
u
.
data
);
}
#ifdef ENABLE_CHECKING
/* Add the aligned size of ID. */
size
+=
offsetof
(
allocation_object
,
u
.
data
);
#endif
/* Um, we can't really allocate 0 elements per block. */
gcc_checking_assert
(
num
);
...
...
This diff is collapsed.
Click to expand it.
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