Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/arm If we want unwind tabl...



details:   https://anonhg.NetBSD.org/src/rev/876326b6e1c3
branches:  trunk
changeset: 789573:876326b6e1c3
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Aug 23 00:22:16 2013 +0000

description:
If we want unwind tables, defined __UNWIND_TABLES__ 1

diffstat:

 external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h |  20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diffs (37 lines):

diff -r ed9392945cff -r 876326b6e1c3 external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h
--- a/external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h       Thu Aug 22 20:03:15 2013 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h       Fri Aug 23 00:22:16 2013 +0000
@@ -28,6 +28,10 @@
 #undef MUST_USE_SJLJ_EXCEPTIONS
 #define MUST_USE_SJLJ_EXCEPTIONS (!TARGET_AAPCS_BASED)
 
+#undef ARM_EABI_UNWIND_TABLES
+#define ARM_EABI_UNWIND_TABLES \
+  ((!USING_SJLJ_EXCEPTIONS && flag_exceptions) || flag_unwind_tables)
+
 #define TARGET_LINKER_EABI_SUFFIX "%{!mabi=apcs-gnu:%{!mabi=atpcs:_nbsd_eabi}}"
 #define TARGET_LINKER_BIG_EMULATION "armelfb%(linker_eabi_suffix)"
 #define TARGET_LINKER_LITTLE_EMULATION "armelf%(linker_eabi_suffix)"
@@ -49,13 +53,15 @@
 #define ARM_DEFAULT_ABI ARM_ABI_AAPCS_LINUX
 
 #undef TARGET_OS_CPP_BUILTINS
-#define TARGET_OS_CPP_BUILTINS()       \
-  do                                   \
-    {                                  \
-      if (TARGET_AAPCS_BASED)          \
-       TARGET_BPABI_CPP_BUILTINS();    \
-      NETBSD_OS_CPP_BUILTINS_ELF();    \
-    }                                  \
+#define TARGET_OS_CPP_BUILTINS()               \
+  do                                           \
+    {                                          \
+      if (TARGET_AAPCS_BASED)                  \
+       TARGET_BPABI_CPP_BUILTINS();            \
+      NETBSD_OS_CPP_BUILTINS_ELF();            \
+      if (ARM_EABI_UNWIND_TABLES)              \
+       builtin_define ("__UNWIND_TABLES__");   \
+    }                                          \
   while (0)
 
 #undef SUBTARGET_CPP_SPEC



Home | Main Index | Thread Index | Old Index