Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Dec 2013 09:10:46 -0800
From:      Ricky Huang <rhuang.work@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: GCC 4.6 fails on types_used_by_cur_var_decl
Message-ID:  <2EE35243-2418-4875-BFE8-D887F3CD988F@gmail.com>
In-Reply-To: <6D1EB67A-BABF-4A63-8F14-EEAE78CFA832@gmail.com>
References:  <6D1EB67A-BABF-4A63-8F14-EEAE78CFA832@gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Dec 17, 2013, at 12:18 PM, Ricky Huang <rhuang.work@gmail.com> wrote:

> [=85]
>=20
> Is this the case where types_used_by_cur_var_decl was not extern =
declared somewhere else (probably in its header)?
>=20
> [=85]

Seeing types_used_by_cur_var_decl is declared in function.h, I did an =
#include in the complaining file c-common.c.  Now it has different =
compiler complains:

.././../gcc-4.6.4/gcc/c-family/c-gimplify.c:102:17: error: incomplete =
definition of type
      'struct cgraph_node'
  for (cgn =3D cgn->nested; cgn ; cgn =3D cgn->next_nested)
             ~~~^
.././../gcc-4.6.4/gcc/tree-inline.h:53:10: note: forward declaration of =
'struct cgraph_node'
  struct cgraph_node *src_node;
         ^
.././../gcc-4.6.4/gcc/c-family/c-gimplify.c:102:42: error: incomplete =
definition of type
      'struct cgraph_node'
  for (cgn =3D cgn->nested; cgn ; cgn =3D cgn->next_nested)
                                      ~~~^
.././../gcc-4.6.4/gcc/tree-inline.h:53:10: note: forward declaration of =
'struct cgraph_node'
  struct cgraph_node *src_node;
         ^
.././../gcc-4.6.4/gcc/c-family/c-gimplify.c:103:22: error: incomplete =
definition of type
      'struct cgraph_node'
    c_genericize (cgn->decl);

I have tried both clang and the default compiler (by modifying =
/etc/make.conf) file and neither helped=85


Help?




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?2EE35243-2418-4875-BFE8-D887F3CD988F>