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

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