This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fix MIPS/Alpha breakage


The change to "poison" some macros prevents mips-tdump.c and mips-tfile.c
from compiling.  This fixes it.

Sat Mar 10 10:36:45 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* mips-tdump.c (read_seek): Call xmalloc, not malloc.
	* mips-tfile.c: Don't #undef rindex; not used.

*** mips-tdump.c	2001/02/03 14:05:28	1.18
--- mips-tdump.c	2001/03/10 15:29:18
*************** read_seek (ptr, size, offset, context)
*** 292,296 ****
      return ptr;
  
!   if ((ptr == (PTR_T) 0 && (ptr = malloc (size)) == (PTR_T) 0)
        || (tfile_offset != offset && lseek (tfile_fd, offset, 0) == -1)
        || (read_size = read (tfile_fd, ptr, size)) < 0)
--- 292,296 ----
      return ptr;
  
!   if ((ptr == (PTR_T) 0 && (ptr = xmalloc (size)) == (PTR_T) 0)
        || (tfile_offset != offset && lseek (tfile_fd, offset, 0) == -1)
        || (read_size = read (tfile_fd, ptr, size)) < 0)
*** mips-tfile.c	2000/08/24 20:31:33	1.34
--- mips-tfile.c	2001/03/10 15:29:22
*************** main ()
*** 663,669 ****
  
  /* The local and global symbols have a field index, so undo any defines
!    of index -> strchr and rindex -> strrchr.  */
  
- #undef rindex
  #undef index
  
--- 663,668 ----
  
  /* The local and global symbols have a field index, so undo any defines
!    of index -> strchr.  */
  
  #undef index
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]