Patchwork gcc/tree-complex.c: Fix minor typo in comment

login
register
mail settings
Submitter Thomas Quinot
Date July 5, 2013, 9:28 a.m.
Message ID <20130705092835.GA15500@adacore.com>
Download mbox | patch
Permalink /patch/257064/
State New
Headers show

Comments

Thomas Quinot - July 5, 2013, 9:28 a.m.
2013-07-06  Thomas Quinot  <quinot@adacore.com>

gcc/
        * tree-complex.c: Fix minor typo in comment

OK to commit?
Florian Weimer - July 5, 2013, 9:29 a.m.
On 07/05/2013 11:28 AM, Thomas Quinot wrote:
> 2013-07-06  Thomas Quinot  <quinot@adacore.com>
>
> gcc/
>          * tree-complex.c: Fix minor typo in comment
>
> OK to commit?

I think this falls under the "obvious" rule.  (But your date in the 
changelog is off.)
Paolo Carlini - July 5, 2013, 9:31 a.m.
On 07/05/2013 11:28 AM, Thomas Quinot wrote:
> 2013-07-06  Thomas Quinot  <quinot@adacore.com>
>
> gcc/
>          * tree-complex.c: Fix minor typo in comment
>
> OK to commit?
In my opinion this qualifies as obvious.

Paolo.

Patch

diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c
index c45ba19..acd0169 100644
--- a/gcc/tree-complex.c
+++ b/gcc/tree-complex.c
@@ -1476,7 +1476,7 @@  expand_complex_operations_1 (gimple_stmt_iterator *gsi)
     case EQ_EXPR:
     case NE_EXPR:
       /* Note, both GIMPLE_ASSIGN and GIMPLE_COND may have an EQ_EXPR
-	 subocde, so we need to access the operands using gimple_op.  */
+	 subcode, so we need to access the operands using gimple_op.  */
       inner_type = TREE_TYPE (gimple_op (stmt, 1));
       if (TREE_CODE (inner_type) != COMPLEX_TYPE)
 	return;