From: John David Anglin Date: Tue, 17 Apr 2001 17:54:22 +0000 (+0000) Subject: vax.h (PROMOTE_PROTOTYPES): Define for compatibility with system libraries and native... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5854680c2ce7745d1dad96fa10b0343d3e4f0cc9;p=gcc.git vax.h (PROMOTE_PROTOTYPES): Define for compatibility with system libraries and native K&R compilers. * vax.h (PROMOTE_PROTOTYPES): Define for compatibility with system libraries and native K&R compilers. From-SVN: r41391 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b2413d1f44f..4beb748a828 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-04-17 John David Anglin + + * vax.h (PROMOTE_PROTOTYPES): Define for compatibility with system + libraries and native K&R compilers. + 2001-04-16 Kaveh R. Ghazi * c-typeck.c (convert_arguments): Don't check for width changes diff --git a/gcc/config/vax/vax.h b/gcc/config/vax/vax.h index 6fffc83f66a..36df44723da 100644 --- a/gcc/config/vax/vax.h +++ b/gcc/config/vax/vax.h @@ -1,6 +1,6 @@ /* Definitions of target machine for GNU compiler. Vax version. Copyright (C) 1987, 1988, 1991, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000 Free Software Foundation, Inc. + 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -865,6 +865,10 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; is done just by pretending it is already truncated. */ #define TRULY_NOOP_TRUNCATION(OUTPREC, INPREC) 1 +/* When a prototype says `char' or `short', really pass an `int'. + (On the vax, this is required for system-library compatibility.) */ +#define PROMOTE_PROTOTYPES 1 + /* Specify the machine mode that pointers have. After generation of rtl, the compiler makes no further distinction between pointers and any other objects of this machine mode. */