You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2001/03/19 06:06:47 UTC
[Bug 1018] New - AutoSense looks for "IRIX" when it should look for "sgi" or "__sgi"
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1018
*** shadow/1018 Sun Mar 18 21:06:47 2001
--- shadow/1018.tmp.3422 Sun Mar 18 21:06:47 2001
***************
*** 0 ****
--- 1,32 ----
+ +============================================================================+
+ | AutoSense looks for "IRIX" when it should look for "sgi" or "__sgi" |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1018 Product: Xerces-C |
+ | Status: NEW Version: 1.4 |
+ | Resolution: Platform: Other |
+ | Severity: Minor OS/Version: Other |
+ | Priority: Component: Utilities |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-c-dev@xml.apache.org |
+ | Reported By: jeff@iopartners.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ The file <util/AutoSense.hpp> expects to see the macro "IRIX" defined at
+ compile-time. Trouble is, SGI's MIPSpro C++ compiler doesn't define
+ "IRIX." It defines these:
+
+ -Dmips -DMIPSEB -D_MIPSEB -D__EXTENSIONS__
+ -D__INLINE_INTRINSICS -D__MATH_HAS_NO_SIDE_EFFECTS -D_PIC
+ -D__DSO__ -D_LANGUAGE_C_PLUS_PLUS=1 -D_MODERN_C
+ -D_SGI_SOURCE -D_LONGLONG -D_SVR4_SOURCE -Dunix -Dsgi
+ -Dhost_mips -D__sgi -D__host_mips -D_SYSTYPE_SVR4 -D__unix
+ -D_COMPILER_VERSION=730 -D__mips=4 -D_MIPS_ISA=4
+ -D_ABIN32=2 -D_MIPS_SIM=_ABIN32 -D_MIPS_FPSET=32
+ -D_MIPS_SZINT=32 -D_MIPS_SZLONG=32 -D_MIPS_SZPTR=32
+ -D_SIZE_INT=32 -D_SIZE_LONG=32 -D_SIZE_PTR=32
+
+ The list produced by g++ is pretty much the same; omitted for brevity. Both
+ compilers define "sgi" and "__sgi", but neither defines "IRIX".
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org