Hi I am trying to add two function calls before and after a CALL_EXPR To do this I use bsi_insert_before and bsi_insert_after But I am having an issue having both of these working in the same pass. I can make bsi_insert_before or bsi_insert_after work independently. To make them work together I use if (fndecl) { bsi_insert_before (&block_iterator1, fndecl, BSI_SAME_STMT); } if (fndecl2) { bsi_insert_after (&block_iterator1, fndecl2, BSI_NEW_STMT); } in the basic block iterator loop Can someone suggest what may be going wrong? -- Regards, Saleel Kudchadker Graduate Student School of Computing , Informatics and Decision Systems Arizona State University