This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Exception size reduction patch
- To: wilson at cygnus dot com (Jim Wilson)
- Subject: Re: Exception size reduction patch
- From: hjl at lucon dot org (H.J. Lu)
- Date: Fri, 24 Apr 1998 16:23:08 -0700 (PDT)
- Cc: egcs at cygnus dot com, law at cygnus dot com
>
> I think it would make more sense to use __attribute__ ((weak)), which
> should work for any target that supports weak declarations, and which
> will be harmless if it doesn't. This is better than checking for
> HANDLE_SYSV_PRAGMA, since not every target that supports weak declarations
> supports HANDLE_SYSV_PRAGMA. I don't think you need to conditionalize the
> checks for non-zero function addresses.
How does __attribute__ ((weak)) work on the external function?
Neither
extern int __attribute__ ((weak)) foo ();
nor
extern int foo () __attribute__ ((weak));
works for me.
>
> It isn't clear to me why you moved all of the eh.o stuff from libgcc2.c to
> frame.c. That just seems to make the patch larger than it needs to be.
>
It may be true.
H.J.