This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: An egcs 1.1.2 patch for frame.h and crtstuff.c
- To: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Subject: Re: An egcs 1.1.2 patch for frame.h and crtstuff.c
- From: Jeffrey A Law <law at hurl dot cygnus dot com>
- Date: Sat, 27 Feb 1999 20:09:57 -0700
- cc: hjl at lucon dot org (H.J. Lu), egcs at egcs dot cygnus dot com, egcs-patches at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <199902252106.VAA19396@phal.cygnus.co.uk>you write:
> > > I assume the IN_CRTSTUFF is needed because we only want the external
> > > references in crtstuff to be weak, not the definitions in frame.c?
> >
> > Yes.
>
> How about adding a second declaration of __register_frame_info /
> __deregister_frame_info in crtstuff.c ? They would not need to have
> argument prototypes. Argument prototypes and attributes are cumulative,
> i.e. when the second declaration is seen, the compiler maintains a new
> merged symbol definition wich has the argument prototypes and the
> merged attribute list.
I think HJ's patch is cleaner than depending on this kind of non-obvious
behavior. ie, HJ's patch makes it explicitly clear that when compiling
for crtstuff that we want the weak attribute.
jeff