libgcc2.c warning removal on Alpha
Richard Kenner
kenner@vlsi1.ultra.nyu.edu
Sat Jan 13 04:52:00 GMT 2001
Sat Jan 13 07:30:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* c-decl.c (start_function): Don't warn if old prototype is builtin
that's not in C's namespace.
* libgcc2.c (_varargs): Update definition of __builtin_saveregs.
(_bb): Add prototype for ctime.
* config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Add missing protos.
*** c-decl.c 2001/01/10 23:06:15 1.201
--- c-decl.c 2001/01/13 12:28:27
*************** start_function (declspecs, declarator, p
*** 5838,5847 ****
if (warn_strict_prototypes
&& TYPE_ARG_TYPES (TREE_TYPE (decl1)) == 0
! && !(old_decl != 0 && TYPE_ARG_TYPES (TREE_TYPE (old_decl)) != 0))
warning ("function declaration isn't a prototype");
/* Optionally warn of any global def with no previous prototype. */
else if (warn_missing_prototypes
&& TREE_PUBLIC (decl1)
! && !(old_decl != 0 && TYPE_ARG_TYPES (TREE_TYPE (old_decl)) != 0)
&& ! MAIN_NAME_P (DECL_NAME (decl1)))
warning_with_decl (decl1, "no previous prototype for `%s'");
--- 5838,5853 ----
if (warn_strict_prototypes
&& TYPE_ARG_TYPES (TREE_TYPE (decl1)) == 0
! && !(old_decl != 0
! && (TYPE_ARG_TYPES (TREE_TYPE (old_decl)) != 0
! || (DECL_BUILT_IN (old_decl)
! && ! C_DECL_ANTICIPATED (old_decl)))))
warning ("function declaration isn't a prototype");
/* Optionally warn of any global def with no previous prototype. */
else if (warn_missing_prototypes
&& TREE_PUBLIC (decl1)
! && !(old_decl != 0
! && (TYPE_ARG_TYPES (TREE_TYPE (old_decl)) != 0
! || (DECL_BUILT_IN (old_decl)
! && ! C_DECL_ANTICIPATED (old_decl))))
&& ! MAIN_NAME_P (DECL_NAME (decl1)))
warning_with_decl (decl1, "no previous prototype for `%s'");
*** libgcc2.c 2000/12/16 22:43:58 1.108
--- libgcc2.c 2001/01/13 12:28:34
*************** asm ("___builtin_saveregs:");
*** 1458,1463 ****
#else /* not __mips__, etc. */
! void * __attribute__ ((__noreturn__))
! __builtin_saveregs (void)
{
abort ();
--- 1458,1463 ----
#else /* not __mips__, etc. */
! void * ATTRIBUTE_NORETURN
! __builtin_saveregs ()
{
abort ();
*************** BLOCK_PROFILER_CODE
*** 1518,1522 ****
#undef NULL /* Avoid errors if stdio.h and our stddef.h mismatch. */
#include <stdio.h>
! char *ctime ();
#include "gbl-ctors.h"
--- 1518,1522 ----
#undef NULL /* Avoid errors if stdio.h and our stddef.h mismatch. */
#include <stdio.h>
! char *ctime PARAMS ((const time_t *));
#include "gbl-ctors.h"
*** config/alpha/osf.h 2000/12/07 01:58:23 1.14
--- config/alpha/osf.h 2001/01/13 12:28:35
*************** Boston, MA 02111-1307, USA. */
*** 129,136 ****
--- 129,139 ----
#define TRANSFER_FROM_TRAMPOLINE \
+ extern void __enable_execute_stack PARAMS ((void *)); \
+ \
void \
__enable_execute_stack (addr) \
void *addr; \
{ \
+ extern int mprotect PARAMS ((const void *, size_t, int)); \
long size = getpagesize (); \
long mask = ~(size-1); \
More information about the Gcc-patches
mailing list