This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: A patch for testsuite (1 of 2 committed)
- To: "H.J. Lu" <hjl at lucon dot org>, egcs-patches at cygnus dot com
- Subject: Re: A patch for testsuite (1 of 2 committed)
- From: Robert Lipe <robertl at dgii dot com>
- Date: Mon, 24 Aug 1998 10:51:51 -0500
- References: <m0zANQb-00038xC@ocean.lucon.org>
I committed the second of these patches. I also fixed the same problem
in 980310-1.C.
RJL
H.J. Lu wrote:
> 1. malloc may have a different prototype in <stdlib.h> on glibc 2.
> 2. size_t is not "unsigned int" on Linux/alpha.
>
> --
> H.J. Lu (hjl@gnu.org)
> ---
> Index: g++.old-deja/g++.law/arm13.C
> ===================================================================
> RCS file: /home/work/cvs/gnu/egcs/gcc/testsuite/g++.old-deja/g++.law/arm13.C,v
> retrieving revision 1.1.1.1
> diff -u -r1.1.1.1 arm13.C
> --- arm13.C 1997/08/26 00:21:16 1.1.1.1
> +++ arm13.C 1998/08/22 23:46:06
> @@ -1,10 +1,11 @@
> // GROUPS passed ARM-compliance
> #include <stdio.h>
> -#include <stdlib.h>
>
> inline void *operator new(size_t, void *place) { return place; }
> +extern "C" {
> void* malloc(size_t);
> void free(void*);
> +};
>
> main()
> {
> Index: g++.old-deja/g++.robertl/eb71.C
> ===================================================================
> RCS file: /home/work/cvs/gnu/egcs/gcc/testsuite/g++.old-deja/g++.robertl/eb71.C,v
> retrieving revision 1.1.1.2
> diff -u -r1.1.1.2 eb71.C
> --- eb71.C 1998/06/01 19:16:23 1.1.1.2
> +++ eb71.C 1998/08/16 17:21:23
> @@ -1,5 +1,5 @@
> // Build don't link:
> -typedef unsigned int size_t;
> +typedef __SIZE_TYPE__ size_t;
>
> class A {
>