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

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