gdb-4.16.85 fails to compile with native MIPS Ultrix 4.4 cc

Peter.Schauer Peter.Schauer@regent.e-technik.tu-muenchen.de
Sat Feb 14 05:20:00 GMT 1998


The native cc on MIPS Ultrix 4.4 has buggy `long long' support, causing
a compiler abort while compiling gdb/valarith.c.

Here is a patch to suppress `long long' usage when using native cc:

	* config/mips/xm-mips.h (CC_HAS_LONG_LONG):  Undefine for Ultrix
	when compiling with native cc, the compiler has broken long long
	support.

*** gdb-4.16.85/gdb/config/mips/xm-mips.h.orig	Thu Aug  1 19:30:37 1996
--- gdb-4.16.85/gdb/config/mips/xm-mips.h	Sat Feb 14 13:10:45 1998
***************
*** 27,33 ****
--- 27,38 ----
  /* Needed for DECstation core files.  */
  #include <machine/param.h>
  #define KERNEL_U_ADDR UADDR
+ 
+ /* Native Ultrix cc has broken long long support.  */
+ #ifndef __GNUC__
+ #undef CC_HAS_LONG_LONG
  #endif
+ #endif
  
  #if ! defined (__STDC__) && ! defined (offsetof)
  # define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER)

-- 
Peter Schauer			pes@regent.e-technik.tu-muenchen.de



More information about the Gdb-testers mailing list