diff options
| author | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-17 17:54:22 +0000 |
|---|---|---|
| committer | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-17 17:54:22 +0000 |
| commit | 12fae0508f752a6e89ced944800cf3336ed0e248 (patch) | |
| tree | de9530e3ad7d0c21245411086b47e9fe637e5675 | |
| parent | 1ccb310eb3acb34580f6e61bb38b4c028ce532f4 (diff) | |
| download | ppe42-gcc-12fae0508f752a6e89ced944800cf3336ed0e248.tar.gz ppe42-gcc-12fae0508f752a6e89ced944800cf3336ed0e248.zip | |
* vax.h (PROMOTE_PROTOTYPES): Define for compatibility with system
libraries and native K&R compilers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41391 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/vax/vax.h | 6 |
2 files changed, 10 insertions, 1 deletions
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 <dave@hiauly1.hia.nrc.ca> + + * vax.h (PROMOTE_PROTOTYPES): Define for compatibility with system + libraries and native K&R compilers. + 2001-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * 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. */ |

