Module Name: src
Committed By: christos
Date: Sat Feb 27 22:19:35 UTC 2016
Modified Files:
src/sys/external/bsd/compiler_rt/dist/lib/builtins: int_math.h
src/sys/external/bsd/compiler_rt/dist/lib/profile: InstrProfilingPort.h
Log Message:
Add lint bits.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/sys/external/bsd/compiler_rt/dist/lib/builtins/int_math.h
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/sys/external/bsd/compiler_rt/dist/lib/profile/InstrProfilingPort.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/compiler_rt/dist/lib/builtins/int_math.h
diff -u src/sys/external/bsd/compiler_rt/dist/lib/builtins/int_math.h:1.1.1.2 src/sys/external/bsd/compiler_rt/dist/lib/builtins/int_math.h:1.2
--- src/sys/external/bsd/compiler_rt/dist/lib/builtins/int_math.h:1.1.1.2 Sat Feb 27 13:59:30 2016
+++ src/sys/external/bsd/compiler_rt/dist/lib/builtins/int_math.h Sat Feb 27 17:19:35 2016
@@ -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) */
Index: src/sys/external/bsd/compiler_rt/dist/lib/profile/InstrProfilingPort.h
diff -u src/sys/external/bsd/compiler_rt/dist/lib/profile/InstrProfilingPort.h:1.1.1.1 src/sys/external/bsd/compiler_rt/dist/lib/profile/InstrProfilingPort.h:1.2
--- src/sys/external/bsd/compiler_rt/dist/lib/profile/InstrProfilingPort.h:1.1.1.1 Sat Feb 27 13:59:32 2016
+++ src/sys/external/bsd/compiler_rt/dist/lib/profile/InstrProfilingPort.h Sat Feb 27 17:19:35 2016
@@ -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)))