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

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