aboutsummaryrefslogtreecommitdiff
path: root/gcc/po
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-07-27 15:43:31 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2010-07-27 15:43:31 +0100
commit61ff2bdc6c2bc3f08a5e45aeb57e48ec21604e0a (patch)
tree8827f91fc9b3f24a4fdd5c851a07702213bfc0c3 /gcc/po
parent4e98bcaf2984720ac9be21d344e0240b3db6da07 (diff)
downloadgcc-61ff2bdc6c2bc3f08a5e45aeb57e48ec21604e0a.zip
gcc-61ff2bdc6c2bc3f08a5e45aeb57e48ec21604e0a.tar.gz
gcc-61ff2bdc6c2bc3f08a5e45aeb57e48ec21604e0a.tar.bz2
common.opt (o): Add MissingArgError.
* common.opt (o): Add MissingArgError. * doc/options.texi (MissingArgError): Document. * hooks.c (hook_bool_constcharptr_size_t_false): Remove. * hooks.h (hook_bool_constcharptr_size_t_false): Remove. * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer. * langhooks.h (struct lang_hooks): Remove missing_argument. * optc-gen.awk: Handle MissingArgError and output new structure field initializers. * opts.c (read_cmdline_option): Use missing_argument_error field instead of missing_argument langhook. * opts.h (struct cl_option): Add missing_argument_error field. * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison. c-family: * c-common.h (c_common_missing_argument): Remove. * c-opts.c (c_common_missing_argument): Remove. * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=, idirafter, imacros, include, isysroot, isystem, iquote): Add MissingArgError. * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. cp: * cp-objcp-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove. po: * exgettext: Also extract MissingArgError texts from .opt files. From-SVN: r162571
Diffstat (limited to 'gcc/po')
-rw-r--r--gcc/po/ChangeLog4
-rw-r--r--gcc/po/exgettext9
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/po/ChangeLog b/gcc/po/ChangeLog
index 2bd4754..75200f8 100644
--- a/gcc/po/ChangeLog
+++ b/gcc/po/ChangeLog
@@ -1,3 +1,7 @@
+2010-07-27 Joseph Myers <joseph@codesourcery.com>
+
+ * exgettext: Also extract MissingArgError texts from .opt files.
+
2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
PR other/44034
diff --git a/gcc/po/exgettext b/gcc/po/exgettext
index e065830..c3d9244 100644
--- a/gcc/po/exgettext
+++ b/gcc/po/exgettext
@@ -1,6 +1,6 @@
#! /bin/sh
# Wrapper around gettext for programs using the msgid convention.
-# Copyright 1998, 2001, 2002, 2003, 2009 Free Software Foundation, Inc.
+# Copyright 1998, 2001, 2002, 2003, 2009, 2010 Free Software Foundation, Inc.
# Written by Paul Eggert <eggert@twinsun.com>.
# Revised by Zack Weinberg <zackw@stanford.edu> for no-POTFILES operation.
@@ -223,6 +223,13 @@ echo "scanning option files..." >&2
if (/^[ \t]*(;|$)/ || !/^[^ \t]/) {
field = 0
} else {
+ if ((field == 1) && /MissingArgError/) {
+ line = $0
+ sub(".*MissingArgError\\(", "", line)
+ sub("\\).*", "", line)
+ printf("#line %d \"%s\"\n", lineno, file)
+ printf("_(\"%s\")\n", line)
+ }
if (field == 2) {
line = $0
printf("#line %d \"%s\"\n", lineno, file)