This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fix weak-5 on alpha
At 02:15 16.05.2002, Richard Henderson wrote:
>On Wed, May 15, 2002 at 08:23:31PM +0200, Franz Sirl wrote:
> > Remember:
> >
> > extern int __cxa_atexit (void (*func) (void *), void *arg, void *d);
> > extern void *__dso_handle;
> > int
> > atexit (void (*func) (void))
> > {
> > return __cxa_atexit ((void (*) (void *)) func, ((void *)0) ,
> > &__dso_handle == ((void *)0) ? ((void *)0) :
> > __dso_handle);
> > }
> > extern void *__dso_handle __attribute__((weak));
>
>Fixed thus.
Hmm, unfortunately I didn't notice that in your last patch, but why do you
warn about vfoo1f and vfoo1g now? In both cases the variable is defined, so
dereferencing is no problem, even if it is weak, or? Jason reminded me of
that fact and I added the DECL_EXTERNAL (newdecl) && DECL_EXTERNAL
(olddecl) check. Do you disagree?
Franz.