Blame SOURCES/gcc7-aarch64-async-unw-tables.patch

9c2d31
2014-04-07  Richard Henderson  <rth@redhat.com>
9c2d31
9c2d31
	* common/config/aarch64/aarch64-common.c (TARGET_OPTION_INIT_STRUCT):
9c2d31
	Define.
9c2d31
	(aarch64_option_init_struct): New function.
9c2d31
9c2d31
--- gcc/common/config/aarch64/aarch64-common.c
9c2d31
+++ gcc/common/config/aarch64/aarch64-common.c
9c2d31
@@ -39,6 +39,9 @@
9c2d31
 #undef	TARGET_OPTION_OPTIMIZATION_TABLE
9c2d31
 #define TARGET_OPTION_OPTIMIZATION_TABLE aarch_option_optimization_table
9c2d31
 
9c2d31
+#undef TARGET_OPTION_INIT_STRUCT
9c2d31
+#define TARGET_OPTION_INIT_STRUCT aarch64_option_init_struct
9c2d31
+
9c2d31
 /* Set default optimization options.  */
9c2d31
 static const struct default_options aarch_option_optimization_table[] =
9c2d31
   {
9c2d31
@@ -47,6 +50,16 @@ static const struct default_options aarch_option_optimization_table[] =
9c2d31
     { OPT_LEVELS_NONE, 0, NULL, 0 }
9c2d31
   };
9c2d31
 
9c2d31
+/* Implement TARGET_OPTION_INIT_STRUCT.  */
9c2d31
+
9c2d31
+static void
9c2d31
+aarch64_option_init_struct (struct gcc_options *opts)
9c2d31
+{
9c2d31
+  /* By default, always emit DWARF-2 unwind info.  This allows debugging
9c2d31
+     without maintaining a stack frame back-chain.  */
9c2d31
+  opts->x_flag_asynchronous_unwind_tables = 1;
9c2d31
+}
9c2d31
+
9c2d31
 /* Implement TARGET_HANDLE_OPTION.
9c2d31
    This function handles the target specific options for CPU/target selection.
9c2d31