This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFHelp: c-decl.c rewrite 2/3
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: "Zack Weinberg" <zack at codesourcery dot com>
- Cc: Andrew Pinski <apinski at apple dot com>, gcc-patches at gcc dot gnu dot org, Andrew Pinski <pinskia at physics dot uc dot edu>, Per Bothner <per at bothner dot com>
- Date: Mon, 19 Jan 2004 14:40:22 -0800
- Subject: Re: RFHelp: c-decl.c rewrite 2/3
- References: <87d69p58df.fsf@egil.codesourcery.com>
Bootstrapped failed on powerpc-apple-darwin while build libiberty. The
problem is that a symbol for some reason becomes known as a common
symbol but the back-end thinks it is a local symbol while producing the
RTL in main.
The bug can be reproduced with the following code:
extern char *optarg;
char *optarg = 0;
int main()
{
optarg = "A";
}
if I comment out the "extern char ..." part or declaring optarg, it
works right.
Thanks,
Andrew Pinski
apinski@apple.com
pinskia@physics.uc.edu