summaryrefslogtreecommitdiffstats
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2010-02-14 19:44:07 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2010-02-14 19:44:07 +0000
commit70da6ffe6435f8e9815fa06390aefc5f552eebcf (patch)
treedcd9083bb8ddcca54218f5be9eb599e62829664f /gcc/collect2.c
parenta10b185d8c347cb28c8896b7470973f6844adf68 (diff)
downloadppe42-gcc-70da6ffe6435f8e9815fa06390aefc5f552eebcf.tar.gz
ppe42-gcc-70da6ffe6435f8e9815fa06390aefc5f552eebcf.zip
2010-02-14 Marco Poletti <poletti.marco@gmail.com>
* intl.c (fake_ngettext): New function. * intl.h (fake_ngettext): Declare. (ngettext): Define macro. * collect2.c (notice_translated): New function. (main): Use notice_translated and ngettext. * collect2.h (notice_translated): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156762 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c26
1 files changed, 23 insertions, 3 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 914015f06f9..120369a2662 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -430,6 +430,17 @@ notice (const char *cmsgid, ...)
va_end (ap);
}
+/* Notify user of a non-error, without translating the format string. */
+void
+notice_translated (const char *cmsgid, ...)
+{
+ va_list ap;
+
+ va_start (ap, cmsgid);
+ vfprintf (stderr, cmsgid, ap);
+ va_end (ap);
+}
+
/* Die when sys call fails. */
void
@@ -1809,9 +1820,18 @@ main (int argc, char **argv)
if (debug)
{
- notice ("%d constructor(s) found\n", constructors.number);
- notice ("%d destructor(s) found\n", destructors.number);
- notice ("%d frame table(s) found\n", frame_tables.number);
+ notice_translated (ngettext ("%d constructor found\n",
+ "%d constructors found\n",
+ constructors.number),
+ constructors.number);
+ notice_translated (ngettext ("%d destructor found\n",
+ "%d destructors found\n",
+ destructors.number),
+ destructors.number);
+ notice_translated (ngettext("%d frame table found\n",
+ "%d frame tables found\n",
+ frame_tables.number),
+ frame_tables.number);
}
/* If the scan exposed nothing of special interest, there's no need to
OpenPOWER on IntegriCloud