diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-21 06:29:55 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-21 06:29:55 +0000 |
commit | 9b4c8c82b0373e61948d48db89f44a644949f0db (patch) | |
tree | eecd955c52d8444e1edfac860b03f6f150e349da /gcc/gengenrtl.c | |
parent | 347cbbaf6097465998ecfe635fa81d9b5c89b9db (diff) | |
download | gcc-9b4c8c82b0373e61948d48db89f44a644949f0db.tar.gz |
ANSI does not allow a prototype to specify an item smaller than an int
if the function uses an old-style definition. This only worked as a
GNUC extension, so stop doing it.
* gengenrtl.c (type_from_format, accessor_from_format): Change
type of parameter `c' from `char' to `int'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19922 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gengenrtl.c')
-rw-r--r-- | gcc/gengenrtl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/gengenrtl.c b/gcc/gengenrtl.c index d9e55eb0164..a8daeae465b 100644 --- a/gcc/gengenrtl.c +++ b/gcc/gengenrtl.c @@ -44,8 +44,8 @@ struct rtx_definition defs[] = const char *formats[NUM_RTX_CODE]; -static const char *type_from_format PROTO((char)); -static const char *accessor_from_format PROTO((char)); +static const char *type_from_format PROTO((int)); +static const char *accessor_from_format PROTO((int)); static int special_format PROTO((const char *)); static int special_rtx PROTO((int)); static void find_formats PROTO((void)); @@ -58,7 +58,7 @@ static void gencode PROTO((FILE *)); static const char * type_from_format (c) - char c; + int c; { switch (c) { @@ -90,7 +90,7 @@ type_from_format (c) static const char * accessor_from_format (c) - char c; + int c; { switch (c) { |