This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
egcs-980115: some more patches for bootstrapping on hpux9 ...
- To: egcs-bugs at cygnus dot com, egcs at cygnus dot com
- Subject: egcs-980115: some more patches for bootstrapping on hpux9 ...
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Fri, 16 Jan 1998 17:58:40 -0500 (EST)
Here are a couple of more things I had to fix when bootstrapping
egcs-980115 on hpux9 using native cc for stage1.
--Kaveh
Fri Jan 16 17:56:22 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.
*** gengenrtl.c.orig Tue Jan 13 04:06:31 1998
--- gengenrtl.c Fri Jan 16 13:34:57 1998
***************
*** 45,51 ****
const char *formats[NUM_RTX_CODE];
static const char *
! type_from_format (char c)
{
switch (c)
{
--- 49,56 ----
const char *formats[NUM_RTX_CODE];
static const char *
! type_from_format (c)
! char c;
{
switch (c)
{
***************
*** 66,72 ****
}
static const char *
! accessor_from_format (char c)
{
switch (c)
{
--- 71,78 ----
}
static const char *
! accessor_from_format (c)
! char c;
{
switch (c)
{
***************
*** 253,258 ****
--- 259,281 ----
for (fmt = formats; *fmt; ++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
main(argc, argv)
--
Kaveh R. Ghazi Project Manager / Custom Development
ghazi@caip.rutgers.edu ICon CMT Corp.