This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/12579] gengtype core dumping on Origin with MIPSpro 7.4
- From: "ro at techfak dot uni-bielefeld dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Oct 2003 13:03:50 -0000
- Subject: [Bug target/12579] gengtype core dumping on Origin with MIPSpro 7.4
- References: <20031011160034.12579.rrr6399@futuretek.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12579
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2003-10-13 13:03 -------
Subject: Re: New: gengtype core dumping on Origin with MIPSpro 7.4
This is a known bug in SGI's MIPSpro C 7.4: it provides a built-in version
of memcmp, and miscompiles it under some circumstances.
There are a couple of possible fixes/workarounds:
* Upgrade to MIPSpro C 7.4.1m (only available on CD-ROM from SGI).
* Disable the memcmp intrinsic in /usr/include/internal/string_core.h:
--- /usr/include/internal/string_core.h.mipspro740 Thu Jun 5 22:37:58 2003
+++ /usr/include/internal/string_core.h Wed Sep 3 19:51:06 2003
@@ -138,7 +151,7 @@
#pragma intrinsic (memmove)
#pragma intrinsic (memset)
#endif /* COMPILER_VERSION >= 721 */
-#if (defined(_COMPILER_VERSION) && (_COMPILER_VERSION >= 740)) && 0
+#if (defined(_COMPILER_VERSION) && (_COMPILER_VERSION >= 740))
#pragma intrinsic (memcmp)
#endif /* COMPILER_VERSION >= 740 */
__SGI_LIBC_END_NAMESPACE_STD
* Disable all intrinsics for the bootstrap by configuring/bootstrapping
with
CC='cc -U__INLINE_INTRINSICS'
I'll document all this in the installation notes once I get to it.
Rainer