aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2000-03-12 04:33:26 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2000-03-12 04:33:26 +0000
commit5e2ee78da91c2fa3dddd8775523126b3dc575ee0 (patch)
treebfefe4e118bedbc47192f2d3a6345ea8746eeede /gcc/cppinit.c
parentb1b74f937074ec7055d23e1846245f0c08f7ff55 (diff)
downloadgcc-5e2ee78da91c2fa3dddd8775523126b3dc575ee0.zip
gcc-5e2ee78da91c2fa3dddd8775523126b3dc575ee0.tar.gz
gcc-5e2ee78da91c2fa3dddd8775523126b3dc575ee0.tar.bz2
cppinit.c (no_arg, [...]): Change from char[] to macros.
* cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth): Change from char[] to macros. From-SVN: r32486
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r--gcc/cppinit.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index e5d7768..7eb127f 100644
--- a/gcc/cppinit.c
+++ b/gcc/cppinit.c
@@ -1080,12 +1080,15 @@ struct cl_option
enum opt_code opt_code;
};
-static const char no_arg[] = N_("Argument missing after `%s' option");
-static const char no_ass[] = N_("Assertion missing after `%s' option");
-static const char no_dir[] = N_("Directory name missing after `%s' option");
-static const char no_fil[] = N_("File name missing after `%s' option");
-static const char no_mac[] = N_("Macro name missing after `%s' option");
-static const char no_pth[] = N_("Path name missing after `%s' option");
+/* Irix6 "cc -n32" and OSF4 cc have problems with char foo[] = ("string");
+ I.e. a const string initializer with parens around it. That is
+ what N_("string") resolves to, so we make no_* be macros instead. */
+#define no_arg N_("Argument missing after `%s' option")
+#define no_ass N_("Assertion missing after `%s' option")
+#define no_dir N_("Directory name missing after `%s' option")
+#define no_fil N_("File name missing after `%s' option")
+#define no_mac N_("Macro name missing after `%s' option")
+#define no_pth N_("Path name missing after `%s' option")
/* This list must be ASCII sorted. Make enum order above match this. */
#define DEF_OPT(text, msg, code) {text, msg, sizeof(text) - 1, code}