diff options
author | David Malcolm <dmalcolm@redhat.com> | 2017-03-21 16:26:09 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2017-03-21 16:26:09 +0000 |
commit | efebb49e44278330ed9ed9c60da62c813722bebf (patch) | |
tree | b326f28187d102bbb71514c4496a97083a492df6 /gcc | |
parent | edc1747f1f60974e9005c3ef992b818007666655 (diff) | |
download | gcc-efebb49e44278330ed9ed9c60da62c813722bebf.zip gcc-efebb49e44278330ed9ed9c60da62c813722bebf.tar.gz gcc-efebb49e44278330ed9ed9c60da62c813722bebf.tar.bz2 |
omp-offload.c: translation fixes (PR translation/80001)
gcc/ChangeLog:
PR translation/80001
* omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
more amenable to translation.
(oacc_loop_auto_partitions): Likewise.
From-SVN: r246326
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/omp-offload.c | 21 |
2 files changed, 22 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2998017..15a2441 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-03-21 David Malcolm <dmalcolm@redhat.com> + + PR translation/80001 + * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics + more amenable to translation. + (oacc_loop_auto_partitions): Likewise. + 2017-03-21 Marek Polacek <polacek@redhat.com> Martin Sebor <msebor@redhat.com> diff --git a/gcc/omp-offload.c b/gcc/omp-offload.c index 520bb91..d73955c 100644 --- a/gcc/omp-offload.c +++ b/gcc/omp-offload.c @@ -1150,14 +1150,20 @@ oacc_loop_fixed_partitions (oacc_loop *loop, unsigned outer_mask) if (outer) { error_at (loop->loc, - "%s uses same OpenACC parallelism as containing loop", - loop->routine ? "routine call" : "inner loop"); + loop->routine + ? G_("routine call uses same OpenACC parallelism" + " as containing loop") + : G_("inner loop uses same OpenACC parallelism" + " as containing loop")); inform (outer->loc, "containing loop here"); } else error_at (loop->loc, - "%s uses OpenACC parallelism disallowed by containing " - "routine", loop->routine ? "routine call" : "loop"); + loop->routine + ? G_("routine call uses OpenACC parallelism disallowed" + " by containing routine") + : G_("loop uses OpenACC parallelism disallowed" + " by containing routine")); if (loop->routine) inform (DECL_SOURCE_LOCATION (loop->routine), @@ -1322,8 +1328,11 @@ oacc_loop_auto_partitions (oacc_loop *loop, unsigned outer_mask, loop->mask |= this_mask; if (!loop->mask && noisy) warning_at (loop->loc, 0, - "insufficient partitioning available" - " to parallelize%s loop", tiling ? " tile" : ""); + tiling + ? G_("insufficient partitioning available" + " to parallelize tile loop") + : G_("insufficient partitioning available" + " to parallelize loop")); } if (assign && dump_file) |