[Patch AArch64] Turn on -fasynchronous-unwind-tables and -funwind-tables by default
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Tue, 27 Mar 2018 09:26:16 +0000 (09:26 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Tue, 27 Mar 2018 09:26:16 +0000 (09:26 +0000)
2018-03-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

* config.gcc (aarch64*-*-linux*): New TARGET_DEFAULT_ASYNC_UNWIND_TABLES
* common/config/aarch64/aarch64-common.c (aarch64_optimization_table[]):
Turn on fasynchronous-unwind-tables and funwind-tables.

From-SVN: r258871

gcc/ChangeLog
gcc/common/config/aarch64/aarch64-common.c
gcc/config.gcc

index e2a809c3a17b71c9f38fb414cde77b9bc12d44dd..e4f0ff515bb32a43b511d77002888c20a46b699f 100644 (file)
@@ -1,3 +1,9 @@
+2018-03-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
+
+       * config.gcc (aarch64*-*-linux*): New TARGET_DEFAULT_ASYNC_UNWIND_TABLES
+       * common/config/aarch64/aarch64-common.c (aarch64_optimization_table[]):
+       Turn on fasynchronous-unwind-tables and funwind-tables.
+
 2018-03-26  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/85073
index 7fd93050037734d52f9f5fc4eec03be320995fe5..a9fc5f1707ef9fe5c5ba393f0ede0f8cbcb35a39 100644 (file)
@@ -53,6 +53,10 @@ static const struct default_options aarch_option_optimization_table[] =
     { OPT_LEVELS_1_PLUS, OPT_fsched_pressure, NULL, 1 },
     /* Enable redundant extension instructions removal at -O2 and higher.  */
     { OPT_LEVELS_2_PLUS, OPT_free, NULL, 1 },
+#if (TARGET_DEFAULT_ASYNC_UNWIND_TABLES == 1)
+    { OPT_LEVELS_ALL, OPT_fasynchronous_unwind_tables, NULL, 1 },
+    { OPT_LEVELS_ALL, OPT_funwind_tables, NULL, 1},
+#endif
     { OPT_LEVELS_NONE, 0, NULL, 0 }
   };
 
index f7b2659bef6a43367f888f8d3efd0fc76c389b1e..1b58c060a927444d0d0c5f62ba2ff255624bb4d1 100644 (file)
@@ -983,6 +983,7 @@ aarch64*-*-linux*)
        tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h"
        tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-linux.h"
        tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aarch64-linux"
+       tm_defines="${tm_defines}  TARGET_DEFAULT_ASYNC_UNWIND_TABLES=1"
        case $target in
        aarch64_be-*)
                tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"