Commit 982255c8 by Kaveh R. Ghazi Committed by Jeff Law

gengenrtl.c (type_from_format): De-ANSIfy function signature.

        * gengenrtl.c (type_from_format): De-ANSIfy function signature.
        (accessor_from_format): Likewise.
        (xmalloc): New function for use when linking with alloca.o.

From-SVN: r17386
parent 520ab477
Sat Jan 17 21:09:46 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gengenrtl.c (type_from_format): De-ANSIfy function signature.
(accessor_from_format): Likewise.
(xmalloc): New function for use when linking with alloca.o.
Mon Jan 5 02:53:01 1998 Bruno Haible <bruno@linuix.mathematik.uni-karlsruhe.de> Mon Jan 5 02:53:01 1998 Bruno Haible <bruno@linuix.mathematik.uni-karlsruhe.de>
* frame.c (find_fde): Correct FDE's upper bound. * frame.c (find_fde): Correct FDE's upper bound.
......
...@@ -49,7 +49,8 @@ struct rtx_definition defs[] = ...@@ -49,7 +49,8 @@ struct rtx_definition defs[] =
const char *formats[NUM_RTX_CODE]; const char *formats[NUM_RTX_CODE];
static const char * static const char *
type_from_format (char c) type_from_format (c)
char c;
{ {
switch (c) switch (c)
{ {
...@@ -70,7 +71,8 @@ type_from_format (char c) ...@@ -70,7 +71,8 @@ type_from_format (char c)
} }
static const char * static const char *
accessor_from_format (char c) accessor_from_format (c)
char c;
{ {
switch (c) switch (c)
{ {
...@@ -258,6 +260,23 @@ gencode (f) ...@@ -258,6 +260,23 @@ gencode (f)
gendef (f, *fmt); gendef (f, *fmt);
} }
#if defined(USE_C_ALLOCA) && !defined(__GNUC__)
char *
xmalloc (nbytes)
int nbytes;
{
char *tmp = (char *) malloc (nbytes);
if (!tmp)
{
fprintf (stderr, "can't allocate %d bytes (out of virtual memory)\n", nbytes);
exit (FATAL_EXIT_CODE);
}
return tmp;
}
#endif /* USE_C_ALLOCA && !__GNUC__ */
int int
main(argc, argv) main(argc, argv)
int argc; int argc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment