mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 07:43:57 +07:00
6ec4476ac8
I realize that we fairly recently raised it to 4.8, but the fact is, 4.9
is a much better minimum version to target.
We have a number of workarounds for actual bugs in pre-4.9 gcc versions
(including things like internal compiler errors on ARM), but we also
have some syntactic workarounds for lacking features.
In particular, raising the minimum to 4.9 means that we can now just
assume _Generic() exists, which is likely the much better replacement
for a lot of very convoluted built-time magic with conditionals on
sizeof and/or __builtin_choose_expr() with same_type() etc.
Using _Generic also means that you will need to have a very recent
version of 'sparse', but thats easy to build yourself, and much less of
a hassle than some old gcc version can be.
The latest (in a long string) of reasons for minimum compiler version
upgrades was commit
|
||
---|---|---|
.. | ||
sched | ||
unaligned | ||
atomic.h | ||
bitmap.h | ||
bitops.h | ||
bits.h | ||
bug.h | ||
build_bug.h | ||
compiler-gcc.h | ||
compiler.h | ||
const.h | ||
coresight-pmu.h | ||
ctype.h | ||
debug_locks.h | ||
delay.h | ||
err.h | ||
export.h | ||
filter.h | ||
ftrace.h | ||
gfp.h | ||
hardirq.h | ||
hash.h | ||
hashtable.h | ||
interrupt.h | ||
irqflags.h | ||
jhash.h | ||
kallsyms.h | ||
kern_levels.h | ||
kernel.h | ||
linkage.h | ||
list.h | ||
lockdep.h | ||
log2.h | ||
module.h | ||
mutex.h | ||
nmi.h | ||
numa.h | ||
overflow.h | ||
poison.h | ||
proc_fs.h | ||
rbtree_augmented.h | ||
rbtree.h | ||
rcu.h | ||
refcount.h | ||
ring_buffer.h | ||
seq_file.h | ||
sizes.h | ||
spinlock.h | ||
stacktrace.h | ||
string.h | ||
stringify.h | ||
time64.h | ||
types.h | ||
zalloc.h |