This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Re: 21 GCC HEAD regressions, 2 new, with your patch on 2004-07-07T22:45:18Z.
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Andrew Pinski <apinski at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org,Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Thu, 8 Jul 2004 23:17:44 -0700
- Subject: Re: [PATCH] Re: 21 GCC HEAD regressions, 2 new, with your patch on 2004-07-07T22:45:18Z.
- References: <20040709055003.GA29236@lucon.org> <4C6A1D9B-D16D-11D8-BC99-00039351ED8A@apple.com>
On Thu, Jul 08, 2004 at 11:00:37PM -0700, Andrew Pinski wrote:
> >
> >It looks like we may need a undo_make_decl_one_only if we have to
> >change our mind like that.
>
> Yes and I was just creating one.
> Here is the patch which fixes the problem for me on
> powerpc-apple-darwin.
>
> OK? Bootstrapped on powerpc-apple-darwin.
>
> I have not added to the other targets which need the macro also.
> The C++ part and the other target support is needed for the 3.4 branch
> also.
>
> Thanks,
> Andrew Pinski
>
> ChangLog:
> * config/darwin-protos.h (darwin_make_decl_non_one_only): Prototype.
> * config/darwin.c (darwin_make_decl_non_one_only): Declare.
> * config/darwin.h (MAKE_DECL_NON_ONE_ONLY): Declare.
> * doc/tm.texi (MAKE_DECL_NON_ONE_ONLY): Document.
>
>
We need MAKE_DECL_NON_ONE_ONLY for all targets which define
MAKE_DECL_ONE_ONLY. It may look like
#ifndef MAKE_DECL_NON_ONE_ONLY
# ifdef MAKE_DECL_ONE_ONLY
#define MAKE_DECL_NON_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 0)
# endif
#endif
H.J.