mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
toolchain/tasking: add dependencies rules for tasking compiler
Tasking compiler uses customized compilation options for generating dependencies files Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
@@ -944,6 +944,85 @@
|
||||
|
||||
# define no_builtin(n)
|
||||
|
||||
/* TASKING (Infineon AURIX C/C++)-specific definitions **********************/
|
||||
|
||||
#elif defined(__TASKING__)
|
||||
|
||||
/* Define these here and allow specific architectures to override as needed */
|
||||
|
||||
# define CONFIG_HAVE_LONG_LONG 1
|
||||
# define CONFIG_HAVE_FLOAT 1
|
||||
# define CONFIG_HAVE_DOUBLE 1
|
||||
# define CONFIG_HAVE_LONG_DOUBLE 1
|
||||
|
||||
/* Pre-processor */
|
||||
|
||||
# define CONFIG_CPP_HAVE_VARARGS 1 /* Supports variable argument macros */
|
||||
|
||||
/* Intriniscs */
|
||||
|
||||
# define CONFIG_HAVE_FUNCTIONNAME 1 /* Has __FUNCTION__ */
|
||||
# define CONFIG_HAVE_FILENAME 1 /* Has __FILE__ */
|
||||
|
||||
# undef CONFIG_CPP_HAVE_WARNING
|
||||
# undef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
# define weak_alias(name, aliasname)
|
||||
# define weak_data __attribute__((weak))
|
||||
# define weak_function __attribute__((weak))
|
||||
# define weak_const_function __attribute__((weak, __const__))
|
||||
# define restrict
|
||||
# define noreturn_function
|
||||
# define farcall_function __attribute__((long_call))
|
||||
# define predict_true(x) (x)
|
||||
# define predict_false(x) (x)
|
||||
# define aligned_data(n) __attribute__((aligned(n)))
|
||||
# define locate_code(n) __attribute__((section(n)))
|
||||
# define locate_data(n) __attribute__((section(n)))
|
||||
# define begin_packed_struct
|
||||
# define end_packed_struct __attribute__((packed))
|
||||
# define reentrant_function
|
||||
# define naked_function
|
||||
# define always_inline_function __attribute__((always_inline))
|
||||
# define noinline_function __attribute__((noinline))
|
||||
# define noinstrument_function
|
||||
# define nooptimiziation_function __attribute__((optimize(0)))
|
||||
# define nosanitize_address
|
||||
# define nosanitize_undefined
|
||||
# define nostackprotect_function
|
||||
# define unused_code __attribute__((unused))
|
||||
# define unused_data __attribute__((unused))
|
||||
# define used_code __attribute__((used))
|
||||
# define used_data __attribute__((used))
|
||||
# define fopen_like
|
||||
# define popen_like
|
||||
# define malloc_like
|
||||
# define malloc_like1(a)
|
||||
# define malloc_like2(a, b)
|
||||
# define realloc_like(a)
|
||||
# define format_like(a)
|
||||
# define printf_like(a, b)
|
||||
# define syslog_like(a, b)
|
||||
# define scanf_like(a, b)
|
||||
# define strftime_like(a)
|
||||
|
||||
# define FAR
|
||||
# define NEAR
|
||||
# define DSEG
|
||||
# define CODE
|
||||
# define IOBJ
|
||||
# define IPTR
|
||||
|
||||
# undef CONFIG_SMALL_MEMORY
|
||||
# undef CONFIG_LONG_IS_NOT_INT
|
||||
# undef CONFIG_PTR_IS_NOT_INT
|
||||
|
||||
# define UNUSED(a) ((void)(1 || &(a)))
|
||||
|
||||
# define offsetof(a, b) ((size_t)(&(((a *)(0))->b)))
|
||||
# define return_address(x) 0
|
||||
|
||||
# define no_builtin(n)
|
||||
|
||||
/* Unknown compiler *********************************************************/
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user