Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/compiler_rt/dist/lib Add lint bits.



details:   https://anonhg.NetBSD.org/src/rev/79ec74921635
branches:  trunk
changeset: 813973:79ec74921635
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Feb 27 22:19:35 2016 +0000

description:
Add lint bits.

diffstat:

 sys/external/bsd/compiler_rt/dist/lib/builtins/int_math.h          |  2 ++
 sys/external/bsd/compiler_rt/dist/lib/profile/InstrProfilingPort.h |  4 ++++
 2 files changed, 6 insertions(+), 0 deletions(-)

diffs (26 lines):

diff -r 60d3d562cd6e -r 79ec74921635 sys/external/bsd/compiler_rt/dist/lib/builtins/int_math.h
--- a/sys/external/bsd/compiler_rt/dist/lib/builtins/int_math.h Sat Feb 27 21:58:20 2016 +0000
+++ b/sys/external/bsd/compiler_rt/dist/lib/builtins/int_math.h Sat Feb 27 22:19:35 2016 +0000
@@ -54,6 +54,8 @@
       __typeof((x)) x_ = (x); \
       !crt_isinf(x_) && !crt_isnan(x_); \
     }))
+#elif defined(__lint__)
+#  define crt_isfinite(x) 0
 #else
 #  error "Do not know how to check for infinity"
 #endif /* __has_builtin(__builtin_isfinite) */
diff -r 60d3d562cd6e -r 79ec74921635 sys/external/bsd/compiler_rt/dist/lib/profile/InstrProfilingPort.h
--- a/sys/external/bsd/compiler_rt/dist/lib/profile/InstrProfilingPort.h        Sat Feb 27 21:58:20 2016 +0000
+++ b/sys/external/bsd/compiler_rt/dist/lib/profile/InstrProfilingPort.h        Sat Feb 27 22:19:35 2016 +0000
@@ -18,6 +18,10 @@
 #define COMPILER_RT_ALIGNAS(x) __attribute__((aligned(x)))
 #define COMPILER_RT_VISIBILITY __attribute__((visibility("hidden")))
 #define COMPILER_RT_WEAK __attribute__((weak))
+#elif defined(__lint__)
+#define COMPILER_RT_ALIGNAS(x)
+#define COMPILER_RT_VISIBILITY
+#define COMPILER_RT_WEAK
 #endif
 
 #define COMPILER_RT_SECTION(Sect) __attribute__((section(Sect)))



Home | Main Index | Thread Index | Old Index