From 3d339d5ed071df39e0f19f7f77428c7fe355459f Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Mon, 25 Jul 2016 15:37:29 +0300 Subject: [PATCH] revert: nvptx: do not implicitly enable -ftoplevel-reorder Revert 2016-07-20 Alexander Monakov * config/nvptx/nvptx.c (nvptx_option_override): Do not set flag_toplevel_reorder. From-SVN: r238710 --- gcc/ChangeLog | 8 ++++++++ gcc/config/nvptx/nvptx.c | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b55a00c9b3b..214ddcd80da 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2016-07-25 Alexander Monakov + + Revert + 2016-07-20 Alexander Monakov + + * config/nvptx/nvptx.c (nvptx_option_override): Do not set + flag_toplevel_reorder. + 2016-07-25 Richard Biener * cgraph.c (cgraph_node::verify_node): Compare against builtin diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 4b5b8d5b704..6c78699d75f 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -156,6 +156,12 @@ 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