aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Monakov <amonakov@ispras.ru>2016-07-20 16:47:12 +0300
committerAlexander Monakov <amonakov@gcc.gnu.org>2016-07-20 16:47:12 +0300
commitb25ea150b6d2b9021f785ce4397e0ffe478b5a42 (patch)
tree3813ab7a07201d7f13e1d386274979e1581cf3c2
parentde6a69eea8eda77b8944c538c70620e7d25d5b2b (diff)
downloadgcc-b25ea150b6d2b9021f785ce4397e0ffe478b5a42.zip
gcc-b25ea150b6d2b9021f785ce4397e0ffe478b5a42.tar.gz
gcc-b25ea150b6d2b9021f785ce4397e0ffe478b5a42.tar.bz2
nvptx: do not implicitly enable -ftoplevel-reorder
* config/nvptx/nvptx.c (nvptx_option_override): Do not set flag_toplevel_reorder. From-SVN: r238518
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/nvptx/nvptx.c6
2 files changed, 5 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 82eb3cc..54dfc13 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-07-20 Alexander Monakov <amonakov@ispras.ru>
+
+ * config/nvptx/nvptx.c (nvptx_option_override): Do not set
+ flag_toplevel_reorder.
+
2016-07-20 David Malcolm <dmalcolm@redhat.com>
* gcc-rich-location.c
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c
index 6c78699..4b5b8d5 100644
--- a/gcc/config/nvptx/nvptx.c
+++ b/gcc/config/nvptx/nvptx.c
@@ -156,12 +156,6 @@ nvptx_option_override (void)
{
init_machine_status = nvptx_init_machine_status;
- /* Set toplevel_reorder, unless explicitly disabled. We need
- reordering so that we emit necessary assembler decls of
- undeclared variables. */
- if (!global_options_set.x_flag_toplevel_reorder)
- flag_toplevel_reorder = 1;
-
/* Set flag_no_common, unless explicitly disabled. We fake common
using .weak, and that's not entirely accurate, so avoid it
unless forced. */