mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Get debug version to compile with gcc 7.5.0
This commit is contained in:
@@ -91,9 +91,22 @@ _Pragma("GCC diagnostic ignored \"-Wframe-larger-than=\"")
|
||||
#define PRAGMA_REENABLE_CHECK_STACK_FRAME \
|
||||
_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 */
|
||||
|
@@ -9747,6 +9747,13 @@ void init_fill_schema_files_row(TABLE* table)
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
gcc 7.5.0 uses a lot of stack at startup to resolve Column() expressions
|
||||
Note, do not use PRAGMA_REENABLE_CHECK_STACK_FRAME later on in this file
|
||||
as this causes compilation to fail.
|
||||
*/
|
||||
PRAGMA_DISABLE_CHECK_STACK_FRAME_EXTRA
|
||||
|
||||
namespace Show {
|
||||
|
||||
ST_FIELD_INFO referential_constraints_fields_info[]=
|
||||
|
@@ -1209,6 +1209,7 @@ struct st_maria_plugin i_s_innodb_cmp_reset =
|
||||
MariaDB_PLUGIN_MATURITY_STABLE,
|
||||
};
|
||||
|
||||
PRAGMA_DISABLE_CHECK_STACK_FRAME_EXTRA
|
||||
|
||||
namespace Show {
|
||||
/* Fields of the dynamic tables
|
||||
|
Reference in New Issue
Block a user