This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/43946] SPEC2000 GCC fails to build with -fprofile-generate -O2 -ffast-math -flto -fwhole-program
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Apr 2010 11:19:38 -0000
- Subject: [Bug lto/43946] SPEC2000 GCC fails to build with -fprofile-generate -O2 -ffast-math -flto -fwhole-program
- References: <bug-43946-176@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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