2018-04-26 Richard Biener <rguenther@suse.de>
Tom de Vries <tom@codesourcery.com>
PR lto/85422
* lto-streamer-out.c (output_function): Fixup loops if required to match
discovery done in the reader.
* testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
Co-Authored-By: Tom de Vries <tom@codesourcery.com>
From-SVN: r259675
+2018-04-26 Richard Biener <rguenther@suse.de>
+ Tom de Vries <tom@codesourcery.com>
+
+ PR lto/85422
+ * lto-streamer-out.c (output_function): Fixup loops if required to match
+ discovery done in the reader.
+
2018-04-26 Richard Biener <rguenther@suse.de>
PR tree-optimization/85116
debug info. */
if (gimple_has_body_p (function))
{
+ /* Fixup loops if required to match discovery done in the reader. */
+ loop_optimizer_init (AVOID_CFG_MODIFICATIONS);
+
streamer_write_uhwi (ob, 1);
output_struct_function_base (ob, fn);
output_cfg (ob, fn);
+ loop_optimizer_finalize ();
pop_cfun ();
}
else
+2018-04-26 Richard Biener <rguenther@suse.de>
+ Tom de Vries <tom@codesourcery.com>
+
+ PR lto/85422
+ * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
+
2018-04-26 Tom de Vries <tom@codesourcery.com>
PR target/85519
--- /dev/null
+/* { dg-do link } */
+
+int
+main (void)
+{
+ #pragma acc parallel
+ #pragma acc loop
+ for (int i = 1; i < 10; i++)
+ for (;;)
+ ;
+
+ return 0;
+}