diff options
author | Cesar Philippidis <cesar@codesourcery.com> | 2018-04-12 11:48:56 -0700 |
---|---|---|
committer | Cesar Philippidis <cesar@gcc.gnu.org> | 2018-04-12 11:48:56 -0700 |
commit | 6b95d1af3e88992ddea645227eba39ab9f3584df (patch) | |
tree | 3740cab6519d80544a7d1b15f4397ba33f6a1e81 /gcc/lto-streamer-out.c | |
parent | e417946035bda841f537ffab208b5dc7c1a49f8f (diff) | |
download | gcc-6b95d1af3e88992ddea645227eba39ab9f3584df.zip gcc-6b95d1af3e88992ddea645227eba39ab9f3584df.tar.gz gcc-6b95d1af3e88992ddea645227eba39ab9f3584df.tar.bz2 |
Revert 259346.
gcc/
* lto-streamer-out.c (output_function): Revert 259346.
* omp-expand.c (expand_oacc_for): Likewise.
libgomp/
* testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
* testsuite/libgomp.oacc-fortran/pr84955.f90:Likewise.
From-SVN: r259351
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r-- | gcc/lto-streamer-out.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index fd6788a..1d2ab97 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -2084,9 +2084,6 @@ output_function (struct cgraph_node *node) /* Set current_function_decl and cfun. */ push_cfun (fn); - /* Fixup loops if required to match discovery done in the reader. */ - loop_optimizer_init (AVOID_CFG_MODIFICATIONS); - /* Make string 0 be a NULL string. */ streamer_write_char_stream (ob->string_stream, 0); @@ -2179,13 +2176,12 @@ output_function (struct cgraph_node *node) streamer_write_record_start (ob, LTO_null); output_cfg (ob, fn); + + pop_cfun (); } else streamer_write_uhwi (ob, 0); - loop_optimizer_finalize (); - pop_cfun (); - /* Create a section to hold the pickled output of this function. */ produce_asm (ob, function); |