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

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