re PR translation/90041 (Command line option without proper quoting in translation message)

PR translation/90041
	* exgettext: Print MissingArgError, UnknownError or Warn
	*.opt argument using error or warning instead of _ to mark it
	as gcc-internal-format.

	* c.opt (-fhandle-exceptions): Use %< and %> around option names
	in the Warn diagnostics.

From-SVN: r270321
This commit is contained in:
Jakub Jelinek 2019-04-12 18:12:49 +02:00 committed by Jakub Jelinek
parent c46f1a1791
commit 63b8a1665a
4 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,9 @@
2019-04-12 Jakub Jelinek <jakub@redhat.com>
PR translation/90041
* c.opt (-fhandle-exceptions): Use %< and %> around option names
in the Warn diagnostics.
PR c/89946
* c-attribs.c (handle_patchable_function_entry_attribute): Add
function comment. Warn if arguments of the attribute are not positive

View File

@ -1516,7 +1516,7 @@ fguiding-decls
C++ ObjC++ Deprecated
fhandle-exceptions
C++ ObjC++ Optimization Alias(fexceptions) Warn({-fhandle-exceptions has been renamed -fexceptions (and is now on by default)})
C++ ObjC++ Optimization Alias(fexceptions) Warn({%<-fhandle-exceptions%> has been renamed %<-fexceptions%> (and is now on by default)})
fhonor-std
C++ ObjC++ Deprecated

View File

@ -1,5 +1,10 @@
2019-04-12 Jakub Jelinek <jakub@redhat.com>
PR translation/90041
* exgettext: Print MissingArgError, UnknownError or Warn
*.opt argument using error or warning instead of _ to mark it
as gcc-internal-format.
* de.po, sv.po: Update.
2019-04-02 Iain Buclaw <ibuclaw@gdcproject.org>

View File

@ -252,7 +252,7 @@ echo "scanning option files..." >&2
} else
sub("\\).*", "", line)
printf("#line %d \"%s\"\n", lineno, file)
printf("_(\"%s\")\n", line)
printf("error(\"%s\")\n", line)
}
if ((field == 1) && /UnknownError/) {
line = $0
@ -263,7 +263,7 @@ echo "scanning option files..." >&2
} else
sub("\\).*", "", line)
printf("#line %d \"%s\"\n", lineno, file)
printf("_(\"%s\")\n", line)
printf("error(\"%s\")\n", line)
}
if ((field == 1) && /Warn\(/) {
line = $0
@ -274,7 +274,7 @@ echo "scanning option files..." >&2
} else
sub("\\).*", "", line)
printf("#line %d \"%s\"\n", lineno, file)
printf("_(\"%s\")\n", line)
printf("warning(0, \"%s\")\n", line)
}
if (field == 2) {
line = $0