This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fix c/19031
- From: Andreas Krebbel <krebbel1 at de dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: rth at redhat dot com
- Date: Mon, 3 Jan 2005 16:13:58 +0100
- Subject: Re: fix c/19031
- Organization: IBM Deutschland Entwicklung GmbH
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-