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

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