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

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