From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Iverson To: Swen Thuemmler Cc: egcs@cygnus.com Subject: Re: Problems on SGI Irix 6.x. Date: Thu, 11 Dec 1997 10:01:00 -0000 Message-id: <199712111631.IAA24585@Canada.AI.SRI.COM> References: X-SW-Source: 1997-12/msg00661.html In message you write: > On Fri, 5 Dec 1997, Lee Iverson wrote: > > > 2) LONG_MAX is set completely wrong under Irix 6.x. > > > > Fixes for both problems are included below. > > Your patch does not seem to fix it. The default is a LONG_MAX for > sizeof(long) == 8, but the default for sizeof(long) is 4. If i reverse the > patch below, all seems to be well. Swen picked up a massive boo-boo. The whole patch that I sent is reversed. The correct one follows: 1997-12-05 Lee Iverson * config-ml.in (multi-do): LDFLAGS must include multilib designator. *** config-ml.in.~1~ Thu Aug 21 15:57:38 1997 --- config-ml.in Fri Dec 5 11:49:08 1997 *************** multi-do: *** 409,412 **** --- 409,413 ---- LIBCFLAGS="$(LIBCFLAGS) $${flags}" \ LIBCXXFLAGS="$(LIBCXXFLAGS) $${flags}" \ + LDFLAGS="$(LDFLAGS) $${flags}" \ $(DO)); then \ true; \ 1997-12-05 Lee Iverson * mips/abi64.h (LONG_MAX_SPEC): Make redefinition conditional on -mabi=64. mips/mips.h (mips_abi_string): Minor comment fix. *** gcc/config/mips/abi64.h.~1~ Wed Sep 17 17:31:49 1997 --- gcc/config/mips/abi64.h Fri Dec 5 11:34:56 1997 *************** extern struct rtx_def *mips_function_val *** 215,219 **** #undef LONG_MAX_SPEC ! #define LONG_MAX_SPEC "%{!mno-long64:-D__LONG_MAX__=9223372036854775807LL}" /* ??? Unimplemented stuff follows. */ --- 215,219 ---- #undef LONG_MAX_SPEC ! #define LONG_MAX_SPEC "%{mabi=64: %{!mno-long64:-D__LONG_MAX__=9223372036854775807LL}}" /* ??? Unimplemented stuff follows. */ *** gcc/config/mips/mips.h.~1~ Fri Nov 14 15:02:32 1997 --- gcc/config/mips/mips.h Fri Dec 5 11:35:10 1997 *************** extern int mips_isa; /* architectural *** 140,144 **** extern char *mips_cpu_string; /* for -mcpu= */ extern char *mips_isa_string; /* for -mips{1,2,3,4} */ ! extern char *mips_abi_string; /* for -misa={32,n32,64} */ extern int mips_split_addresses; /* perform high/lo_sum support */ extern int dslots_load_total; /* total # load related delay slots */ --- 140,144 ---- extern char *mips_cpu_string; /* for -mcpu= */ extern char *mips_isa_string; /* for -mips{1,2,3,4} */ ! extern char *mips_abi_string; /* for -mabi={32,n32,64} */ extern int mips_split_addresses; /* perform high/lo_sum support */ extern int dslots_load_total; /* total # load related delay slots */ ------------------------------------------------------------------------------- Lee Iverson SRI International leei@ai.sri.com 333 Ravenswood Ave., Menlo Park CA 94025 http://www.ai.sri.com/~leei/ (650) 859-3307