Patchwork [translation] Bunch of trivial PRs: 48638, 49517, 49704

login
register
mail settings
Submitter Paolo Carlini
Date Oct. 19, 2011, 1:11 p.m.
Message ID <4E9ECC88.3050104@oracle.com>
Download mbox | patch
Permalink /patch/120627/
State New
Headers show

Comments

Paolo Carlini - Oct. 19, 2011, 1:11 p.m.
Hi,

a bunch of trivial fixes from Roland. The only one I deem *slightly* 
more controversial is "AST" uppercase instead of "ast" in 
cp/semantics.c, I'm gonna wait a bit in case Jason has a different 
opinion...

Thanks,
Paolo.

////////////////////
2011-10-19  Roland Stigge  <stigge@antcom.de>  

	PR translation/48638
	* plugin.c (add_new_plugin): Fix typo in fatal_error message.

2011-10-19  Roland Stigge  <stigge@antcom.de>  

	PR translation/49517
	* config/rx/rx.c (rx_print_operand): Fix typo in warning message.

/cp
2011-10-19  Roland Stigge  <stigge@antcom.de>

	PR translation/49704    
	* semantics.c (potential_constant_expression_1): Use AST instead of
	ast in sorry message.
Jason Merrill - Oct. 19, 2011, 1:14 p.m.
OK.

Jason
H.J. Lu - Oct. 19, 2011, 3:54 p.m.
On Wed, Oct 19, 2011 at 6:11 AM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> Hi,
>
> a bunch of trivial fixes from Roland. The only one I deem *slightly* more
> controversial is "AST" uppercase instead of "ast" in cp/semantics.c, I'm
> gonna wait a bit in case Jason has a different opinion...
>
> Thanks,
> Paolo.
>

We also need to update plugin tests:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50796

Patch

Index: cp/semantics.c
===================================================================
--- cp/semantics.c	(revision 180185)
+++ cp/semantics.c	(working copy)
@@ -8341,7 +8341,7 @@  potential_constant_expression_1 (tree t, bool want
       return false;
 
     default:
-      sorry ("unexpected ast of kind %s", tree_code_name[TREE_CODE (t)]);
+      sorry ("unexpected AST of kind %s", tree_code_name[TREE_CODE (t)]);
       gcc_unreachable();
       return false;
     }
Index: plugin.c
===================================================================
--- plugin.c	(revision 180181)
+++ plugin.c	(working copy)
@@ -1,5 +1,5 @@ 
 /* Support for GCC plugin mechanism.
-   Copyright (C) 2009, 2010 Free Software Foundation, Inc.
+   Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -149,7 +149,7 @@  add_new_plugin (const char* plugin_name)
 			    plugin_name, ".so", NULL);
       if (access (plugin_name, R_OK))
 	fatal_error
-	  ("inacessible plugin file %s expanded from short plugin name %s: %m",
+	  ("inaccessible plugin file %s expanded from short plugin name %s: %m",
 	   plugin_name, base_name);
     }
   else
Index: config/rx/rx.c
===================================================================
--- config/rx/rx.c	(revision 180181)
+++ config/rx/rx.c	(working copy)
@@ -637,7 +637,7 @@  rx_print_operand (FILE * file, rtx op, int letter)
 	case 0xb: fprintf (file, "fintv"); break;
 	case 0xc: fprintf (file, "intb"); break;
 	default:
-	  warning (0, "unreocgnized control register number: %d - using 'psw'",
+	  warning (0, "unrecognized control register number: %d - using 'psw'",
 		   (int) INTVAL (op));
 	  fprintf (file, "psw");
 	  break;