mirror of
https://github.com/php/php-src.git
synced 2024-11-23 01:44:06 +08:00
Merge branch 'PHP-8.3' into PHP-8.4
This commit is contained in:
commit
0d9f3a5600
@ -28,7 +28,20 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef HAVE_IEEEFP_H
|
||||
#include <ieeefp.h>
|
||||
/**
|
||||
* On FreeBSD with ubsan/clang we get the following:
|
||||
* `/usr/include/machine/ieeefp.h:161:17: runtime error: left shift of negative value -1`
|
||||
* `SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/include/machine/ieeefp.h:161:17`
|
||||
* ...
|
||||
* `_newcw |= (~_m << FP_MSKS_OFF) & FP_MSKS_FLD;`
|
||||
**/
|
||||
# if __has_feature(undefined_behavior_sanitizer) && defined(__FreeBSD__) && defined(__clang__)
|
||||
# pragma clang attribute push (__attribute__((no_sanitize("undefined"))), apply_to=function)
|
||||
# endif
|
||||
# include <ieeefp.h>
|
||||
# if __has_feature(undefined_behavior_sanitizer) && defined(__FreeBSD__) && defined(__clang__)
|
||||
# pragma clang attribute pop
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include "zend_portability.h"
|
||||
|
Loading…
Reference in New Issue
Block a user