Skip to content

RFC Add and use libgcc

Bastian Blank linux-s390 lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 of 5 patches 1 replyIn review

4 of 5 patches are in this archive. The cover letter announces 5.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/5libgcc: Add config and support headersinclude/asm-generic/libgcc/longlong.h lib/libgcc/coretypes.h lib/libgcc/longlong.h +3 more+197 -00 replies
3/5libgcc: Add Makefilelib/Makefile lib/libgcc/Makefile+31 -00 replies
4/5libgcc: Disable usage of special do_div versioninclude/asm-generic/div64.h+1 -10 replies
5/5s390: Use libgccarch/s390/Kconfig arch/s390/include/asm/libgcc/config.h arch/s390/include/asm/libgcc/longlong.h +1 more+49 -200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC][PATCH 0/5] Add and use libgcc

Hi

gcc always expects to be able to use the symbols in libgcc for operations that are unsupported on the CPU. Linux added functions if needed or just worked around such operations. Sometimes it even describes the compiler as broken, even if it is properly documented by gcc themself.

This patchset adds a copy of libgcc to the kernel and uses it if to do such unsupported operations. This way we can remove the usage of workarounds like do_div.

Unsolved problems:
- It currently uses the gcc-included longlong division support which is marked as possibly trapping.
- The libgcc sources are currently unmodifed copies from gcc, this means it needs some headers with fixed names.

Bastian

Signature · 2 lines
Leave bigotry in your quarters; there's no room for it on the bridge.
		-- Kirk, "Balance of Terror", stardate 1709.2