You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/toolchain
Hauke Mehrtens be5fcf9fd7 musl: Add format attribute to some function declarations
GCC and Clang are able to check the format arguments given to a
function and warn the user if there is a error in the format arguments
or if there is a potential uncontrolled format string security problem
in the code. GCC does this automatically for some functions like
printf(), but it is also possible to annotate other functions in a way
that it will check them too. This feature is used by glibc for many
functions. This patch adds the attribute to the some functions of musl
expect for these functions where gcc automatically adds it.

GCC automatically adds checks for these functions: printf, fprintf,
sprintf, scanf, fscanf, sscanf, strftime, vprintf, vfprintf and
vsprintf.

The documentation from gcc is here:
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html

The documentation from Clang is here:
http://clang.llvm.org/docs/AttributeReference.html#format-gnu-format

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48467
9 years ago
..
binutils binutils: switch to version 2.25.1 by default 9 years ago
fortify-headers fortify-headers: update to 0.7 9 years ago
gcc gcc: drop version 4.8-linaro 9 years ago
gdb gdb: use separate patches for upstream and ARC gdb 9 years ago
glibc toolchain: Reverse glibc/eglibc conditionals to check for eglibc 9 years ago
insight build: remove check to nonexistant CONFIG_ENABLE_LOCALE variable and move DISABLE_NLS to package-defaults.mk 10 years ago
kernel-headers toolchain: remove obsolete kernel version check 9 years ago
musl musl: Add format attribute to some function declarations 9 years ago
uClibc uClibc-ng: update to 1.0.9 9 years ago
wrapper buildroot: allow specifying libc personality for external toolchains 11 years ago
Config.in toolchain/musl: remove old CONFIG_MUSL_ENABLE_DEBUG option 9 years ago
Makefile toolchain: add fortify-headers, enable FORTIFY_SOURCE by default 9 years ago
info.mk uClibc cleanup: - use full version string (0.9.30.1), instead of base (0.9.30) + extra (.1) - remove support for 0.9.28 and snapshots (building from SVN to be added later) 15 years ago