We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd95a1d commit b5bb040Copy full SHA for b5bb040
src/backend/tcop/postgres.c
@@ -2967,10 +2967,15 @@ ProcessInterrupts(void)
2967
/*
2968
* IA64-specific code to fetch the AR.BSP register for stack depth checks.
2969
*
2970
- * We currently support gcc and icc here.
+ * We currently support gcc, icc, and HP-UX inline assembly here.
2971
*/
2972
#if defined(__ia64__) || defined(__ia64)
2973
2974
+#if defined(__hpux) && !defined(__GNUC__) && !defined __INTEL_COMPILER
2975
+#include <ia64/sys/inline.h>
2976
+#define ia64_get_bsp() ((char *) (_Asm_mov_from_ar(_AREG_BSP, _NO_FENCE)))
2977
+#else
2978
+
2979
#ifdef __INTEL_COMPILER
2980
#include <asm/ia64regs.h>
2981
#endif
@@ -2991,6 +2996,7 @@ ia64_get_bsp(void)
2991
2996
2992
2997
return ret;
2993
2998
}
2999
+#endif
2994
3000
#endif /* IA64 */
2995
3001
3002
0 commit comments