tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

aarch64 gcc kernel compilation



Hi,

Gcc is now working on aarch64 but the kernel does not compile because of
some idiomatic clang code that is not supported by gcc (at least gcc-6)

To define constants, it uses:

static const uintmax_t
FOO = __BIT(9),
BAR = FOO;

While this is nice, specially for the debugger, it produces an error
in gcc. While fixing these is easy, gcc also complains about using the
constants as switch labels. Thus it is better to just nukem all and
rewrite them as:

#define FOO __BIT(9)
#define BAR FOO

Should I go ahead and do it, or there is a smarter solution?

christos


Home | Main Index | Thread Index | Old Index