This is the mail archive of the gdb-testers@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


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

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


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