diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 171a927e9bb..153770ac329 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-03-11 Kaveh R. Ghazi + + * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth): + Change from char[] to macros. + 2000-03-12 Neil Booth * cppinit.c (cpp_start_read): Update indirect function diff --git a/gcc/cppinit.c b/gcc/cppinit.c index e5d7768ba60..7eb127f10b6 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}