Skip to content

Commit

Permalink
system.h: Add sparcv8plus to oracle/sunpro 32-bit detection
Browse files Browse the repository at this point in the history
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 #2491
  • Loading branch information
dago authored and jay committed Apr 15, 2018
1 parent 9b96e0b commit 631f64c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/curl/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,9 @@

#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"
Expand Down

0 comments on commit 631f64c

Please sign in to comment.