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]

[PATCH] ARM: Don't use weak linkage when comdat groups are available


Hi,

This patch was previously posted here:

http://gcc.gnu.org/ml/gcc-patches/2005-04/msg00913.html

Usage of weak linkage should be unnecessary when comdat groups are being used, so this patch disables it. However, this caused breakage on multiple platforms when the patch was last applied, due to various apparent linker problems.

The attached patch makes the change for ARM targets only.

Tested with cross to arm-none-elf from i686-pc-linux-gnu with no regressions.

OK to apply?

Julian

ChangeLog:

  * config/arm/arm.h (MAKE_DECL_ONE_ONLY): Redefine macro to stop
  DECL_WEAK being used for symbols with vague linkage when
  HAVE_COMDAT_GROUP is true.


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