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

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