Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Compile tests/lib/libc/sys/t_msgrcv with -O0 on hppa to avoi...
details: https://anonhg.NetBSD.org/src/rev/ecaa6c2e5529
branches: trunk
changeset: 788839:ecaa6c2e5529
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Jul 23 07:04:18 2013 +0000
description:
Compile tests/lib/libc/sys/t_msgrcv with -O0 on hppa to avoid compiler
bug.
diffstat:
doc/HACKS | 14 +++++++++++++-
tests/lib/libc/sys/Makefile | 6 +++++-
2 files changed, 18 insertions(+), 2 deletions(-)
diffs (44 lines):
diff -r 9b96d3eaeb86 -r ecaa6c2e5529 doc/HACKS
--- a/doc/HACKS Tue Jul 23 07:03:16 2013 +0000
+++ b/doc/HACKS Tue Jul 23 07:04:18 2013 +0000
@@ -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 @@
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
+
diff -r 9b96d3eaeb86 -r ecaa6c2e5529 tests/lib/libc/sys/Makefile
--- a/tests/lib/libc/sys/Makefile Tue Jul 23 07:03:16 2013 +0000
+++ b/tests/lib/libc/sys/Makefile Tue Jul 23 07:04:18 2013 +0000
@@ -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 @@
WARNS= 4
+.if ${HAVE_GCC:U} == "45" && ${MACHINE_CPU} == "hppa"
+COPTS.t_msgrcv.c += ${${ACTIVE_CC} == "gcc" :? -O0 :}
+.endif
+
.include <bsd.test.mk>
Home |
Main Index |
Thread Index |
Old Index