Bug 44665

Summary: typo in comment, incorrect/out-of-date comment
Product: gcc Reporter: Jay <jay.krell>
Component: middle-endAssignee: Not yet assigned to anyone <unassigned>
Status: NEW ---    
Severity: normal CC: asolokha, gcc-bugs, manu
Priority: P3    
Version: 4.5.0   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed: 2010-06-25 13:14:05

Description Jay 2010-06-25 12:26:44 UTC
in gcc-4.5 and trunk:


gimplify.c:


/* Return true if T is a CALL_EXPR or an expression that can be
        ****
-  assignmed to a temporary.  Note that this predicate should only be
+  assigned to a temporary.  Note that this predicate should only be
        ****
   used during gimplification.  See the rationale for this in
   gimplify_modify_expr.  */

static bool
is_gimple_reg_rhs_or_call (tree t)


                                             ********
-      caller.  The GIMPLE predicates are in tree-gimple.c.
+      caller.  The GIMPLE predicates are in gimple.c.
                                             ********


There is no tree-gimple.c file.


I also saw a ChangeLog entry where function foo_bar was
written foo-bar or file foo-bar.c was written foo_bar.c
but I can't find it now.
You know..like..I had mistyped a function that way, grepped
for it, found it only in the ChangeLog. Hard to find from
this information alone..

 - Jay
Comment 1 Manuel López-Ibáñez 2010-06-25 13:09:43 UTC
Subject: Bug 44665

Author: manu
Date: Fri Jun 25 13:09:28 2010
New Revision: 161380

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161380
Log:
2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>

       PR 44665
       * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
       * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
       (gimplify_expr): Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.c
    trunk/gcc/tree-inline.c

Comment 2 Manuel López-Ibáñez 2010-06-25 13:14:05 UTC
FIXED in trunk.

Such fixes are considered obvious, so feel free to commit patches to fix them. Fixing changelogs and svn logs for typos falls also into the obvious category. If you do not have write access, just send a patch to gcc-patches and ask for someone to commit it.

I am not going to fix it in GCC 4.5, but anyone should feel free to backport my patch.
Comment 3 Arseny Solokha 2020-05-12 15:18:01 UTC
I believe this PR can be finally closed.