]> granicus.if.org Git - curl/commitdiff
system.h: Add sparcv8plus to oracle/sunpro 32-bit detection
authorDagobert Michelsen <dam@opencsw.org>
Fri, 13 Apr 2018 09:57:48 +0000 (11:57 +0200)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 15 Apr 2018 07:15:31 +0000 (03:15 -0400)
With specific compiler options selecting the arch like -xarch=sparc on
newer compilers like Oracle Studio 12.4 there is no definition of
__sparcv8 but __sparcv8plus which means the V9 ISA, but limited to the
32ÎíÎñbit subset defined by the V8plus ISA specification, without the
Visual Instruction Set (VIS), and without other implementation-specific
ISA extensions. So it should be the same as __sparcv8.

Closes https://github.com/curl/curl/pull/2491

include/curl/system.h

index 07bbd9ca943681d7407c6909badc2d04d9163781..eac4cfeb6682e7c0091a84d512b6f8c66c42ac66 100644 (file)
 
 #elif defined(__SUNPRO_C) /* Oracle Solaris Studio */
 #  if !defined(__LP64) && (defined(__ILP32) ||                          \
-                           defined(__i386) || defined(__sparcv8))
+                           defined(__i386) ||                           \
+                           defined(__sparcv8) ||                        \
+                           defined(__sparcv8plus))
 #    define CURL_TYPEOF_CURL_OFF_T     long long
 #    define CURL_FORMAT_CURL_OFF_T     "lld"
 #    define CURL_FORMAT_CURL_OFF_TU    "llu"