Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/traceroute Work-around an internal compiler error o...
details: https://anonhg.NetBSD.org/src/rev/3b370cf65bdf
branches: trunk
changeset: 533974:3b370cf65bdf
user: scw <scw%NetBSD.org@localhost>
date: Thu Jul 11 20:07:07 2002 +0000
description:
Work-around an internal compiler error on the SuperH sh5 toolchain.
diffstat:
usr.sbin/traceroute/traceroute.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 48fae8dd7d74 -r 3b370cf65bdf usr.sbin/traceroute/traceroute.c
--- a/usr.sbin/traceroute/traceroute.c Thu Jul 11 19:52:25 2002 +0000
+++ b/usr.sbin/traceroute/traceroute.c Thu Jul 11 20:07:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: traceroute.c,v 1.47 2002/06/29 12:12:57 itojun Exp $ */
+/* $NetBSD: traceroute.c,v 1.48 2002/07/11 20:07:07 scw Exp $ */
/*
* Copyright (c) 1988, 1989, 1991, 1994, 1995, 1996, 1997
@@ -29,7 +29,7 @@
#else
__COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1991, 1994, 1995, 1996, 1997\n\
The Regents of the University of California. All rights reserved.\n");
-__RCSID("$NetBSD: traceroute.c,v 1.47 2002/06/29 12:12:57 itojun Exp $");
+__RCSID("$NetBSD: traceroute.c,v 1.48 2002/07/11 20:07:07 scw Exp $");
#endif
#endif
@@ -1158,7 +1158,8 @@
outudp->uh_sum = 0;
sum = in_cksum2(0, (u_short *)&phdr, sizeof(phdr));
sum = in_cksum2(sum, (u_short *)outudp, ntohs(outudp->uh_ulen));
- outudp->uh_sum = ~sum;
+ sum = ~sum; /** XXXSCW: Quell SuperH Compiler Bug */
+ outudp->uh_sum = sum;
if (outudp->uh_sum == 0)
outudp->uh_sum = 0xffff;
}
Home |
Main Index |
Thread Index |
Old Index