Source-Changes-HG archive

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

[src/trunk]: src On MACHINE_ARCH==arm, compile newsyslog(8) with -fno-gcse-lm.



details:   https://anonhg.NetBSD.org/src/rev/2381602e7c97
branches:  trunk
changeset: 554210:2381602e7c97
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Oct 26 01:56:54 2003 +0000

description:
On MACHINE_ARCH==arm, compile newsyslog(8) with -fno-gcse-lm.
Fixes PRs [toolchain/22986] [toolchain/23002] [toolchain/23217]

diffstat:

 doc/HACKS                  |  14 +++++++++++++-
 usr.bin/newsyslog/Makefile |   7 ++++++-
 2 files changed, 19 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r 824dbb50c77a -r 2381602e7c97 doc/HACKS
--- a/doc/HACKS Sun Oct 26 01:44:22 2003 +0000
+++ b/doc/HACKS Sun Oct 26 01:56:54 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.10 2003/09/26 13:39:49 skrll Exp $
+# $NetBSD: HACKS,v 1.11 2003/10/26 01:56:54 lukem Exp $
 #
 # This file is intended to document workarounds for currently unsolved
 # (mostly) compiler bugs.
@@ -237,3 +237,15 @@
        is observed on e.g. the sun3 port.  Ideally the "types" for
        symbols should be consistent across all ports.
 kcah
+
+hack   gcc 3.3.x bug
+cdate  Sun Oct 26 01:50:16 UTC 2003
+who    lukem
+port   MACHINE_ARCH == arm
+file   usr.bin/newsyslog/newsyslog.c
+pr     22986 23002 23217
+descr
+       newsyslog fails with
+               newsyslog: config line 7: bad flags
+       solved when compiled with -fno-gcse-lm
+kcah
diff -r 824dbb50c77a -r 2381602e7c97 usr.bin/newsyslog/Makefile
--- a/usr.bin/newsyslog/Makefile        Sun Oct 26 01:44:22 2003 +0000
+++ b/usr.bin/newsyslog/Makefile        Sun Oct 26 01:56:54 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.14 2002/11/30 03:10:56 lukem Exp $
+#      $NetBSD: Makefile,v 1.15 2003/10/26 01:56:54 lukem Exp $
 
 PROG=  newsyslog
 SRCS=  newsyslog.c
@@ -6,4 +6,9 @@
 MAN=   newsyslog.8
 MLINKS+=newsyslog.8 newsyslog.conf.5
 
+.if ${MACHINE_ARCH} == "arm"
+# XXX  gcc 3.3 generates a non-functional newsyslog without this
+COPTS.newsyslog.c+=    -fno-gcse-lm
+.endif
+
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index