mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-14 06:50:27 +08:00
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
This commit is contained in:
parent
520ab477c8
commit
982255c878
@ -1,3 +1,9 @@
|
||||
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>
|
||||
|
||||
* frame.c (find_fde): Correct FDE's upper bound.
|
||||
|
@ -49,7 +49,8 @@ struct rtx_definition defs[] =
|
||||
const char *formats[NUM_RTX_CODE];
|
||||
|
||||
static const char *
|
||||
type_from_format (char c)
|
||||
type_from_format (c)
|
||||
char c;
|
||||
{
|
||||
switch (c)
|
||||
{
|
||||
@ -70,7 +71,8 @@ type_from_format (char c)
|
||||
}
|
||||
|
||||
static const char *
|
||||
accessor_from_format (char c)
|
||||
accessor_from_format (c)
|
||||
char c;
|
||||
{
|
||||
switch (c)
|
||||
{
|
||||
@ -258,6 +260,23 @@ gencode (f)
|
||||
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
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user