rs6000.c (call_ABI_of_interest): Call cgraph_get_create_node instead of cgraph_node.
authorPat Haugen <pthaugen@us.ibm.com>
Tue, 12 Apr 2011 20:59:41 +0000 (20:59 +0000)
committerPat Haugen <pthaugen@gcc.gnu.org>
Tue, 12 Apr 2011 20:59:41 +0000 (20:59 +0000)
        * config/rs6000/rs6000.c (call_ABI_of_interest): Call
        cgraph_get_create_node instead of cgraph_node.

From-SVN: r172345

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 6d07d40ed63f7d2b3aace541c61ffb10af74db73..bc5321726a64eca32c5177be15985cfb083cadd4 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
+
+       * config/rs6000/rs6000.c (call_ABI_of_interest): Call
+       cgraph_get_create_node instead of cgraph_node.
+
 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
 
        * c-parser.c (c_parser_initelt): Updated call to
index 4657ed331cd3d02b6efd1664f33e6fbc9ecd98af..1234cf6e212b97117bfbd8a3c43c12719fa28b92 100644 (file)
@@ -7976,7 +7976,7 @@ call_ABI_of_interest (tree fndecl)
        return true;
 
       /* Interesting functions that we are emitting in this object file.  */
-      c_node = cgraph_node (fndecl);
+      c_node = cgraph_get_create_node (fndecl);
       return !cgraph_only_called_directly_p (c_node);
     }
   return false;