]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/pa/pa.h
Fix support for atomic loads and stores on hppa.
[thirdparty/gcc.git] / gcc / config / pa / pa.h
index bafdf602138977f3566bd4e1530859bdf8d7b282..93d6f53f97f9f7299d738607aba2581f27e14c2f 100644 (file)
@@ -72,10 +72,12 @@ extern unsigned long total_code_bytes;
 #define HPUX_LONG_DOUBLE_LIBRARY 0
 #endif
 
-/* Linux kernel atomic operation support.  */
-#ifndef TARGET_SYNC_LIBCALL
-#define TARGET_SYNC_LIBCALL 0
-#endif
+/* Sync libcall support.  */
+#define TARGET_SYNC_LIBCALLS (flag_sync_libcalls)
+
+/* The maximum size of the sync library functions supported.  DImode
+   is supported on 32-bit targets using floating point loads and stores.  */
+#define MAX_SYNC_LIBFUNC_SIZE 8
 
 /* The following three defines are potential target switches.  The current
    defines are optimal given the current capabilities of GAS and GNU ld.  */
@@ -173,6 +175,8 @@ do {                                                                \
        builtin_define("_PA_RISC1_0");                          \
      if (HPUX_LONG_DOUBLE_LIBRARY)                             \
        builtin_define("__SIZEOF_FLOAT128__=16");               \
+     if (TARGET_SOFT_FLOAT)                                    \
+       builtin_define("__SOFTFP__");                           \
 } while (0)
 
 /* An old set of OS defines for various BSD-like systems.  */