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: RFHelp: c-decl.c rewrite 2/3


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


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