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
df231a09
Commit
df231a09
authored
Oct 05, 1999
by
Michael Meissner
Committed by
Michael Meissner
Oct 05, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Declare malloc, free, and atexit if inhibit_libc is defined.
From-SVN: r29829
parent
dbf08f94
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
+31
-2
gcc/ChangeLog
+8
-0
gcc/frame.c
+10
-1
gcc/libgcc2.c
+13
-1
No files found.
gcc/ChangeLog
View file @
df231a09
Tue
Oct
5
15
:
37
:
04
1999
Michael
Meissner
<
meissner
@cygnus
.
com
>
*
libgcc2
.
c
(
toplevel
)
:
If
inhibit_libc
is
defined
,
declare
malloc
,
free
,
and
atexit
.
Don
'
t
include
stddef
.
h
twice
.
*
frame
.
c
(
toplevel
)
:
If
inhibit_libc
is
defined
,
declare
malloc
and
free
.
Tue
Oct
5
12
:
00
:
32
1999
Richard
Henderson
<
rth
@cygnus
.
com
>
Tue
Oct
5
12
:
00
:
32
1999
Richard
Henderson
<
rth
@cygnus
.
com
>
*
flow
.
c
(
make_edge
)
:
Accept
an
optional
2
D
bitmap
in
which
*
flow
.
c
(
make_edge
)
:
Accept
an
optional
2
D
bitmap
in
which
...
...
gcc/frame.c
View file @
df231a09
/* Subroutines needed for unwinding stack frames for exception handling. */
/* Subroutines needed for unwinding stack frames for exception handling. */
/* Compile this one with gcc. */
/* Compile this one with gcc. */
/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
/* Copyright (C) 1997, 1998
, 1999
Free Software Foundation, Inc.
Contributed by Jason Merrill <jason@cygnus.com>.
Contributed by Jason Merrill <jason@cygnus.com>.
This file is part of GNU CC.
This file is part of GNU CC.
...
@@ -41,6 +41,15 @@ Boston, MA 02111-1307, USA. */
...
@@ -41,6 +41,15 @@ Boston, MA 02111-1307, USA. */
/* fixproto guarantees these system headers exist. */
/* fixproto guarantees these system headers exist. */
#include <stdlib.h>
#include <stdlib.h>
#include <unistd.h>
#include <unistd.h>
#else
#include <stddef.h>
#ifndef malloc
extern
void
*
malloc
(
size_t
);
#endif
#ifndef free
extern
void
free
(
void
*
);
#endif
#endif
#endif
#include "defaults.h"
#include "defaults.h"
...
...
gcc/libgcc2.c
View file @
df231a09
...
@@ -40,11 +40,23 @@ Boston, MA 02111-1307, USA. */
...
@@ -40,11 +40,23 @@ Boston, MA 02111-1307, USA. */
/* fixproto guarantees these system headers exist. */
/* fixproto guarantees these system headers exist. */
#include <stdlib.h>
#include <stdlib.h>
#include <unistd.h>
#include <unistd.h>
#else
#include <stddef.h>
#ifndef malloc
extern
void
*
malloc
(
size_t
);
#endif
#ifndef free
extern
void
free
(
void
*
);
#endif
#ifndef atexit
extern
int
atexit
(
void
(
*
)(
void
));
#endif
#endif
#endif
#include "machmode.h"
#include "machmode.h"
#include "defaults.h"
#include "defaults.h"
#if
ndef L_trampoline
#if
!defined(L_trampoline) && !defined(inhibit_libc)
#include <stddef.h>
#include <stddef.h>
#endif
#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