Module Name:    src
Committed By:   skrll
Date:           Tue Jul 23 07:04:18 UTC 2013

Modified Files:
        src/doc: HACKS
        src/tests/lib/libc/sys: Makefile

Log Message:
Compile tests/lib/libc/sys/t_msgrcv with -O0 on hppa to avoid compiler
bug.


To generate a diff of this commit:
cvs rdiff -u -r1.130 -r1.131 src/doc/HACKS
cvs rdiff -u -r1.32 -r1.33 src/tests/lib/libc/sys/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/doc/HACKS
diff -u src/doc/HACKS:1.130 src/doc/HACKS:1.131
--- src/doc/HACKS:1.130	Wed Jun  5 13:54:26 2013
+++ src/doc/HACKS	Tue Jul 23 07:04:18 2013
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.130 2013/06/05 13:54:26 joerg Exp $
+# $NetBSD: HACKS,v 1.131 2013/07/23 07:04:18 skrll Exp $
 #
 # This file is intended to document workarounds for currently unsolved
 # (mostly) compiler bugs.
@@ -801,3 +801,15 @@ descr
 	if either gcc or clang is installed, use /usr/bin/clang-cpp as fallback.
 	This applies only if RPCGEN_CPP is not set and /usr/bin/cpp is not executable.
 kcah
+
+port	hp700
+
+	hack	compiler error with gcc 4.5.x
+	cdate	Tue Jul 23 07:42:28 BST 2013
+	who	skrll
+	file	src/tests/lib/libc/sys/Makefile: 
+	descr
+		workaround for codegen bug affecting t_msgrcv.c. Callee saved (%r4)
+		corruption.
+	kcah
+

Index: src/tests/lib/libc/sys/Makefile
diff -u src/tests/lib/libc/sys/Makefile:1.32 src/tests/lib/libc/sys/Makefile:1.33
--- src/tests/lib/libc/sys/Makefile:1.32	Fri Mar  8 17:01:54 2013
+++ src/tests/lib/libc/sys/Makefile	Tue Jul 23 07:04:18 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2013/03/08 17:01:54 martin Exp $
+# $NetBSD: Makefile,v 1.33 2013/07/23 07:04:18 skrll Exp $
 
 MKMAN=	no
 
@@ -75,5 +75,9 @@ LDADD.t_posix_fadvise+= -lrumpvfs -lrump
 
 WARNS=			4
 
+.if ${HAVE_GCC:U} == "45" && ${MACHINE_CPU} == "hppa"
+COPTS.t_msgrcv.c +=	${${ACTIVE_CC} == "gcc" :? -O0 :}
+.endif
+
 .include <bsd.test.mk>
 

Reply via email to