This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Re: 21 GCC HEAD regressions, 2 new, with your patch on 2004-07-07T22:45:18Z.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]