Author: shihui
Date: 2011-05-04 22:45:45 -0400 (Wed, 04 May 2011)
New Revision: 3584

Modified:
   trunk/osprey/be/com/constraint_graph.cxx
Log:
Fix bug765:

Memcpy without arguments is generated in application configuration phase.
To test if lib can link memcpy.
ConstraintGraph::handleMemcopy didn't handle this case, expect src/dest 
argument. 

Fix is when memcpy arguments incomplete, return early, doesn't mark the actual 
parameter modeled.

Code review by Min Zhao


Modified: trunk/osprey/be/com/constraint_graph.cxx
===================================================================
--- trunk/osprey/be/com/constraint_graph.cxx    2011-05-03 21:18:00 UTC (rev 
3583)
+++ trunk/osprey/be/com/constraint_graph.cxx    2011-05-05 02:45:45 UTC (rev 
3584)
@@ -2128,6 +2128,11 @@
 
   ConstraintGraphNode *p1Node = cgNode(firstParmId);
   ConstraintGraphNode *p2Node = cgNode(secondParmId);
+  // this can happen when configure generate a file 
+  // with dummy memcpy, memmove call
+  if (p1Node == NULL || p2Node == NULL) {
+    return;
+  }
   ConstraintGraphNode *tmp = genTempCGNode();
 
   // Now, we model the semantics by inserting a read edge from


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to