Check printf-style arguments with __attribute__((format(printf, 1, 2)))
Make GCC 14 check the arguments of your own printf-style logger with __attribute__((format(printf, 1, 2))), the same way it checks printf.
Short posts that solve one thing: the code, the output we got, and why it works.
Make GCC 14 check the arguments of your own printf-style logger with __attribute__((format(printf, 1, 2))), the same way it checks printf.
Find out which loops GCC 14 refused to vectorise with -fopt-info-vec-missed, which prints the loop's location and the reason it gave up.
Make a missing return fatal without turning every warning into an error, using -Werror=return-type on GCC 14, where it matters most.
Share constants and macros between NASM 2.16.03 files with %include, and use -I with a trailing slash for an include directory.
Print the exact directories GCC 14 searches for headers by preprocessing empty input with gcc -xc -E -v -, with no source file needed.
Let NASM 2.16.03 count a string for you: len equ $ - msg after the data, so write and the buffer never disagree.
Stop --gc-sections from deleting an interrupt vector table nothing references by wrapping its input section in KEEP() in a GNU ld linker script.
Turn on link-time optimisation in CMake 3.30 by setting CMAKE_INTERPROCEDURAL_OPTIMIZATION after check_ipo_supported, for GCC and Clang alike.
See every object, archive and shared library GNU ld 2.43 actually opens during a link with -Wl,--trace, in the order it reads them.
Make printf with %f print numbers under newlib-nano on Arm GNU Toolchain 13 by forcing the float formatter into the link with -Wl,-u,_printf_float.
Set up the cross-build environment from a Yocto SDK by sourcing its environment-setup script, and see what it exports in the shell.
Print Clang's abstract syntax tree for a C file with clang -Xclang -ast-dump -fsyntax-only, no object file needed, using Clang 19.
We send one email when a new post is published. No spam.