mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-24 05:38:52 +08:00
Do not include stddef.h if building trampoline support and inhibit_libc is defined
From-SVN: r29831
This commit is contained in:
parent
139fa6f87b
commit
2f9e65b1f1
@ -1,7 +1,8 @@
|
||||
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.
|
||||
* libgcc2.c (toplevel): If inhibit_libc is defined and not
|
||||
building the trampoline support, declare malloc, free, and
|
||||
atexit.
|
||||
(__clear_cache): Mark arguments as potentially unused.
|
||||
|
||||
* frame.c (toplevel): If inhibit_libc is defined, declare
|
||||
|
@ -42,6 +42,7 @@ Boston, MA 02111-1307, USA. */
|
||||
#include <unistd.h>
|
||||
|
||||
#else
|
||||
#ifndef L_trampoline
|
||||
#include <stddef.h>
|
||||
#ifndef malloc
|
||||
extern void *malloc (size_t);
|
||||
@ -53,10 +54,11 @@ extern void free (void *);
|
||||
extern int atexit(void (*)(void));
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "machmode.h"
|
||||
#include "defaults.h"
|
||||
#if !defined(L_trampoline) && !defined(inhibit_libc)
|
||||
#ifndef L_trampoline
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user