Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libsa apply the strncmp hack only to !clang. reques...



details:   https://anonhg.NetBSD.org/src/rev/876a931dad37
branches:  trunk
changeset: 1004942:876a931dad37
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Nov 21 21:45:34 2019 +0000

description:
apply the strncmp hack only to !clang.  requested by tnn.

diffstat:

 sys/lib/libsa/ustarfs.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6088880bdfbc -r 876a931dad37 sys/lib/libsa/ustarfs.c
--- a/sys/lib/libsa/ustarfs.c   Thu Nov 21 21:42:30 2019 +0000
+++ b/sys/lib/libsa/ustarfs.c   Thu Nov 21 21:45:34 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ustarfs.c,v 1.36 2019/11/21 07:34:39 mrg Exp $ */
+/*     $NetBSD: ustarfs.c,v 1.37 2019/11/21 21:45:34 mrg Exp $ */
 
 /* [Notice revision 2.2]
  * Copyright (c) 1997, 1998 Avalon Computer Systems, Inc.
@@ -388,7 +388,7 @@
  * Until the real cause is located, work around it by using -O1
  * for this function.
  */
-#ifdef __i386__
+#if defined(__i386__) && !defined(__clang__)
 __attribute__((__optimize__("O1")))
 #endif
 __compactcall int



Home | Main Index | Thread Index | Old Index