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/9b37bf769eec
branches: trunk
changeset: 343831:9b37bf769eec
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 dd31b304ec7c -r 9b37bf769eec 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 dd31b304ec7c -r 9b37bf769eec 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