[Patch] Not very subtle fix for pr61510
authorjgreenhalgh <jgreenhalgh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Aug 2014 08:56:05 +0000 (08:56 +0000)
committerjgreenhalgh <jgreenhalgh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Aug 2014 08:56:05 +0000 (08:56 +0000)
gcc/

PR regression/61510
* cgraphunit.c (analyze_functions): Use get_create rather than get
for decls which are clones of abstract functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213425 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cgraphunit.c

index d451160..52e9ed4 100644 (file)
@@ -1,3 +1,9 @@
+2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
+
+       PR regression/61510
+       * cgraphunit.c (analyze_functions): Use get_create rather than get
+       for decls which are clones of abstract functions.
+
 2014-08-01  Martin Liska  <mliska@suse.cz>
 
        * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
index 3080b9a..02c9fa1 100644 (file)
@@ -1047,7 +1047,7 @@ analyze_functions (void)
              if (DECL_ABSTRACT_ORIGIN (decl))
                {
                  struct cgraph_node *origin_node
-                 = cgraph_node::get (DECL_ABSTRACT_ORIGIN (decl));
+                   = cgraph_node::get_create (DECL_ABSTRACT_ORIGIN (decl));
                  origin_node->used_as_abstract_origin = true;
                }
            }