From: Alexander Monakov Date: Wed, 20 Jul 2016 13:47:12 +0000 (+0300) Subject: nvptx: do not implicitly enable -ftoplevel-reorder X-Git-Tag: basepoints/gcc-8~5609 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b25ea150b6d2b9021f785ce4397e0ffe478b5a42;p=thirdparty%2Fgcc.git nvptx: do not implicitly enable -ftoplevel-reorder * config/nvptx/nvptx.c (nvptx_option_override): Do not set flag_toplevel_reorder. From-SVN: r238518 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 82eb3ccb396b..54dfc1332f7c 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 6c78699d75f6..4b5b8d5b7043 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. */