Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint/common Lint is a host tool - leave the sparc64...



details:   https://anonhg.NetBSD.org/src/rev/980b53cac880
branches:  trunk
changeset: 552206:980b53cac880
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 21 17:06:40 2003 +0000

description:
Lint is a host tool - leave the sparc64 hack in place if compiling with
an old compiler.

diffstat:

 usr.bin/xlint/common/param.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 65ef23079fb5 -r 980b53cac880 usr.bin/xlint/common/param.h
--- a/usr.bin/xlint/common/param.h      Sun Sep 21 17:01:43 2003 +0000
+++ b/usr.bin/xlint/common/param.h      Sun Sep 21 17:06:40 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.4 2003/09/19 16:37:59 martin Exp $ */
+/*     $NetBSD: param.h,v 1.5 2003/09/21 17:06:40 martin Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -66,7 +66,14 @@
  */
 #define WCHAR  INT
 
+/*
+ * And the sparc64 long double code generation is broken in old gcc.
+ */
+#if !defined(__sparc64__) || !defined(__GNUC__) || __GNUC__ > 2
 typedef        long double ldbl_t;
+#else
+typedef        double  ldbl_t;
+#endif
 
 /*
  * Some traditional compilers are not able to assign structures.



Home | Main Index | Thread Index | Old Index