This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fix c/19031


Hi,

same problem on s390 and s390x:

cc1plus attrib5.ii
attrib5.C:7: warning: 'void f()' aliased to undefined symbol '_f'
 void _f()
 int main()


attrib5.ii:

extern "C" {

  void f () __attribute__((weak, alias ("_f")));
  void _f () { }
}

int main ()
{
  f ();
}

assemble_alias can't find _f in the call graph because it is not declared at this point. The example works if both declarations are exchanged.

Bye,

-Andreas-


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]