[Bug target/42689] bad formatting of specs diagnostics

2019-03-13 Thread jsm28 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42689

Joseph S. Myers  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |---

--- Comment #4 from Joseph S. Myers  ---
This issue is about %e/%n diagnostics in specs, not about diagnostics in .opt
files.

By inspection, there are still some such diagnostics (e.g. in
config/pa/pa-hpux11.h) that are split into two such diagnostics in the middle
of a sentence, which is problematic for translations.  Also, there are still
the trailing newlines, though those are currently harmless (removed both by
gcc.c and by exgettext).  Also, such a diagnostic split in the source file with
backslash-newline doesn't get extracted for translation at all;
config/freebsd-spec.h has

%{pthread: %eThe -pthread option is only supported on FreeBSD when gcc \
is built with the --enable-threads configure-time option.}

which is missing from gcc.pot.

[Bug target/42689] bad formatting of specs diagnostics

2019-03-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42689

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||jakub at gcc dot gnu.org
 Resolution|--- |FIXED

--- Comment #3 from Jakub Jelinek  ---
I don't see any such issues on the current trunk:
sed -n 's/^.*\(Warn\|MissingArgError\)(\(.*\))$/\2/p' *.opt */*.opt */*/*.opt
2>/dev/null | sort -u
assertion missing after %qs
{-fhandle-exceptions has been renamed -fexceptions (and is now on by default)}
macro name missing after %qs
%<-mcpu=%> is deprecated; use %<-mtune=%> or %<-march=%> instead
%<-mfused-madd%> is deprecated; use %<-ffp-contract=%> instead
%<-mintel-syntax%> and %<-mno-intel-syntax%> are deprecated; use
%<-masm=intel%> and %<-masm=att%> instead
missing device or architecture after %qs
missing filename after %qs
missing makefile target after %qs
missing path after %qs
%<-msse5%> was removed
%<-mvrsave=no%> is deprecated; use %<-mno-vrsave%> instead
%<-mvrsave=yes%> is deprecated; use %<-mvrsave%> instead
no class name specified with %qs
options or targets missing after %qs
%qs is deprecated
%qs is deprecated; use -fno-zero-initialized-in-bss
%qs is deprecated; use -fstack-check
using old darwin ABI) Var(rs6000_darwin64_abi, 0

[Bug target/42689] bad formatting of specs diagnostics

2012-04-18 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42689

Manuel López-Ibáñez manu at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2012-04-18
 CC||manu at gcc dot gnu.org
 Ever Confirmed|0   |1

--- Comment #2 from Manuel López-Ibáñez manu at gcc dot gnu.org 2012-04-18 
16:45:14 UTC ---
So confirmed.


[Bug target/42689] bad formatting of specs diagnostics

2010-01-11 Thread jsm28 at gcc dot gnu dot org


--- Comment #1 from jsm28 at gcc dot gnu dot org  2010-01-11 15:04 ---
Correction: the newlines get removed before the messages are printed.
But they don't get removed by exgettext either before or after the patch
for bug 39521.  As they are unnecessary (at least once the message pairs
are converted into single messages), they should be removed.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42689