diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-10-08 11:44:49 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-10-08 11:44:49 +0000 |
commit | 52726ddd4b0b66abb4de88a05fdedfd9e56e6e98 (patch) | |
tree | 6d5c83e8298abd7e8e7c0713ead7f9d070c582a8 /gcc/mips-tfile.c | |
parent | f213fcf93282d7d2a5448c69eb0c9539c24df866 (diff) | |
download | gcc-52726ddd4b0b66abb4de88a05fdedfd9e56e6e98.tar.gz |
Don't define memory functions on Alpha.
(Ptrdiff_t): Always `long'.
(WORD_ALIGN): Make portable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5676 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mips-tfile.c')
-rw-r--r-- | gcc/mips-tfile.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c index 01aaed0d563..604ec7684eb 100644 --- a/gcc/mips-tfile.c +++ b/gcc/mips-tfile.c @@ -3,7 +3,7 @@ in the form of comments (the mips assembler does not support assembly access to debug information). Contributed by: Michael Meissner, meissner@osf.org - Copyright (C) 1991 Free Software Foundation, Inc. + Copyright (C) 1991, 1993 Free Software Foundation, Inc. This file is part of GNU CC. @@ -642,7 +642,7 @@ typedef char *CPTR_T; #else #define Size_t unsigned int #endif -#define Ptrdiff_t int +#define Ptrdiff_t long /* The following might be called from obstack or malloc, so they can't be static. */ @@ -937,7 +937,7 @@ enum alloc_type { }; -#define WORD_ALIGN(x) (((x) + 3) & ~3) +#define WORD_ALIGN(x) (((x) + (sizeof (long) - 1)) & ~ (sizeof (long -1)))) #define DWORD_ALIGN(x) (((x) + 7) & ~7) @@ -1734,11 +1734,13 @@ STATIC void free_thead __proto((thead_t *)); STATIC char *local_index __proto((const char *, int)); STATIC char *local_rindex __proto((const char *, int)); +#ifndef __alpha extern char *sbrk __proto((int)); extern PTR_T malloc __proto((Size_t)); extern PTR_T calloc __proto((Size_t, Size_t)); extern PTR_T realloc __proto((PTR_T, Size_t)); extern void free __proto((PTR_T)); +#endif extern char *mktemp __proto((char *)); extern long strtol __proto((const char *, char **, int)); |