Bug 45546 - Incorrect Comments in cgraph
Summary: Incorrect Comments in cgraph
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: ipa (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Martin Liška
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-05 15:41 UTC by mandeepgrang.1234
Modified: 2021-08-16 11:51 UTC (History)
3 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2021-08-02 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mandeepgrang.1234 2010-09-05 15:41:54 UTC
In gcc-4.6.0

cgraph.c:

- /* Return local info for the compiled function.  */
+ /* Return global info for the compiled function.  */

struct cgraph_global_info *
cgraph_global_info (tree decl)
{
  struct cgraph_node *node;

  gcc_assert (TREE_CODE (decl) == FUNCTION_DECL && cgraph_global_info_ready);
  node = cgraph_node (decl);
  return &node->global;
}

- /* Return local info for the compiled function.  */
+ /* Return rtl info for the compiled function.  */

struct cgraph_rtl_info *
cgraph_rtl_info (tree decl)
{
  struct cgraph_node *node;

  gcc_assert (TREE_CODE (decl) == FUNCTION_DECL);
  node = cgraph_node (decl);
  if (decl != current_function_decl
      && !TREE_ASM_WRITTEN (node->decl))
    return NULL;
  return &node->rtl;
}
Comment 1 Martin Liška 2021-08-02 13:26:51 UTC
Lemme fix that..
Comment 2 Martin Liška 2021-08-16 11:51:08 UTC
Fixed in master, note cgraph_global_info is gone.