From: amonakov Date: Wed, 20 Jul 2016 13:47:12 +0000 (+0000) Subject: nvptx: do not implicitly enable -ftoplevel-reorder X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d9babe4893fb59506f7deaad05a8403aee6671f;p=thirdparty%2Fgcc.git nvptx: do not implicitly enable -ftoplevel-reorder * config/nvptx/nvptx.c (nvptx_option_override): Do not set flag_toplevel_reorder. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238518 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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. */