]> gcc.gnu.org Git - gcc.git/commitdiff
* cgraph.c (cgraph_node): Do not confuse nested functions and methods.
authorJan Hubicka <jh@suse.cz>
Thu, 6 Mar 2003 13:30:22 +0000 (14:30 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 6 Mar 2003 13:30:22 +0000 (13:30 +0000)
From-SVN: r63889

gcc/ChangeLog
gcc/cgraph.c

index 6cb5a3841b67b05806e089390b13f23d54493f60..6a565690cd6c94317450d016310286e7d33ef66d 100644 (file)
@@ -1,3 +1,7 @@
+Thu Mar  6 14:20:15 CET 2003  Jan Hubicka  <jh@suse.cz>
+
+       * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
+
 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
 
        * dwarf2out.c (size_of_die): Compute size of external reference to
index 185a97b56519780517f81a7b7926782ac86420f3..1a078f6750e8f10e97bc184e0f116d2f8e43fffd 100644 (file)
@@ -98,7 +98,7 @@ cgraph_node (decl)
   cgraph_nodes = node;
   cgraph_n_nodes++;
   *slot = node;
-  if (DECL_CONTEXT (decl))
+  if (DECL_CONTEXT (decl) && TREE_CODE (DECL_CONTEXT (decl)) == FUNCTION_DECL)
     {
       node->origin = cgraph_node (DECL_CONTEXT (decl));
       node->next_nested = node->origin->nested;
This page took 0.086637 seconds and 5 git commands to generate.