Skip to content

Commit 3a1b1b7

Browse files
authored
Fix complex ABI for 32bit SolarisStudio builds
1 parent da6d5d6 commit 3a1b1b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

common_sparc.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ static __inline unsigned long rpcc(void){
7878
#define __BIG_ENDIAN__
7979
#endif
8080

81+
#ifdef C_SUN
82+
#ifndef __64BIT
83+
#define RETURN_BY_STACK
84+
#endif
85+
#endif
86+
8187
#ifdef DOUBLE
8288
#define GET_IMAGE(res) __asm__ __volatile__("fmovd %%f2, %0" : "=f"(res) : : "memory")
8389
#else

0 commit comments

Comments
 (0)