foss-for-synopsys-dwc-arc-processors/linux

Kernel's inflate code may not work properly with -O3

VVIsaev opened this issue · 0 comments

There is an alignment issue with inflate code which causes some tricky problems, such as corrupted files or binaries.
Other arches don't see this because we are the only one which uses -O3 for building kernel.

There is a workaround for the issue in the arc64 branch:

# workaround for issue #372

Original problem: foss-for-synopsys-dwc-arc-processors/toolchain#372
GNU GCC issue (resolved invalid): https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100363
lkml thread: https://lkml.org/lkml/2021/4/30/864

Need to fix this in upstream as well.