Commit 597cdf4f by Joseph Myers Committed by Joseph Myers

darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs instead of `%s' in diagnostic.

	* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
	instead of `%s' in diagnostic.

cp:
	* g++spec.c, lex.c: Avoid ` as left quote in diagnostics.

fortran:
	* f95-lang.c, gfortranspec.c, trans-decl.c: Avoid ` as left quote
	in diagnostics.

java:
	* gjavah.c, jcf-dump.c, jv-scan.c, jvspec.c: Avoid ` as left quote
	in diagnostics.

From-SVN: r91282
parent cc175e7c
2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
instead of `%s' in diagnostic.
2004-11-25 Nathan Sidwell <nathan@codesourcery.com> 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
* basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust. * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
......
...@@ -103,7 +103,7 @@ do { \ ...@@ -103,7 +103,7 @@ do { \
while (base[-1] != 'm') base--; \ while (base[-1] != 'm') base--; \
\ \
if (*darwin_fix_and_continue_switch != '\0') \ if (*darwin_fix_and_continue_switch != '\0') \
error ("invalid option `%s'", base); \ error ("invalid option %qs", base); \
darwin_fix_and_continue = (base[0] != 'n'); \ darwin_fix_and_continue = (base[0] != 'n'); \
} \ } \
} \ } \
......
2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
* g++spec.c, lex.c: Avoid ` as left quote in diagnostics.
2004-11-24 Mark Mitchell <mark@codesourcery.com> 2004-11-24 Mark Mitchell <mark@codesourcery.com>
PR c++/17473 PR c++/17473
......
...@@ -235,7 +235,7 @@ lang_specific_driver (int *in_argc, const char *const **in_argv, ...@@ -235,7 +235,7 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
} }
if (quote) if (quote)
fatal ("argument to `%s' missing\n", quote); fatal ("argument to '%s' missing\n", quote);
/* If we know we don't have to do anything, bail now. */ /* If we know we don't have to do anything, bail now. */
if (! added && library <= 0) if (! added && library <= 0)
......
...@@ -616,8 +616,8 @@ unqualified_fn_lookup_error (tree name) ...@@ -616,8 +616,8 @@ unqualified_fn_lookup_error (tree name)
static bool hint; static bool hint;
if (!hint) if (!hint)
{ {
error ("(if you use `-fpermissive', G++ will accept your code, " error ("(if you use %<-fpermissive%>, G++ will accept your "
"but allowing the use of an undeclared name is " "code, but allowing the use of an undeclared name is "
"deprecated)"); "deprecated)");
hint = true; hint = true;
} }
......
2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
* f95-lang.c, gfortranspec.c, trans-decl.c: Avoid ` as left quote
in diagnostics.
2004-11-24 Steven Bosscher <stevenb@suse.de> 2004-11-24 Steven Bosscher <stevenb@suse.de>
* options.c (gfc_post_options): Don't clear flag_inline_functions. * options.c (gfc_post_options): Don't clear flag_inline_functions.
......
...@@ -620,18 +620,18 @@ gfc_mark_addressable (tree exp) ...@@ -620,18 +620,18 @@ gfc_mark_addressable (tree exp)
if (TREE_PUBLIC (x)) if (TREE_PUBLIC (x))
{ {
error error
("global register variable `%s' used in nested function", ("global register variable %qs used in nested function",
IDENTIFIER_POINTER (DECL_NAME (x))); IDENTIFIER_POINTER (DECL_NAME (x)));
return false; return false;
} }
pedwarn ("register variable `%s' used in nested function", pedwarn ("register variable %qs used in nested function",
IDENTIFIER_POINTER (DECL_NAME (x))); IDENTIFIER_POINTER (DECL_NAME (x)));
} }
else if (DECL_REGISTER (x) && !TREE_ADDRESSABLE (x)) else if (DECL_REGISTER (x) && !TREE_ADDRESSABLE (x))
{ {
if (TREE_PUBLIC (x)) if (TREE_PUBLIC (x))
{ {
error ("address of global register variable `%s' requested", error ("address of global register variable %qs requested",
IDENTIFIER_POINTER (DECL_NAME (x))); IDENTIFIER_POINTER (DECL_NAME (x)));
return true; return true;
} }
...@@ -649,7 +649,7 @@ gfc_mark_addressable (tree exp) ...@@ -649,7 +649,7 @@ gfc_mark_addressable (tree exp)
} }
#endif #endif
pedwarn ("address of register variable `%s' requested", pedwarn ("address of register variable %qs requested",
IDENTIFIER_POINTER (DECL_NAME (x))); IDENTIFIER_POINTER (DECL_NAME (x)));
} }
......
...@@ -228,7 +228,7 @@ append_arg (const char *arg) ...@@ -228,7 +228,7 @@ append_arg (const char *arg)
} }
if (g77_newargc == newargsize) if (g77_newargc == newargsize)
fatal ("overflowed output arg list for `%s'", arg); fatal ("overflowed output arg list for '%s'", arg);
g77_newargv[g77_newargc++] = arg; g77_newargv[g77_newargc++] = arg;
} }
...@@ -372,7 +372,7 @@ For more information about these matters, see the file named COPYING\n\ ...@@ -372,7 +372,7 @@ For more information about these matters, see the file named COPYING\n\
if (i + skip < argc) if (i + skip < argc)
i += skip; i += skip;
else else
fatal ("argument to `%s' missing", argv[i]); fatal ("argument to '%s' missing", argv[i]);
} }
if ((n_outfiles != 0) && (n_infiles == 0)) if ((n_outfiles != 0) && (n_infiles == 0))
......
...@@ -2091,12 +2091,12 @@ generate_local_decl (gfc_symbol * sym) ...@@ -2091,12 +2091,12 @@ generate_local_decl (gfc_symbol * sym)
if (sym->attr.referenced) if (sym->attr.referenced)
gfc_get_symbol_decl (sym); gfc_get_symbol_decl (sym);
else if (sym->attr.dummy && warn_unused_parameter) else if (sym->attr.dummy && warn_unused_parameter)
warning ("unused parameter `%s'", sym->name); warning ("unused parameter %qs", sym->name);
/* Warn for unused variables, but not if they're inside a common /* Warn for unused variables, but not if they're inside a common
block or are use-associated. */ block or are use-associated. */
else if (warn_unused_variable else if (warn_unused_variable
&& !(sym->attr.in_common || sym->attr.use_assoc)) && !(sym->attr.in_common || sym->attr.use_assoc))
warning ("unused variable `%s'", sym->name); warning ("unused variable %qs", sym->name);
} }
} }
......
2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
* gjavah.c, jcf-dump.c, jv-scan.c, jvspec.c: Avoid ` as left quote
in diagnostics.
2004-11-24 Richard Henderson <rth@redhat.com> 2004-11-24 Richard Henderson <rth@redhat.com>
* verify-glue.c (vfy_init_name, vfy_clinit_name, vfy_object_type, * verify-glue.c (vfy_init_name, vfy_clinit_name, vfy_object_type,
......
...@@ -888,7 +888,7 @@ print_method_info (FILE *stream, JCF* jcf, int name_index, int sig_index, ...@@ -888,7 +888,7 @@ print_method_info (FILE *stream, JCF* jcf, int name_index, int sig_index,
{ {
/* FIXME: i18n bug here. Order of prints should not be /* FIXME: i18n bug here. Order of prints should not be
fixed. */ fixed. */
fprintf (stderr, _("ignored method `")); fprintf (stderr, _("ignored method '"));
jcf_print_utf8 (stderr, str, length); jcf_print_utf8 (stderr, str, length);
fprintf (stderr, _("' marked virtual\n")); fprintf (stderr, _("' marked virtual\n"));
found_error = 1; found_error = 1;
...@@ -1471,7 +1471,7 @@ print_c_decl (FILE* stream, JCF* jcf, int name_index, int signature_index, ...@@ -1471,7 +1471,7 @@ print_c_decl (FILE* stream, JCF* jcf, int name_index, int signature_index,
next = decode_signature_piece (stream, str, limit, &need_space); next = decode_signature_piece (stream, str, limit, &need_space);
if (! next) if (! next)
{ {
error ("unparseable signature: `%s'", str0); error ("unparseable signature: '%s'", str0);
return; return;
} }
} }
...@@ -1573,7 +1573,7 @@ print_full_cxx_name (FILE* stream, JCF* jcf, int name_index, ...@@ -1573,7 +1573,7 @@ print_full_cxx_name (FILE* stream, JCF* jcf, int name_index,
next = decode_signature_piece (stream, str, limit, &need_space); next = decode_signature_piece (stream, str, limit, &need_space);
if (! next) if (! next)
{ {
error ("unparseable signature: `%s'", str0); error ("unparseable signature: '%s'", str0);
return; return;
} }
...@@ -1648,7 +1648,7 @@ print_stub_or_jni (FILE* stream, JCF* jcf, int name_index, ...@@ -1648,7 +1648,7 @@ print_stub_or_jni (FILE* stream, JCF* jcf, int name_index,
next = decode_signature_piece (stream, str, limit, &need_space); next = decode_signature_piece (stream, str, limit, &need_space);
if (! next) if (! next)
{ {
error ("unparseable signature: `%s'", str0); error ("unparseable signature: '%s'", str0);
return; return;
} }
} }
...@@ -2319,7 +2319,7 @@ static const struct option options[] = ...@@ -2319,7 +2319,7 @@ static const struct option options[] =
static void static void
usage (void) usage (void)
{ {
fprintf (stderr, _("Try `gcjh --help' for more information.\n")); fprintf (stderr, _("Try 'gcjh --help' for more information.\n"));
exit (1); exit (1);
} }
...@@ -2333,7 +2333,7 @@ help (void) ...@@ -2333,7 +2333,7 @@ help (void)
printf ("\n"); printf ("\n");
printf (_(" -add TEXT Insert TEXT into class body\n")); printf (_(" -add TEXT Insert TEXT into class body\n"));
printf (_(" -append TEXT Insert TEXT after class declaration\n")); printf (_(" -append TEXT Insert TEXT after class declaration\n"));
printf (_(" -friend TEXT Insert TEXT as `friend' declaration\n")); printf (_(" -friend TEXT Insert TEXT as 'friend' declaration\n"));
printf (_(" -prepend TEXT Insert TEXT before start of class\n")); printf (_(" -prepend TEXT Insert TEXT before start of class\n"));
printf ("\n"); printf ("\n");
printf (_(" --classpath PATH Set path to find .class files\n")); printf (_(" --classpath PATH Set path to find .class files\n"));
...@@ -2477,7 +2477,7 @@ main (int argc, char** argv) ...@@ -2477,7 +2477,7 @@ main (int argc, char** argv)
break; break;
case OPT_MG: case OPT_MG:
error ("`-MG' option is unimplemented"); error ("'-MG' option is unimplemented");
exit (1); exit (1);
case OPT_MD: case OPT_MD:
......
...@@ -882,7 +882,7 @@ static const struct option options[] = ...@@ -882,7 +882,7 @@ static const struct option options[] =
static void static void
usage (void) usage (void)
{ {
fprintf (stderr, _("Try `jcf-dump --help' for more information.\n")); fprintf (stderr, _("Try 'jcf-dump --help' for more information.\n"));
exit (1); exit (1);
} }
...@@ -892,7 +892,7 @@ help (void) ...@@ -892,7 +892,7 @@ help (void)
printf (_("Usage: jcf-dump [OPTION]... CLASS...\n\n")); printf (_("Usage: jcf-dump [OPTION]... CLASS...\n\n"));
printf (_("Display contents of a class file in readable form.\n\n")); printf (_("Display contents of a class file in readable form.\n\n"));
printf (_(" -c Disassemble method bodies\n")); printf (_(" -c Disassemble method bodies\n"));
printf (_(" --javap Generate output in `javap' format\n")); printf (_(" --javap Generate output in 'javap' format\n"));
printf ("\n"); printf ("\n");
printf (_(" --classpath PATH Set path to find .class files\n")); printf (_(" --classpath PATH Set path to find .class files\n"));
printf (_(" -IDIR Append directory to class path\n")); printf (_(" -IDIR Append directory to class path\n"));
......
...@@ -96,7 +96,7 @@ static const struct option options[] = ...@@ -96,7 +96,7 @@ static const struct option options[] =
static void static void
usage (void) usage (void)
{ {
fprintf (stderr, _("Try `jv-scan --help' for more information.\n")); fprintf (stderr, _("Try 'jv-scan --help' for more information.\n"));
exit (1); exit (1);
} }
...@@ -108,7 +108,7 @@ help (void) ...@@ -108,7 +108,7 @@ help (void)
printf (_(" --no-assert Don't recognize the assert keyword\n")); printf (_(" --no-assert Don't recognize the assert keyword\n"));
printf (_(" --complexity Print cyclomatic complexity of input file\n")); printf (_(" --complexity Print cyclomatic complexity of input file\n"));
printf (_(" --encoding NAME Specify encoding of input file\n")); printf (_(" --encoding NAME Specify encoding of input file\n"));
printf (_(" --print-main Print name of class containing `main'\n")); printf (_(" --print-main Print name of class containing 'main'\n"));
printf (_(" --list-class List all classes defined in file\n")); printf (_(" --list-class List all classes defined in file\n"));
printf (_(" --list-filename Print input filename when listing class names\n")); printf (_(" --list-filename Print input filename when listing class names\n"));
printf (_(" -o FILE Set output file name\n")); printf (_(" -o FILE Set output file name\n"));
...@@ -210,10 +210,10 @@ main (int argc, char **argv) ...@@ -210,10 +210,10 @@ main (int argc, char **argv)
/* Check on bad usage */ /* Check on bad usage */
if (flag_find_main + flag_dump_class + flag_complexity > 1) if (flag_find_main + flag_dump_class + flag_complexity > 1)
fatal_error fatal_error
("only one of `--print-main', `--list-class', and `--complexity' allowed"); ("only one of '--print-main', '--list-class', and '--complexity' allowed");
if (output_file && !(out = fopen (output_file, "w"))) if (output_file && !(out = fopen (output_file, "w")))
fatal_error ("can't open output file `%s'", output_file); fatal_error ("can't open output file '%s'", output_file);
ft = ftell (out); ft = ftell (out);
...@@ -248,7 +248,7 @@ main (int argc, char **argv) ...@@ -248,7 +248,7 @@ main (int argc, char **argv)
reset_report (); reset_report ();
} }
else else
fatal_error ("file not found `%s'", argv [i]); fatal_error ("file not found '%s'", argv [i]);
} }
/* Flush and close */ /* Flush and close */
......
...@@ -414,13 +414,13 @@ lang_specific_driver (int *in_argc, const char *const **in_argv, ...@@ -414,13 +414,13 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
} }
if (quote) if (quote)
fatal ("argument to `%s' missing\n", quote); fatal ("argument to '%s' missing\n", quote);
if (saw_D && ! main_class_name) if (saw_D && ! main_class_name)
fatal ("can't specify `-D' without `--main'\n"); fatal ("can't specify '-D' without '--main'\n");
if (main_class_name && ! verify_class_name (main_class_name)) if (main_class_name && ! verify_class_name (main_class_name))
fatal ("`%s' is not a valid class name", main_class_name); fatal ("'%s' is not a valid class name", main_class_name);
num_args = argc + added; num_args = argc + added;
if (saw_resource) if (saw_resource)
...@@ -531,7 +531,7 @@ lang_specific_driver (int *in_argc, const char *const **in_argv, ...@@ -531,7 +531,7 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
if (strncmp (argv[i], "-fmain=", 7) == 0) if (strncmp (argv[i], "-fmain=", 7) == 0)
{ {
if (! will_link) if (! will_link)
fatal ("cannot specify `main' class when not linking"); fatal ("cannot specify 'main' class when not linking");
--j; --j;
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment