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
2c62c124
Commit
2c62c124
authored
Feb 13, 1995
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't call write ifdef inhibit_libc.
From-SVN: r8941
parent
d01bc862
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
gcc/libgcc2.c
+17
-0
No files found.
gcc/libgcc2.c
View file @
2c62c124
...
...
@@ -1671,10 +1671,12 @@ set_new_handler (vfp handler)
void
__default_new_handler
()
{
#ifndef inhibit_libc
/* don't use fprintf (stderr, ...) because it may need to call malloc. */
/* This should really print the name of the program, but that is hard to
do. We need a standard, clean way to get at the name. */
write
(
2
,
MESSAGE
,
sizeof
(
MESSAGE
));
#endif
/* don't call exit () because that may call global destructors which
may cause a loop. */
_exit
(
-
1
);
...
...
@@ -2276,11 +2278,26 @@ __unwind_function(void *ptr)
#endif
/* L_eh */
#ifdef L_pure
#ifndef inhibit_libc
/* This gets us __GNU_LIBRARY__. */
#undef NULL
/* Avoid errors if stdio.h and our stddef.h mismatch. */
#include <stdio.h>
#ifdef __GNU_LIBRARY__
/* Avoid forcing the library's meaning of `write' on the user program
by using the "internal" name (for use within the library) */
#define write(fd, buf, n) __write((fd), (buf), (n))
#endif
#endif
/* inhibit_libc */
#define MESSAGE "pure virtual method called\n"
void
__pure_virtual
()
{
#ifndef inhibit_libc
write
(
2
,
MESSAGE
,
sizeof
(
MESSAGE
)
-
1
);
#endif
_exit
(
-
1
);
}
#endif
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