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

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