+2022-06-30 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * gimplify.cc (gimplify_scan_omp_clauses): Remove extra
+ '%<..%>' pair in format string.
+
+2022-06-30 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * omp-data-optimize.cc (omp_data_optimize_add_candidate): Suppress
+ format checking.
+ (omp_data_optimize_can_be_private): Likewise.
+ (omp_data_optimize_can_be_private): Likewise.
+
2022-05-13 Kwok Cheung Yeung <kcy@codesourcery.com>
* omp-expand.cc (expand_omp_target): Gimplify launch dimensions used
}
if (uc == NULL_TREE)
{
- error_at (OMP_CLAUSE_LOCATION (c), "allocator %<%qE%> "
+ error_at (OMP_CLAUSE_LOCATION (c), "allocator %qE "
"requires %<uses_allocators(%E)%> clause in "
"target region", allocator, allocator);
remove = true;
inhibit_descriptor in;
in.stmt = NULL;
+#if __GNUC__ >= 10
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wformat"
+#endif
if (DECL_EXTERNAL (var))
{
if (dump_enabled_p () && dump_flags & TDF_DETAILS)
in.kind = INHIBIT_NOT;
}
+#if __GNUC__ >= 10
+# pragma GCC diagnostic pop
+#endif
if (state->candidates.put (var, in))
gcc_unreachable ();
state.bb = *state.scanned_bb.get (root_id);
}
+#if __GNUC__ >= 10
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wformat"
+#endif
if (dump_enabled_p () && dump_flags & TDF_DETAILS)
{
for (hash_map<const void*,ODO_BB>::iterator it = state.scanned_bb.begin ();
: state.bb.access == ACCESS_UNKNOWN
? "complex control flow"
: "unknown reason"));
+#if __GNUC__ >= 10
+# pragma GCC diagnostic pop
+#endif
return state.bb.access == ACCESS_DEF_FIRST;
}
if (!id) {
/* The variable was not a parameter or named in any bind, so it
must be in an external scope, and therefore live-on-exit. */
+#if __GNUC__ >= 10
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wformat"
+#endif
if (dump_enabled_p ())
dump_printf_loc(MSG_MISSED_OPTIMIZATION, DUMP_LOC (*pc),
"%qs not optimized: %<%T%> is unsuitable"
" for privatization\n",
c_s_prev, var);
continue;
+#if __GNUC__ >= 10
+# pragma GCC diagnostic pop
+#endif
}
switch (id->kind)
}
break;
+#if __GNUC__ >= 10
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wformat"
+#endif
case INHIBIT_USE: /* Optimization inhibited by a variable use. */
if (dump_enabled_p ())
{
" for privatization\n", c_s_prev, var);
}
break;
+#if __GNUC__ >= 10
+# pragma GCC diagnostic pop
+#endif
default:
gcc_unreachable ();