aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-05-21 06:29:55 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-05-21 06:29:55 +0000
commitfd97443cb69a8ae16ed6417f9a32eea79f488a2f (patch)
treeeecd955c52d8444e1edfac860b03f6f150e349da /gcc
parentb385c8412e8d4c6e257134e5bb7559ee06cd0c20 (diff)
downloadgcc-fd97443cb69a8ae16ed6417f9a32eea79f488a2f.zip
gcc-fd97443cb69a8ae16ed6417f9a32eea79f488a2f.tar.gz
gcc-fd97443cb69a8ae16ed6417f9a32eea79f488a2f.tar.bz2
ANSI does not allow a prototype to specify an item smaller than an int if the function uses an old-style definition.
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'. From-SVN: r19922
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gengenrtl.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6d4de03..737b34f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Thu May 21 09:04:42 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * gengenrtl.c (type_from_format, accessor_from_format): Change
+ type of parameter `c' from `char' to `int'.
+
Wed May 20 22:28:34 1998 Jeffrey A Law (law@cygnus.com)
* warn_summary, test_summary: New scripts from
diff --git a/gcc/gengenrtl.c b/gcc/gengenrtl.c
index d9e55eb..a8daeae 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)
{