MIssing calls to xmalloc_set_program_name

Richard Kenner kenner@vlsi1.ultra.nyu.edu
Fri Dec 29 05:10:00 GMT 2000


Without these calls, xmalloc_failed prints junk.

Fri Dec 29 08:06:03 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* toplev.c (main): Call xmalloc_set_program_name.
	* gcc.c (main): Likewise.

*** toplev.c	2000/12/28 18:48:02	1.407
--- toplev.c	2000/12/29 12:45:45
*************** main (argc, argv)
*** 4526,4529 ****
--- 4526,4531 ----
    progname = p;
  
+   xmalloc_set_program_name (progname);
+ 
  /* LC_CTYPE determines the character set used by the terminal so it has be set
     to output messages correctly.  */
*** gcc.c	2000/12/17 14:35:04	1.189
--- gcc.c	2000/12/29 12:45:51
*************** main (argc, argv)
*** 5244,5247 ****
--- 5244,5249 ----
    programname = p;
  
+   xmalloc_set_program_name (programname);
+ 
  #ifdef GCC_DRIVER_HOST_INITIALIZATION
    /* Perform host dependant initialization when needed.  */


More information about the Gcc-patches mailing list