This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: g++.old-deja/g++.abi/cxa_vec.C
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: g++.old-deja/g++.abi/cxa_vec.C
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Date: Wed, 2 May 2001 01:55:47 -0500 (CDT)
- Reply-to: rittle at rsch dot comm dot mot dot com
This obvious patch addresses the fact that malloc.h is not a standard
ISO C header. I cut-and-paste the ChangeLog entry from ``Mon Aug 23
17:26:58 1993 Per Bothner (bothner@kalessin.cygnus.com) * rts.c: Get
malloc() from <stdlib.h>, not <malloc.h>.''
Applied to mainline only.
Regards,
Loren
* g++.old-deja/g++.abi/cxa_vec.C: Get malloc() from
<stdlib.h>, not <malloc.h>.
Index: g++.old-deja/g++.abi/cxa_vec.C
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/g++.old-deja/g++.abi/cxa_vec.C,v
retrieving revision 1.2
diff -c -r1.2 cxa_vec.C
*** cxa_vec.C 2000/11/16 04:14:37 1.2
--- cxa_vec.C 2001/04/25 19:52:39
***************
*** 6,12 ****
#include <cxxabi.h>
#include <stdio.h>
#include <new>
! #include <malloc.h>
#include <setjmp.h>
static int ctor_count = 0;
- --- 6,12 ----
#include <cxxabi.h>
#include <stdio.h>
#include <new>
! #include <stdlib.h>
#include <setjmp.h>
static int ctor_count = 0;