mirror of
https://github.com/MariaDB/server.git
synced 2026-05-17 20:37:12 +02:00
Merge branch '10.11' into 11.4
Some checks failed
Build on Windows ARM64 / build (push) Has been cancelled
Some checks failed
Build on Windows ARM64 / build (push) Has been cancelled
This commit is contained in:
commit
89c7e2b9c7
196 changed files with 4538 additions and 1167 deletions
|
|
@ -83,17 +83,30 @@
|
|||
|
||||
/* Define pragmas to disable warnings for stack frame checking */
|
||||
|
||||
#if defined(__clang__)
|
||||
#ifdef __GNUC__
|
||||
#define PRAGMA_DISABLE_CHECK_STACK_FRAME \
|
||||
_Pragma("clang diagnostic push") \
|
||||
_Pragma("clang diagnostic ignored \"-Wframe-larger-than=\"")
|
||||
_Pragma("GCC diagnostic push") \
|
||||
_Pragma("GCC diagnostic ignored \"-Wframe-larger-than=\"")
|
||||
|
||||
#define PRAGMA_REENABLE_CHECK_STACK_FRAME \
|
||||
_Pragma("clang diagnostic pop")
|
||||
_Pragma("GCC diagnostic pop")
|
||||
|
||||
/*
|
||||
The following check is for older gcc version that allocates
|
||||
a lot of stack during startup that does not need to be checked
|
||||
*/
|
||||
|
||||
#if !defined(__clang__) && __GNUC__ < 13
|
||||
#define PRAGMA_DISABLE_CHECK_STACK_FRAME_EXTRA PRAGMA_DISABLE_CHECK_STACK_FRAME
|
||||
#else
|
||||
#define PRAGMA_DISABLE_CHECK_STACK_FRAME_EXTRA
|
||||
#endif /* !defined(__clang__) && __GNUC__ < 13 */
|
||||
|
||||
#else /*! __GNUC__ */
|
||||
#define PRAGMA_DISABLE_CHECK_STACK_FRAME
|
||||
#define PRAGMA_REENABLE_CHECK_STACK_FRAME
|
||||
#endif
|
||||
#define PRAGMA_DISABLE_CHECK_STACK_FRAME
|
||||
#define PRAGMA_DISABLE_CHECK_STACK_FRAME_EXTRA
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#endif /* _my_attribute_h */
|
||||
|
|
|
|||
|
|
@ -667,7 +667,17 @@ extern void my_mutex_end(void);
|
|||
We need to have at least 256K stack to handle calls to myisamchk_init()
|
||||
with the current number of keys and key parts.
|
||||
*/
|
||||
# if defined(__SANITIZE_ADDRESS__) || defined(WITH_UBSAN)
|
||||
#if !defined(__has_feature)
|
||||
#define __has_feature(x) 0
|
||||
#endif
|
||||
#if defined(__clang__) && __has_feature(memory_sanitizer) && !defined(DBUG_OFF)
|
||||
/*
|
||||
MSAN in Debug with clang-20.1 required more memory to complete
|
||||
mtr begin/end checks. The result without increase was MSAN
|
||||
errors triggered on a call instruction.
|
||||
*/
|
||||
# define DEFAULT_THREAD_STACK (2L<<20)
|
||||
# elif defined(__SANITIZE_ADDRESS__) || defined(WITH_UBSAN)
|
||||
/*
|
||||
Optimized WITH_ASAN=ON executables produced
|
||||
by GCC 12.3.0, GCC 13.2.0, or clang 16.0.6
|
||||
|
|
|
|||
|
|
@ -230,7 +230,6 @@ static inline longlong sec_part_unshift(longlong second_part, uint digits)
|
|||
/* Date/time rounding and truncation functions */
|
||||
static inline long my_time_fraction_remainder(long nr, uint decimals)
|
||||
{
|
||||
DBUG_ASSERT(decimals <= TIME_SECOND_PART_DIGITS);
|
||||
return nr % (long) log_10_int[TIME_SECOND_PART_DIGITS - decimals];
|
||||
}
|
||||
static inline void my_datetime_trunc(MYSQL_TIME *ltime, uint decimals)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue