This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: fixinc hack to correct atexit declaration in ultrix 4.3
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: fixinc hack to correct atexit declaration in ultrix 4.3
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Mon, 16 Jul 2001 14:41:33 -0400 (EDT)
- Cc: bkorb at gnu dot org
Here is a small hack to fix the declaration of atexit in stdlib.h under
VAX ultrix 4.3. I have tested by inspection that the hack correctly adds
"void" to the atexit declaration. This hack is needed for using atexit
with g++.
The hack is relative to the 3.0 branch although it also needs to go
in the main.
Bruce, if this is ok, could you regen the necessary files and install
it?
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2001-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
* inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
atexit declaration in stdlib.h.
--- inclhack.def.orig Fri Jun 15 00:16:12 2001
+++ inclhack.def Mon Jul 16 13:03:52 2001
@@ -2832,6 +2832,21 @@
/*
+ * function parameter to atexit is missing "void" on VAX Ultrix 4.3.
+ */
+fix = {
+ hackname = ultrix_atexit_param;
+ files = stdlib.h;
+ select = "atexit\\(.*\\(\\)";
+
+ c_fix = format;
+ c_fix_arg = "atexit( void (*__func)( void )";
+
+ test_text = "int atexit( void (*__func)() );\n";
+};
+
+
+/*
* parameter to atof not const on DECstation Ultrix V4.0 and NEWS-OS 4.2R.
*/
fix = {