Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-4325

Consider supporting libgccjit via sys-devel/gcc

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None

      libgccjit provides a very neat interface to leverage GCC for optimizations and codegen (both just in time, as well as ahead of time). It would be nice to see this supported by Funtoo's sys-devel/gcc ebuilds. Attached is a patch against core-kit/1.0-prime sys-devel/gcc-7.2.0 that I have tested on a pure64 arch without any issues so far (but it would likely need testing on a multilib system; note that while this patch is loosely based on Gentoo's toolchain eclass, I needed to add the `--with-pic` in order for internal mpc to compile and also move the resulting shared library + symlinks into the gcc-specific subdirectoty for libraries to avoid clashes between GCC versions).

      Because of the slowdown warning I intend to try out the building twice method that is mentioned there and provide another patch should it prove feasible.

        1. gcc-7.2.0-libgccjit.patch
          1 kB
        2. gcc-7.2.0-libgccjit-separate.patch
          3 kB
        3. gcc-8.2.0-jit.patch
          3 kB
        4. gcc-9.2.0-jit.patch
          3 kB
        5. jit.patch
          3 kB

            Unassigned Unassigned
            calrama calrama
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: