------- Comment #3 from rguenth at gcc dot gnu dot org  2010-04-30 11:19 -------
We end up with a 2nd FUNCTION_DECL "for debug info" which does not have
an assembler name set.  Created by:

Run till exit from #0  0x0000000000bbcb87 in copy_node_stat (
    node=0x7ffff5adcb00) at /space/rguenther/src/svn/trunk/gcc/tree.c:955
0x00000000004a0d41 in pop_scope ()
    at /space/rguenther/src/svn/trunk/gcc/c-decl.c:1204
1204                  tree extp = copy_node (p);
(gdb) l
1199                }
1200              else if (VAR_OR_FUNCTION_DECL_P (p))
1201                {
1202                  /* For block local externs add a special
1203                     DECL_EXTERNAL decl for debug info generation.  */
1204                  tree extp = copy_node (p);
1205
1206                  DECL_EXTERNAL (extp) = 1;
1207                  TREE_STATIC (extp) = 0;
1208                  TREE_PUBLIC (extp) = 1;

now the question is why -fprofile-arcs makes a difference here - likely
because of the different early inlining we deploy here.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43946

Reply via email to