@@ -1,3 +1,11 @@
+2014-06-04 Thomas Schwinge <thomas@codesourcery.com>
+
+ * cgraphunit.c (ipa_passes, compile): Handle flag_openacc next to
+ flag_openmp.
+ * ipa-inline-analysis.c (inline_generate_summary): Likewise.
+ * lto-streamer.c (lto_streamer_init, gate_lto_out): Likewise.
+ * passes.c (ipa_write_summaries): Likewise.
+
2014-05-12 Bernd Schmidt <bernds@codesourcery.com>
* lto-wrapper.c (ompbegin): New static variable.
@@ -2086,7 +2086,7 @@ ipa_passes (void)
if (!in_lto_p)
{
- if (flag_openmp)
+ if (flag_openacc || flag_openmp)
{
section_name_prefix = OMP_SECTION_NAME_PREFIX;
ipa_write_summaries (true);
@@ -2187,7 +2187,7 @@ compile (void)
cgraph_state = CGRAPH_STATE_IPA;
/* If LTO is enabled, initialize the streamer hooks needed by GIMPLE. */
- if (flag_lto || flag_openmp)
+ if (flag_lto || flag_openacc || flag_openmp)
lto_streamer_hooks_init ();
/* Don't run the IPA passes if there was any error or sorry messages. */
@@ -4010,7 +4010,7 @@ inline_generate_summary (void)
/* When not optimizing, do not bother to analyze. Inlining is still done
because edge redirection needs to happen there. */
- if (!optimize && !flag_lto && !flag_wpa && !flag_openmp)
+ if (!optimize && !flag_lto && !flag_wpa && !flag_openacc && !flag_openmp)
return;
function_insertion_hook_holder =
@@ -316,7 +316,7 @@ lto_streamer_init (void)
bool
gate_lto_out (void)
{
- return ((flag_generate_lto || in_lto_p || flag_openmp)
+ return ((flag_generate_lto || in_lto_p || flag_openacc || flag_openmp)
/* Don't bother doing anything if the program has errors. */
&& !seen_error ());
}
@@ -2335,7 +2335,7 @@ ipa_write_summaries (bool is_omp)
struct cgraph_node *node;
struct cgraph_node **order;
- if (!(flag_generate_lto || flag_openmp) || seen_error () )
+ if (!(flag_generate_lto || flag_openacc || flag_openmp) || seen_error () )
return;
select_what_to_dump (is_omp);