This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Does weak work on PPC with -O2?
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: Does weak work on PPC with -O2?
- From: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- Date: Mon, 12 Mar 2001 12:36:45 -0800 (PST)
In case it helps define this problem at all
I have discovered that the only optimization
flag that fixes the problem at -O2 is...
gcc -O2 -fno-rerun-cse-after-loop weak.c
for..
#include <stdio.h>
extern void *foo __attribute__ ((__weak__));
main ()
{
printf ("foo: %p\n", &foo == NULL ? NULL : foo);
}
Jack