File tree 1 file changed +13
-1
lines changed 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 27
27
#include <stddef.h>
28
28
29
29
#ifdef HAVE_IEEEFP_H
30
- #include <ieeefp.h>
30
+ /// On FreeBSD with ubsan/clang we get the following:
31
+ /// `/usr/include/machine/ieeefp.h:161:17: runtime error: left shift of negative value -1`
32
+ /// `SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/include/machine/ieeefp.h:161:17`
33
+ /// ...
34
+ /// `_newcw |= (~_m << FP_MSKS_OFF) & FP_MSKS_FLD;`
35
+ ///
36
+ # if __has_feature (undefined_behavior_sanitizer ) && defined(__FreeBSD__ ) && defined(__clang__ )
37
+ # pragma clang attribute push (__attribute__((no_sanitize("undefined"))), apply_to=function)
38
+ # endif
39
+ # include <ieeefp.h>
40
+ # if __has_feature (undefined_behavior_sanitizer ) && defined(__FreeBSD__ ) && defined(__clang__ )
41
+ # pragma clang attribute pop
42
+ # endif
31
43
#endif
32
44
33
45
#include "zend_portability.h"
You can’t perform that action at this time.
0 commit comments