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]

PATCH: config/alpha/elf.h (MAKE_DECL_ONE_ONLY)


Fully bootstrapped (3.0 branch) on alpha-*-freebsd4.2 with no
regressions.  Approved by RTH and applied to mainline since it is
unclear it meets the guidelines of the 3.0 branch.  Without this
patch, __GXX_WEAK__ is not defined as best as possible for alpha/ELF
targets (and I suppose other less-directly visible issues existed).
Among other things, it does mean that typeinfo was not being handled
as best as possible.

2001-06-07  Loren J. Rittle  <ljrittle@acm.org>

	* config/alpha/elf.h (MAKE_DECL_ONE_ONLY): Copy definition
	from config/elfos.h.

Index: config/alpha/elf.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/alpha/elf.h,v
retrieving revision 1.38
diff -c -r1.38 elf.h
*** elf.h	2001/06/06 01:57:49	1.38
--- elf.h	2001/06/06 23:26:44
***************
*** 458,463 ****
--- 458,465 ----
      }						\
    while (0)
  
+ #define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1)
+ 
  #define UNIQUE_SECTION_P(DECL)   (DECL_ONE_ONLY (DECL))
  
  #undef  UNIQUE_SECTION


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