From b25ea150b6d2b9021f785ce4397e0ffe478b5a42 Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Wed, 20 Jul 2016 16:47:12 +0300 Subject: [PATCH] nvptx: do not implicitly enable -ftoplevel-reorder * config/nvptx/nvptx.c (nvptx_option_override): Do not set flag_toplevel_reorder. From-SVN: r238518 --- gcc/ChangeLog | 5 +++++ gcc/config/nvptx/nvptx.c | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 82eb3ccb396..54dfc1332f7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-07-20 Alexander Monakov + + * config/nvptx/nvptx.c (nvptx_option_override): Do not set + flag_toplevel_reorder. + 2016-07-20 David Malcolm * gcc-rich-location.c diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 6c78699d75f..4b5b8d5b704 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. */ -- 2.30.2