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]

[arm] Use atexit by default


The ARM EABI provides and requires the use of __cxa_atexit[1].
Patch below makes this the default for eabi based targets.

Ok?

Paul

[1] It actually says __aeabi_atexit, but that's a different problem.

2004-09-02  Paul Brook  <paul@codesourcery.com>

 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
 default_use_cxa_atexit=yes.

Index: config.gcc
===================================================================
RCS file: /var/cvsroot/gcc-cvs/gcc/gcc/config.gcc,v
retrieving revision 1.485
diff -u -p -r1.485 config.gcc
--- config.gcc 1 Sep 2004 16:27:05 -0000 1.485
+++ config.gcc 2 Sep 2004 15:22:28 -0000
@@ -657,6 +657,7 @@ arm*-*-eabi* | arm*-*-symbianelf* )
  # registers r0-r3.  Correctly modeling that requires the use of
  # TImode.
  need_64bit_hwint=yes
+ default_use_cxa_atexit=yes
  tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h"
  tmake_file="t-slibgcc-elf-ver arm/t-arm arm/t-arm-elf"
  case ${target} in


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