From c5a4c60e2e450846132c4772b764cc8a34470912 Mon Sep 17 00:00:00 2001 From: skrll Date: Tue, 28 Oct 2003 20:12:00 +0000 Subject: [PATCH] Compile sys/kern/uipc_socket.c -fno-strict-aliasing for now. PR 23044. --- doc/HACKS | 14 +++++++++++++- sys/arch/arm/conf/Makefile.arm | 6 +++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/doc/HACKS b/doc/HACKS index 28552d70ef65..d8a5dad81b6d 100644 --- a/doc/HACKS +++ b/doc/HACKS @@ -1,4 +1,4 @@ -# $NetBSD: HACKS,v 1.19 2003/10/28 14:26:47 he Exp $ +# $NetBSD: HACKS,v 1.20 2003/10/28 20:12:00 skrll Exp $ # # This file is intended to document workarounds for currently unsolved # (mostly) compiler bugs. @@ -262,3 +262,15 @@ descr ffs.c causes cc1 to barf for as-yet unknown reasons. this hack ues -O0 to avoid the problem. kcah + +hack gcc 3.3.2/arm sys/kern/uipc_socket.c +cdate Tue Oct 28 18:02:16 GMT 2003 +who skrll +port MACHINE_ARCH == arm +file sys/conf/arm/Makefile.arm : 1.19 +descr + Performing a build.sh tools on a CATS with NFS mounted + obj and src directories results in "panic: receive 1" + The hack is to compile sys/kern/uipc_socket.c with + -fno-strict-aliasing +kcah diff --git a/sys/arch/arm/conf/Makefile.arm b/sys/arch/arm/conf/Makefile.arm index 5793b43f7301..b2096e599b86 100644 --- a/sys/arch/arm/conf/Makefile.arm +++ b/sys/arch/arm/conf/Makefile.arm @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.arm,v 1.18 2003/01/03 02:34:48 thorpej Exp $ +# $NetBSD: Makefile.arm,v 1.19 2003/10/28 20:12:00 skrll Exp $ # Makefile for NetBSD # @@ -76,6 +76,10 @@ cpuswitch.o fault.o machdep.o: Makefile ## (7) misc settings ## +# XXX gcc 3.3 generates incorrect code without this +# XXX see PR 23044 +COPTS.uipc_socketc+= -fno-strict-aliasing + ## ## (8) config(8) generated machinery ##