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

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