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
6a389ed5
Commit
6a389ed5
authored
Aug 05, 2013
by
David Malcolm
Committed by
David Malcolm
Aug 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zero-initialize pass_manager
gcc/ * passes.c (pass_manager::operator new): New. From-SVN: r201506
parent
f7695dbf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
gcc/ChangeLog
+4
-0
gcc/pass_manager.h
+2
-0
gcc/passes.c
+7
-0
No files found.
gcc/ChangeLog
View file @
6a389ed5
2013-08-05 David Malcolm <dmalcolm@redhat.com>
2013-08-05 David Malcolm <dmalcolm@redhat.com>
* passes.c (pass_manager::operator new): New.
2013-08-05 David Malcolm <dmalcolm@redhat.com>
Handwritten part of conversion of passes to C++ classes.
Handwritten part of conversion of passes to C++ classes.
* Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
* Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
...
...
gcc/pass_manager.h
View file @
6a389ed5
...
@@ -47,6 +47,8 @@ class context;
...
@@ -47,6 +47,8 @@ class context;
class
pass_manager
class
pass_manager
{
{
public
:
public
:
void
*
operator
new
(
size_t
sz
);
pass_manager
(
context
*
ctxt
);
pass_manager
(
context
*
ctxt
);
void
register_pass
(
struct
register_pass_info
*
pass_info
);
void
register_pass
(
struct
register_pass_info
*
pass_info
);
...
...
gcc/passes.c
View file @
6a389ed5
...
@@ -1339,6 +1339,13 @@ pass_manager::register_pass (struct register_pass_info *pass_info)
...
@@ -1339,6 +1339,13 @@ pass_manager::register_pass (struct register_pass_info *pass_info)
-> all_passes
-> all_passes
*/
*/
void
*
pass_manager
::
operator
new
(
size_t
sz
)
{
/* Ensure that all fields of the pass manager are zero-initialized. */
return
xcalloc
(
1
,
sz
);
}
pass_manager
::
pass_manager
(
context
*
ctxt
)
pass_manager
::
pass_manager
(
context
*
ctxt
)
:
all_passes
(
NULL
),
all_small_ipa_passes
(
NULL
),
all_lowering_passes
(
NULL
),
:
all_passes
(
NULL
),
all_small_ipa_passes
(
NULL
),
all_lowering_passes
(
NULL
),
all_regular_ipa_passes
(
NULL
),
all_lto_gen_passes
(
NULL
),
all_regular_ipa_passes
(
NULL
),
all_lto_gen_passes
(
NULL
),
...
...
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