This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[arm] Use atexit by default
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Richard Earnshaw <rearnsha at arm dot com>
- Date: Thu, 2 Sep 2004 16:31:57 +0100
- Subject: [arm] Use atexit by default
- Organization: CodeSourcery
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