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

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