[patch] to gcc: provide atexit in libgcc2 for vax-*-bsd*
Michael Sokolov
msokolov@ivan.Harhan.ORG
Sun Dec 24 08:43:00 GMT 2000
Hi there,
Now that libgcc2 always uses atexit, all targets that don't have it must set
the NEED_ATEXIT target define so that libgcc2 provides its own. The patch below
does this for 4.3BSD (vax-*-bsd*).
--
Michael Sokolov
Public Service Agent
International Engineering and Science Task Force
1351 VINE AVE APT 27 Phone: +1-714-738-5409
FULLERTON CA 92833-4291 USA (home office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP)
2000-12-24 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* config/vax/bsd.h: New file.
* config.gcc (vax-*-bsd*): Add it to tm_file.
* configure, config.in: Regenerate.
*** /dev/null Sun Dec 24 02:00:02 2000
--- config/vax/bsd.h Sat Dec 23 21:50:53 2000
***************
*** 0 ****
--- 1,22 ----
+ /* Additional VAX target macros specifically for Berkeley UNIX
+ Copyright (C) 2000 Free Software Foundation, Inc.
+
+ This file is part of GNU CC.
+
+ GNU CC is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ GNU CC is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with GNU CC; see the file COPYING. If not, write to
+ the Free Software Foundation, 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+ /* Pure BSD doesn't have atexit which we now require, so provide our own. */
+ #define NEED_ATEXIT 1
Index: config.gcc
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config.gcc,v
retrieving revision 1.15
diff -p -r1.15 config.gcc
*** config.gcc 2000/12/18 23:58:15 1.15
--- config.gcc 2000/12/24 15:50:06
*************** v850-*-*)
*** 3275,3280 ****
--- 3275,3281 ----
cxx_target_objs="v850-c.o"
;;
vax-*-bsd*) # vaxen running BSD
+ tm_file="${tm_file} vax/bsd.h"
use_collect2=yes
float_format=vax
;;
More information about the Gcc-patches
mailing list