correct defines for SIZE_TYPE and PTRDIFF_TYPE which fixes this error:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28582 "error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter". help from kettenis@, okay espie@
This commit is contained in:
parent
05b6778ae5
commit
04662e387e
16
lang/gcc/4.0/patches/patch-gcc_config_i386_openbsdelf_h
Normal file
16
lang/gcc/4.0/patches/patch-gcc_config_i386_openbsdelf_h
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-gcc_config_i386_openbsdelf_h,v 1.6 2006/10/06 12:42:42 kurt Exp $
|
||||
--- gcc/config/i386/openbsdelf.h.orig Thu Oct 5 17:43:25 2006
|
||||
+++ gcc/config/i386/openbsdelf.h Thu Oct 5 17:43:50 2006
|
||||
@@ -56,10 +56,10 @@ Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* This must agree with <machine/ansi.h> */
|
||||
#undef SIZE_TYPE
|
||||
-#define SIZE_TYPE "unsigned int"
|
||||
+#define SIZE_TYPE "long unsigned int"
|
||||
|
||||
#undef PTRDIFF_TYPE
|
||||
-#define PTRDIFF_TYPE "int"
|
||||
+#define PTRDIFF_TYPE "long int"
|
||||
|
||||
#undef WCHAR_TYPE
|
||||
#define WCHAR_TYPE "int"
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.12 2006/03/06 16:40:59 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.13 2006/10/06 12:42:42 kurt Exp $
|
||||
|
||||
ONLY_FOR_ARCHS= alpha i386 m68k sparc sparc64 powerpc vax
|
||||
#BROKEN='adjust for types changes'
|
||||
@ -7,6 +7,14 @@ V=4.1.1
|
||||
DATE=20060303
|
||||
FULL_VERSION=4.1-${DATE}
|
||||
FULL_PKGVERSION=4.1.${DATE}
|
||||
|
||||
PKGNAME= gcc-${FULL_PKGVERSION}p0
|
||||
PKGNAME-c++ = g++-${FULL_PKGVERSION}p0
|
||||
PKGNAME-estdc= libstdc++-${FULL_PKGVERSION}p0
|
||||
PKGNAME-g77= g77-${FULL_PKGVERSION}p0
|
||||
PKGNAME-java= gcj-${FULL_PKGVERSION}p0
|
||||
PKGNAME-objc= gobjc-${FULL_PKGVERSION}p0
|
||||
PKGNAME-ada= gnat-${FULL_PKGVERSION}p0
|
||||
SHARED_LIBS= estdc++ 7.0 \
|
||||
gfortran 2.0 \
|
||||
-org-w3c-dom 1.0 \
|
||||
|
16
lang/gcc/4.1/patches/patch-gcc_config_i386_openbsdelf_h
Normal file
16
lang/gcc/4.1/patches/patch-gcc_config_i386_openbsdelf_h
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-gcc_config_i386_openbsdelf_h,v 1.1 2006/10/06 12:42:42 kurt Exp $
|
||||
--- gcc/config/i386/openbsdelf.h.orig Tue Oct 3 13:20:09 2006
|
||||
+++ gcc/config/i386/openbsdelf.h Tue Oct 3 13:20:23 2006
|
||||
@@ -56,10 +56,10 @@ Boston, MA 02110-1301, USA. */
|
||||
|
||||
/* This must agree with <machine/ansi.h> */
|
||||
#undef SIZE_TYPE
|
||||
-#define SIZE_TYPE "unsigned int"
|
||||
+#define SIZE_TYPE "long unsigned int"
|
||||
|
||||
#undef PTRDIFF_TYPE
|
||||
-#define PTRDIFF_TYPE "int"
|
||||
+#define PTRDIFF_TYPE "long int"
|
||||
|
||||
#undef WCHAR_TYPE
|
||||
#define WCHAR_TYPE "int"
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2006/08/01 08:58:11 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2006/10/06 12:42:42 kurt Exp $
|
||||
|
||||
ONLY_FOR_ARCHS= alpha i386 m68k sparc sparc64 powerpc vax
|
||||
#BROKEN='adjust for types changes'
|
||||
@ -7,6 +7,14 @@ V=4.2.0
|
||||
DATE=20060715
|
||||
FULL_VERSION=4.2-${DATE}
|
||||
FULL_PKGVERSION=4.2.${DATE}
|
||||
|
||||
PKGNAME= gcc-${FULL_PKGVERSION}p0
|
||||
PKGNAME-c++ = g++-${FULL_PKGVERSION}p0
|
||||
PKGNAME-estdc= libstdc++-${FULL_PKGVERSION}p0
|
||||
PKGNAME-g77= g77-${FULL_PKGVERSION}p0
|
||||
PKGNAME-java= gcj-${FULL_PKGVERSION}p0
|
||||
PKGNAME-objc= gobjc-${FULL_PKGVERSION}p0
|
||||
PKGNAME-ada= gnat-${FULL_PKGVERSION}p0
|
||||
SHARED_LIBS= estdc++ 7.0 \
|
||||
gfortran 2.0 \
|
||||
-org-w3c-dom 1.0 \
|
||||
|
16
lang/gcc/4.2/patches/patch-gcc_config_i386_openbsdelf_h
Normal file
16
lang/gcc/4.2/patches/patch-gcc_config_i386_openbsdelf_h
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-gcc_config_i386_openbsdelf_h,v 1.1 2006/10/06 12:42:43 kurt Exp $
|
||||
--- gcc/config/i386/openbsdelf.h.orig Tue Oct 3 20:52:02 2006
|
||||
+++ gcc/config/i386/openbsdelf.h Tue Oct 3 20:52:18 2006
|
||||
@@ -56,10 +56,10 @@ Boston, MA 02110-1301, USA. */
|
||||
|
||||
/* This must agree with <machine/ansi.h> */
|
||||
#undef SIZE_TYPE
|
||||
-#define SIZE_TYPE "unsigned int"
|
||||
+#define SIZE_TYPE "long unsigned int"
|
||||
|
||||
#undef PTRDIFF_TYPE
|
||||
-#define PTRDIFF_TYPE "int"
|
||||
+#define PTRDIFF_TYPE "long int"
|
||||
|
||||
#undef WCHAR_TYPE
|
||||
#define WCHAR_TYPE "int"
|
Loading…
x
Reference in New Issue
Block a user