[Bug target/12579] gengtype core dumping on Origin with MIPSpro 7.4
ro at techfak dot uni-bielefeld dot de
gcc-bugzilla@gcc.gnu.org
Mon Oct 13 13:03:00 GMT 2003
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
More information about the Gcc-bugs
mailing list