arm-common.c (arm_except_unwind_info): Handle DWARF2_UNWIND_INFO.
authorOlivier Hainque <hainque@adacore.com>
Sun, 8 Oct 2017 08:10:41 +0000 (08:10 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Sun, 8 Oct 2017 08:10:41 +0000 (08:10 +0000)
2017-10-08  Olivier Hainque  <hainque@adacore.com>

        * common/config/arm/arm-common.c (arm_except_unwind_info):
        Handle DWARF2_UNWIND_INFO.

From-SVN: r253521

gcc/ChangeLog
gcc/common/config/arm/arm-common.c

index f1c391bc99ee6ab08ab5549fc1478a07312f5666..b44775caff2e1cd2b0931b6a8757d7665f0764d3 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-08  Olivier Hainque  <hainque@adacore.com>
+
+       * common/config/arm/arm-common.c (arm_except_unwind_info):
+       Handle DWARF2_UNWIND_INFO.
+
 2017-10-07  Michael Collison <michael.collison@arm.com>
 
        * config/aarch64/aarch64.md (*aarch64_reg_<optab>_minus<mode>3):
index 7cb99ece710629e56ac811e940060d2ec5a169b0..1588ca86e9b06282ed4358e072bc2b0224a11483 100644 (file)
@@ -63,7 +63,13 @@ arm_except_unwind_info (struct gcc_options *opts)
        return UI_TARGET;
     }
 
-  /* ... we use sjlj exceptions for backwards compatibility.  */
+  /* ... honor target configurations requesting DWARF2 EH...  */
+#ifdef DWARF2_UNWIND_INFO
+  if (DWARF2_UNWIND_INFO)
+    return UI_DWARF2;
+#endif
+
+  /* ... or fallback to sjlj exceptions for backwards compatibility.  */
   return UI_SJLJ;
 }