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
265ff835
Commit
265ff835
authored
Sep 28, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(xmalloc): New function.
From-SVN: r5521
parent
0ce958d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
gcc/bi-opcode.c
+17
-0
No files found.
gcc/bi-opcode.c
View file @
265ff835
...
...
@@ -51,3 +51,20 @@ enum bytecode_opcode\n{");
return
0
;
}
/* Safely allocate NBYTES bytes of memory. Returns pointer to block of
memory. */
char
*
xmalloc
(
nbytes
)
int
nbytes
;
{
char
*
tmp
=
(
char
*
)
malloc
(
nbytes
);
if
(
!
tmp
)
{
fprintf
(
stderr
,
"can't allocate %d bytes (out of virtual memory)
\n
"
,
nbytes
);
exit
(
1
);
}
return
tmp
;
}
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