Hello Everyone,
This patch is for the Cilkplus branch affecting both C and C++ compilers.
The dwarf output function was looking for debugging information for an
internally generated spawn helper which is not there. So this patch will make
sure that those functions are excluded.
Thanks,
Balaji V. Iyer.
Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c (revision 188679)
+++ gcc/dwarf2out.c (working copy)
@@ -19548,6 +19548,12 @@
static void
dwarf2out_function_decl (tree decl)
{
+ if (flag_enable_cilk && decl && TREE_CODE (decl) == FUNCTION_DECL)
+ {
+ function *f = DECL_STRUCT_FUNCTION (decl);
+ if (f && f->is_cilk_helper_function)
+ return; /* can't do debuging output for spawn helper */
+ }
dwarf2out_decl (decl);
call_arg_locations = NULL;
call_arg_loc_last = NULL;
Index: gcc/ChangeLog.cilk
===================================================================
--- gcc/ChangeLog.cilk (revision 188679)
+++ gcc/ChangeLog.cilk (working copy)
@@ -1,3 +1,7 @@
+2012-06-15 Balaji V. Iyer <balaji.v.i...@intel.com>
+
+ * dwarf2out.c (dwarf2out_function_decl): Added a check for spawn helper.
+
2012-06-15 Balaji V. Iyer <balaji.v.i...@intel.com>
* cilk.c (install_builtin): Added a check if pushdecl is successful.