* config/i386/i386.c: Include intl.h.
(ix86_option_override_internal): Use cond ? G_("...") : G_("...")
instead of just cond ? "..." : "...".
* config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
* coverage.c (read_counts_file): Likewise.
* omp-offload.c: Include intl.h.
(oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
of just cond ? "..." : "...".
* gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
of just cond ? "..." : "...".
c/
* c-parser.c (c_parser_asm_statement): Use cond ? G_("...") : G_("...")
instead of just cond ? "..." : "...".
(c_parser_oacc_enter_exit_data): Use %s and ternary operator only
for "enter"/"exit" keyword.
(c_finish_oacc_routine): Don't use %s to supply portions of the
message.
cp/
* decl.c (find_decomp_class_base): Use cond ? G_("...") : G_("...")
instead of just cond ? "..." : "...".
(grokdeclarator): Likewise.
(build_enumerator): Likewise.
* init.c (build_new_1): Likewise.
* call.c (build_new_method_call_1): Likewise.
* parser.c: Include intl.h.
(cp_parser_oacc_enter_exit_data): Use %s and ternary operator only for
"enter"/"exit" keyword.
(cp_finalize_oacc_routine): Don't use %s to supply portions of the
message.
fortran/
* parse.c (parse_critical_block): Use cond ? G_("...") : G_("...")
instead of just cond ? "..." : "...".
* scanner.c (gfc_next_char_literal): Likewise.
* match.c (match_exit_cycle): Likewise.
From-SVN: r245778
+2017-02-28 Jakub Jelinek <jakub@redhat.com>
+
+ * config/i386/i386.c: Include intl.h.
+ (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
+ instead of just cond ? "..." : "...".
+ * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
+ * coverage.c (read_counts_file): Likewise.
+ * omp-offload.c: Include intl.h.
+ (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
+ of just cond ? "..." : "...".
+ * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
+ of just cond ? "..." : "...".
+
2017-02-28 Richard Earnshaw <rearnsha@arm.com>
PR target/79742
+2017-02-28 Jakub Jelinek <jakub@redhat.com>
+
+ * c-parser.c (c_parser_asm_statement): Use cond ? G_("...") : G_("...")
+ instead of just cond ? "..." : "...".
+ (c_parser_oacc_enter_exit_data): Use %s and ternary operator only
+ for "enter"/"exit" keyword.
+ (c_finish_oacc_routine): Don't use %s to supply portions of the
+ message.
+
2017-02-24 Jakub Jelinek <jakub@redhat.com>
PR c++/79588
#include "gimple-parser.h"
#include "read-rtl-function.h"
#include "run-rtl-passes.h"
+#include "intl.h"
/* We need to walk over decls with incomplete struct/union/enum types
after parsing the whole translation unit.
{
if (!c_parser_require (parser, CPP_COLON,
is_goto
- ? "expected %<:%>"
- : "expected %<:%> or %<)%>"))
+ ? G_("expected %<:%>")
+ : G_("expected %<:%> or %<)%>")))
goto error_close_paren;
/* Once past any colon, we're no longer a simple asm. */
if (strcmp (p, "data") != 0)
{
- error_at (loc, enter
- ? "expected %<data%> after %<#pragma acc enter%>"
- : "expected %<data%> after %<#pragma acc exit%>");
+ error_at (loc, "expected %<data%> after %<#pragma acc %s%>",
+ enter ? "enter" : "exit");
parser->error = true;
c_parser_skip_to_pragma_eol (parser);
return;
if (omp_find_clause (clauses, OMP_CLAUSE_MAP) == NULL_TREE)
{
- error_at (loc, enter
- ? "%<#pragma acc enter data%> has no data movement clause"
- : "%<#pragma acc exit data%> has no data movement clause");
+ error_at (loc, "%<#pragma acc %s data%> has no data movement clause",
+ enter ? "enter" : "exit");
return;
}
if (TREE_USED (fndecl) || (!is_defn && DECL_SAVED_TREE (fndecl)))
{
error_at (data->loc,
- "%<#pragma acc routine%> must be applied before %s",
- TREE_USED (fndecl) ? "use" : "definition");
+ TREE_USED (fndecl)
+ ? G_("%<#pragma acc routine%> must be applied before use")
+ : G_("%<#pragma acc routine%> must be applied before "
+ "definition"));
data->error_seen = true;
return;
}
#include "selftest.h"
#include "selftest-rtl.h"
#include "print-rtl.h"
+#include "intl.h"
/* This file should be included last. */
#include "target-def.h"
else if (!strcmp (opts->x_ix86_tune_string, "x86-64"))
warning (OPT_Wdeprecated,
main_args_p
- ? "%<-mtune=x86-64%> is deprecated; use %<-mtune=k8%> "
- "or %<-mtune=generic%> instead as appropriate"
- : "%<target(\"tune=x86-64\")%> is deprecated; use "
- "%<target(\"tune=k8\")%> or %<target(\"tune=generic\")%> "
- "instead as appropriate");
+ ? G_("%<-mtune=x86-64%> is deprecated; use %<-mtune=k8%> "
+ "or %<-mtune=generic%> instead as appropriate")
+ : G_("%<target(\"tune=x86-64\")%> is deprecated; use "
+ "%<target(\"tune=k8\")%> or %<target(\"tune=generic\")%>"
+ " instead as appropriate"));
}
else
{
if (!strcmp (opts->x_ix86_arch_string, "generic"))
{
error (main_args_p
- ? "%<generic%> CPU can be used only for %<-mtune=%> switch"
- : "%<generic%> CPU can be used only for "
- "%<target(\"tune=\")%> attribute");
+ ? G_("%<generic%> CPU can be used only for %<-mtune=%> "
+ "switch")
+ : G_("%<generic%> CPU can be used only for "
+ "%<target(\"tune=\")%> attribute"));
return false;
}
else if (!strcmp (opts->x_ix86_arch_string, "intel"))
{
error (main_args_p
- ? "%<intel%> CPU can be used only for %<-mtune=%> switch"
- : "%<intel%> CPU can be used only for "
- "%<target(\"tune=\")%> attribute");
+ ? G_("%<intel%> CPU can be used only for %<-mtune=%> "
+ "switch")
+ : G_("%<intel%> CPU can be used only for "
+ "%<target(\"tune=\")%> attribute"));
return false;
}
if (i == pta_size)
{
error (main_args_p
- ? "bad value (%qs) for %<-march=%> switch"
- : "bad value (%qs) for %<target(\"arch=\")%> attribute",
+ ? G_("bad value (%qs) for %<-march=%> switch")
+ : G_("bad value (%qs) for %<target(\"arch=\")%> attribute"),
opts->x_ix86_arch_string);
auto_vec <const char *> candidates;
if (hint)
inform (input_location,
main_args_p
- ? "valid arguments to %<-march=%> switch are: "
- "%s; did you mean %qs?"
- : "valid arguments to %<target(\"arch=\")%> attribute are: "
- "%s; did you mean %qs?", s, hint);
+ ? G_("valid arguments to %<-march=%> switch are: "
+ "%s; did you mean %qs?")
+ : G_("valid arguments to %<target(\"arch=\")%> attribute are: "
+ "%s; did you mean %qs?"), s, hint);
else
inform (input_location,
main_args_p
- ? "valid arguments to %<-march=%> switch are: %s"
- : "valid arguments to %<target(\"arch=\")%> attribute are: %s",
- s);
+ ? G_("valid arguments to %<-march=%> switch are: %s")
+ : G_("valid arguments to %<target(\"arch=\")%> attribute "
+ "are: %s"), s);
XDELETEVEC (s);
}
if (ix86_tune_specified && i == pta_size)
{
error (main_args_p
- ? "bad value (%qs) for %<-mtune=%> switch"
- : "bad value (%qs) for %<target(\"tune=\")%> attribute",
+ ? G_("bad value (%qs) for %<-mtune=%> switch")
+ : G_("bad value (%qs) for %<target(\"tune=\")%> attribute"),
opts->x_ix86_tune_string);
auto_vec <const char *> candidates;
if (hint)
inform (input_location,
main_args_p
- ? "valid arguments to %<-mtune=%> switch are: "
- "%s; did you mean %qs?"
- : "valid arguments to %<target(\"tune=\")%> attribute are: "
- "%s; did you mean %qs?", s, hint);
+ ? G_("valid arguments to %<-mtune=%> switch are: "
+ "%s; did you mean %qs?")
+ : G_("valid arguments to %<target(\"tune=\")%> attribute are: "
+ "%s; did you mean %qs?"), s, hint);
else
inform (input_location,
main_args_p
- ? "valid arguments to %<-mtune=%> switch are: %s"
- : "valid arguments to %<target(\"tune=\")%> attribute are: %s",
- s);
+ ? G_("valid arguments to %<-mtune=%> switch are: %s")
+ : G_("valid arguments to %<target(\"tune=\")%> attribute "
+ "are: %s"), s);
XDELETEVEC (s);
}
if (TARGET_RTD_P (opts->x_target_flags))
warning (0,
- main_args_p ? "%<-mrtd%> is ignored in 64bit mode"
- : "%<target(\"rtd\")%> is ignored in 64bit mode");
+ main_args_p
+ ? G_("%<-mrtd%> is ignored in 64bit mode")
+ : G_("%<target(\"rtd\")%> is ignored in 64bit mode"));
}
else
{
if (TARGET_SSEREGPARM_P (opts->x_target_flags)
&& ! TARGET_SSE_P (opts->x_ix86_isa_flags))
error (main_args_p
- ? "%<-msseregparm%> used without SSE enabled"
- : "%<target(\"sseregparm\")%> used without SSE enabled");
+ ? G_("%<-msseregparm%> used without SSE enabled")
+ : G_("%<target(\"sseregparm\")%> used without SSE enabled"));
if (opts_set->x_ix86_fpmath)
{
if (opts_set->x_target_flags & MASK_ACCUMULATE_OUTGOING_ARGS)
warning (0,
main_args_p
- ? "stack probing requires %<-maccumulate-outgoing-args%> "
- "for correctness"
- : "stack probing requires "
- "%<target(\"accumulate-outgoing-args\")%> for correctness");
+ ? G_("stack probing requires %<-maccumulate-outgoing-args%> "
+ "for correctness")
+ : G_("stack probing requires "
+ "%<target(\"accumulate-outgoing-args\")%> for "
+ "correctness"));
opts->x_target_flags |= MASK_ACCUMULATE_OUTGOING_ARGS;
}
if (opts_set->x_target_flags & MASK_ACCUMULATE_OUTGOING_ARGS)
warning (0,
main_args_p
- ? "fixed ebp register requires %<-maccumulate-outgoing-args%>"
- : "fixed ebp register requires "
- "%<target(\"accumulate-outgoing-args\")%>");
+ ? G_("fixed ebp register requires "
+ "%<-maccumulate-outgoing-args%>")
+ : G_("fixed ebp register requires "
+ "%<target(\"accumulate-outgoing-args\")%>"));
opts->x_target_flags |= MASK_ACCUMULATE_OUTGOING_ARGS;
}
if (fn_level < 0 && dims[GOMP_DIM_VECTOR] >= 0)
warning_at (decl ? DECL_SOURCE_LOCATION (decl) : UNKNOWN_LOCATION, 0,
dims[GOMP_DIM_VECTOR]
- ? "using vector_length (%d), ignoring %d"
- : "using vector_length (%d), ignoring runtime setting",
+ ? G_("using vector_length (%d), ignoring %d")
+ : G_("using vector_length (%d), ignoring runtime setting"),
PTX_VECTOR_LENGTH, dims[GOMP_DIM_VECTOR]);
dims[GOMP_DIM_VECTOR] = PTX_VECTOR_LENGTH;
changed = true;
gcov_sync (offset, length);
if ((is_error = gcov_is_error ()))
{
- error (is_error < 0 ? "%qs has overflowed" : "%qs is corrupted",
+ error (is_error < 0
+ ? G_("%qs has overflowed")
+ : G_("%qs is corrupted"),
da_file_name);
delete counts_hash;
counts_hash = NULL;
+2017-02-28 Jakub Jelinek <jakub@redhat.com>
+
+ * decl.c (find_decomp_class_base): Use cond ? G_("...") : G_("...")
+ instead of just cond ? "..." : "...".
+ (grokdeclarator): Likewise.
+ (build_enumerator): Likewise.
+ * init.c (build_new_1): Likewise.
+ * call.c (build_new_method_call_1): Likewise.
+ * parser.c: Include intl.h.
+ (cp_parser_oacc_enter_exit_data): Use %s and ternary operator only for
+ "enter"/"exit" keyword.
+ (cp_finalize_oacc_routine): Don't use %s to supply portions of the
+ message.
+
2017-02-27 Jason Merrill <jason@redhat.com>
PR c++/71568 - SFINAE forming pointer to member function
else if (DECL_CONSTRUCTOR_P (current_function_decl)
|| DECL_DESTRUCTOR_P (current_function_decl))
warning (0, (DECL_CONSTRUCTOR_P (current_function_decl)
- ? "pure virtual %q#D called from constructor"
- : "pure virtual %q#D called from destructor"),
+ ? G_("pure virtual %q#D called from constructor")
+ : G_("pure virtual %q#D called from destructor")),
fn);
}
error_at (loc, "cannot decompose non-public member %qD of %qT",
field, type);
inform (DECL_SOURCE_LOCATION (field),
- TREE_PRIVATE (field) ? "declared private here"
- : "declared protected here");
+ TREE_PRIVATE (field)
+ ? G_("declared private here")
+ : G_("declared protected here"));
return error_mark_node;
}
else
{
maybe_warn_cpp0x (CPP0X_REF_QUALIFIER);
error ((flags == DTOR_FLAG)
- ? "destructors may not be ref-qualified"
- : "constructors may not be ref-qualified");
+ ? G_("destructors may not be ref-qualified")
+ : G_("constructors may not be ref-qualified"));
rqual = REF_QUAL_NONE;
}
}
if (type && cxx_dialect < cxx11
&& itk > itk_unsigned_long)
- pedwarn (input_location, OPT_Wlong_long, pos ? "\
-incremented enumerator value is too large for %<unsigned long%>" : "\
-incremented enumerator value is too large for %<long%>");
+ pedwarn (input_location, OPT_Wlong_long,
+ pos ? G_("\
+incremented enumerator value is too large for %<unsigned long%>") : G_("\
+incremented enumerator value is too large for %<long%>"));
}
if (type == NULL_TREE)
overflowed = true;
{
pedwarn (EXPR_LOC_OR_LOC (outer_nelts, input_location), OPT_Wvla,
typedef_variant_p (orig_type)
- ? "non-constant array new length must be specified "
- "directly, not by typedef"
+ ? G_("non-constant array new length must be specified "
+ "directly, not by typedef")
: G_("non-constant array new length must be specified "
"without parentheses around the type-id"));
}
if (strcmp (p, "data") != 0)
{
- error_at (loc, enter
- ? "expected %<data%> after %<#pragma acc enter%>"
- : "expected %<data%> after %<#pragma acc exit%>");
+ error_at (loc, "expected %<data%> after %<#pragma acc %s%>",
+ enter ? "enter" : "exit");
cp_parser_skip_to_pragma_eol (parser, pragma_tok);
return NULL_TREE;
}
if (TREE_USED (fndecl) || (!is_defn && DECL_SAVED_TREE (fndecl)))
{
error_at (parser->oacc_routine->loc,
- "%<#pragma acc routine%> must be applied before %s",
- TREE_USED (fndecl) ? "use" : "definition");
+ TREE_USED (fndecl)
+ ? G_("%<#pragma acc routine%> must be applied before use")
+ : G_("%<#pragma acc routine%> must be applied before "
+ "definition"));
parser->oacc_routine = NULL;
return;
}
+2017-02-28 Jakub Jelinek <jakub@redhat.com>
+
+ * parse.c (parse_critical_block): Use cond ? G_("...") : G_("...")
+ instead of just cond ? "..." : "...".
+ * scanner.c (gfc_next_char_literal): Likewise.
+ * match.c (match_exit_cycle): Likewise.
+
2017-02-26 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/51119
if (o != NULL)
{
gfc_error (is_oacc (p)
- ? "%s statement at %C leaving OpenACC structured block"
- : "%s statement at %C leaving OpenMP structured block",
+ ? G_("%s statement at %C leaving OpenACC structured block")
+ : G_("%s statement at %C leaving OpenMP structured block"),
gfc_ascii_statement (st));
return MATCH_ERROR;
}
for (sd = gfc_state_stack; sd; sd = sd->previous)
if (sd->state == COMP_OMP_STRUCTURED_BLOCK)
gfc_error_now (is_oacc (sd)
- ? "CRITICAL block inside of OpenACC region at %C"
- : "CRITICAL block inside of OpenMP region at %C");
+ ? G_("CRITICAL block inside of OpenACC region at %C")
+ : G_("CRITICAL block inside of OpenMP region at %C"));
s.ext.end_do_label = new_st.label1;
if (i == 4)
old_loc = gfc_current_locus;
}
- gfc_error (is_openmp ? "Wrong OpenACC continuation at %C: "
- "expected !$ACC, got !$OMP"
- : "Wrong OpenMP continuation at %C: "
- "expected !$OMP, got !$ACC");
+ gfc_error (is_openmp
+ ? G_("Wrong OpenACC continuation at %C: "
+ "expected !$ACC, got !$OMP")
+ : G_("Wrong OpenMP continuation at %C: "
+ "expected !$OMP, got !$ACC"));
}
if (c != '&')
if (gfc_wide_tolower (c) != (unsigned char) "*$acc"[i])
is_openmp = 1;
}
- gfc_error (is_openmp ? "Wrong OpenACC continuation at %C: "
- "expected !$ACC, got !$OMP"
- : "Wrong OpenMP continuation at %C: "
- "expected !$OMP, got !$ACC");
+ gfc_error (is_openmp
+ ? G_("Wrong OpenACC continuation at %C: "
+ "expected !$ACC, got !$OMP")
+ : G_("Wrong OpenMP continuation at %C: "
+ "expected !$OMP, got !$ACC"));
}
else if (!openmp_flag && !openacc_flag)
for (i = 0; i < 5; i++)
gcov_sync (base, length);
if ((error = gcov_is_error ()))
{
- fnotice (stderr, error < 0 ? "%s:overflowed\n" : "%s:corrupted\n",
+ fnotice (stderr,
+ error < 0
+ ? N_("%s:overflowed\n")
+ : N_("%s:corrupted\n"),
da_file_name);
goto cleanup;
}
#include "lto-section-names.h"
#include "gomp-constants.h"
#include "gimple-pretty-print.h"
+#include "intl.h"
/* Describe the OpenACC looping structure of a function. The entire
function is held in a 'NULL' loop. */
if (noisy)
error_at (loop->loc,
seq_par
- ? "%<seq%> overrides other OpenACC loop specifiers"
- : "%<auto%> conflicts with other OpenACC loop "
- "specifiers");
+ ? G_("%<seq%> overrides other OpenACC loop specifiers")
+ : G_("%<auto%> conflicts with other OpenACC loop "
+ "specifiers"));
maybe_auto = false;
loop->flags &= ~OLF_AUTO;
if (seq_par)