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
8a552066
Commit
8a552066
authored
Mar 08, 1995
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not initialize the pointer variable __new_handler with an address.
From-SVN: r9129
parent
c9040e2c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
gcc/libgcc2.c
+4
-2
No files found.
gcc/libgcc2.c
View file @
8a552066
...
...
@@ -1604,11 +1604,13 @@ __bb_init_func (struct bb *blocks)
typedef
void
(
*
vfp
)(
void
);
extern
vfp
__new_handler
;
extern
void
__default_new_handler
(
void
);
void
*
__builtin_new
(
size_t
sz
)
{
void
*
p
;
vfp
handler
=
(
__new_handler
)
?
__new_handler
:
__default_new_handler
;
/* malloc (0) is unpredictable; avoid it. */
if
(
sz
==
0
)
...
...
@@ -1616,7 +1618,7 @@ __builtin_new (size_t sz)
p
=
(
void
*
)
malloc
(
sz
);
while
(
p
==
0
)
{
(
*
__new_
handler
)
();
(
*
handler
)
();
p
=
(
void
*
)
malloc
(
sz
);
}
...
...
@@ -1657,7 +1659,7 @@ __builtin_vec_new (size_t sz)
typedef
void
(
*
vfp
)(
void
);
void
__default_new_handler
(
void
);
vfp
__new_handler
=
__default_new_handler
;
vfp
__new_handler
=
(
vfp
)
0
;
vfp
set_new_handler
(
vfp
handler
)
...
...
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