* egcs-980115: some more patches for bootstrapping on hpux9 ...
@ 1998-01-16 20:09 Kaveh R. Ghazi
1998-01-17 22:30 ` Jeffrey A Law
0 siblings, 1 reply; 2+ messages in thread
From: Kaveh R. Ghazi @ 1998-01-16 20:09 UTC (permalink / raw)
To: egcs-bugs, egcs
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: egcs-980115: some more patches for bootstrapping on hpux9 ...
1998-01-16 20:09 egcs-980115: some more patches for bootstrapping on hpux9 Kaveh R. Ghazi
@ 1998-01-17 22:30 ` Jeffrey A Law
0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1998-01-17 22:30 UTC (permalink / raw)
To: Kaveh R. Ghazi; +Cc: egcs-bugs, egcs
In message < 199801162258.RAA05470@caip.rutgers.edu >you write:
> 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.
THanks. Installed.
jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-01-17 22:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-16 20:09 egcs-980115: some more patches for bootstrapping on hpux9 Kaveh R. Ghazi
1998-01-17 22:30 ` Jeffrey A Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).