This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: config/alpha/elf.h (MAKE_DECL_ONE_ONLY)
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: config/alpha/elf.h (MAKE_DECL_ONE_ONLY)
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Date: Thu, 7 Jun 2001 20:04:34 -0500 (CDT)
- Reply-to: rittle at labs dot mot dot com
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