Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Compile sys/kern/uipc_socket.c -fno-strict-aliasing for now....



details:   https://anonhg.NetBSD.org/src/rev/2048c65bba9d
branches:  trunk
changeset: 554474:2048c65bba9d
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Oct 28 20:12:00 2003 +0000

description:
Compile sys/kern/uipc_socket.c -fno-strict-aliasing for now. PR 23044.

diffstat:

 doc/HACKS                      |  14 +++++++++++++-
 sys/arch/arm/conf/Makefile.arm |   6 +++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diffs (45 lines):

diff -r 161ebc7adfaf -r 2048c65bba9d doc/HACKS
--- a/doc/HACKS Tue Oct 28 19:08:12 2003 +0000
+++ b/doc/HACKS Tue Oct 28 20:12:00 2003 +0000
@@ -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 @@
        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 -r 161ebc7adfaf -r 2048c65bba9d sys/arch/arm/conf/Makefile.arm
--- a/sys/arch/arm/conf/Makefile.arm    Tue Oct 28 19:08:12 2003 +0000
+++ b/sys/arch/arm/conf/Makefile.arm    Tue Oct 28 20:12:00 2003 +0000
@@ -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 @@
 ## (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
 ##



Home | Main Index | Thread Index | Old Index