[DEV] some fun things i just found while building

zrythm uses some fun attributes which might be fun for the developers here:

Compiler for C supports arguments -DOPTIMIZE(x)=__attribute__((optimize(#x))): YES 
Compiler for C supports arguments -DOPTIMIZE_O0=OPTIMIZE(00): YES 
Compiler for C supports arguments -DOPTIMIZE_O1=OPTIMIZE(01): YES 
Compiler for C supports arguments -DOPTIMIZE_O2=OPTIMIZE(02): YES 
Compiler for C supports arguments -DOPTIMIZE_O3=OPTIMIZE(03): YES 
Compiler for C supports arguments -DNONNULL_ARGS(...)=__attribute__((nonnull(__VA_ARGS__))): YES 
Compiler for C supports arguments -DACCESS(...)=__attribute__((access(__VA_ARGS__))): YES 
Compiler for C supports arguments -DACCESS_READ_ONLY(...)=ACCESS(read_only,__VA_ARGS__): YES 
Compiler for C supports arguments -frecord-gcc-switches: YES 
Compiler for C supports arguments -DALWAYS_INLINE=__attribute__((always_inline)): YES 
Compiler for C supports arguments -DCOLD=__attribute__((cold)): YES 
Compiler for C supports arguments -DHOT=__attribute__((hot)): YES 
Compiler for C supports arguments -DPURE=__attribute__((pure)): YES 
Compiler for C supports arguments -DNONNULL=__attribute__((nonnull)): YES 
Compiler for C supports arguments -DRETURNS_NONNULL=__attribute__((returns_nonnull)): YES 
Compiler for C supports arguments -DSTACK_PROTECT=__attribute__((stack_protect)): YES 
Compiler for C supports arguments -DNO_STACK_PROTECTOR=__attribute__((no_stack_protector)): YES 
Compiler for C supports arguments -DWARN_UNUSED_RESULT=__attribute__((warn_unused_result)): YES 
Compiler for C supports arguments -DCONST=__attribute__((const)): YES 
Compiler for C supports arguments -DMALLOC=__attribute__((malloc)): YES 
Compiler for C supports arguments -ffast-math: YES (cached)
Compiler for C supports arguments -fstrength-reduce: YES (cached)
Compiler for C supports arguments -DPIC: YES (cached)
Compiler for C supports arguments -fdata-sections: YES (cached)
Compiler for C supports arguments -ffunction-sections: YES (cached)
Compiler for C supports arguments -freciprocal-math: YES (cached)
Compiler for C supports arguments -fsingle-precision-constant: YES (cached)
Compiler for C supports arguments -msse: YES (cached)
Compiler for C supports arguments -msse2: YES (cached)
Compiler for C supports arguments -mfpmath=sse: YES (cached)
Compiler for C supports arguments -fno-math-errno: YES (cached)
Compiler for C supports arguments -mtune=generic: YES (cached)
Compiler for C supports arguments -fomit-frame-pointer: YES (cached)
1 Like