On Thu, Dec 11, 2025 at 08:02:08AM -0800, Gio T wrote:
> --- a/gcc/c/c-parser.cc
> +++ b/gcc/c/c-parser.cc
> @@ -18849,6 +18849,9 @@ c_parser_omp_clause_reduction (c_parser *parser, enum 
> omp_clause_code kind,
>         code = MULT_EXPR;
>         break;
>       case CPP_MINUS:
> +       warning_at (c_parser_peek_token (parser)->location,
> +         OPT_Wdeprecated_openmp,
> +         "%<-%> operator for reductions deprecated in OpenMP 5.2");

Please fix up formatting.  The extra arguments should be aligned below the
first argument, and too long string literal can be split among multiple
lines, just don't forget that the space needs to be just one, either
at the end of one line or start of next line, not both, not neither.
          warning_at (c_parser_peek_token (parser)->location,
                      OPT_Wdeprecated_openmp,
                      "%<-%> operator for reductions deprecated in "
                      "OpenMP 5.2");
Similarly in other spots.

        Jakub

Reply via email to