aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/arm/linux-gas.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/arm/linux-gas.h')
-rw-r--r--gcc/config/arm/linux-gas.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/arm/linux-gas.h b/gcc/config/arm/linux-gas.h
index 0544eb0..715d2a5 100644
--- a/gcc/config/arm/linux-gas.h
+++ b/gcc/config/arm/linux-gas.h
@@ -36,8 +36,10 @@
#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE "int"
-#undef WCHAR_TYPE
-#define WCHAR_TYPE "long int"
+/* Use the AAPCS type for wchar_t, or the previous Linux default for
+ non-AAPCS. */
+#undef WCHAR_TYPE
+#define WCHAR_TYPE (TARGET_AAPCS_BASED ? "unsigned int" : "long int")
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE BITS_PER_WORD