Bug ID: 85384
           Summary: libgccjit does not work if --with-gcc-major-version is
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: jit
          Assignee: dmalcolm at gcc dot
          Reporter: dmalcolm at gcc dot
  Target Milestone: ---

As noted in this downstream bug:
libgccjit does not honor --with-gcc-major-version.

Specifically, gcc/ does not use get_gcc_base_ver when generating
gcc-driver-name.h, hence GCC_DRIVER_NAME contains the wrong value when
--with-gcc-major-version is used.

This leads to link errors as reported in that bug, when using the default
embedded driver, and to the driver not being found when using:

  gcc_jit_context_set_bool_use_external_driver (ctxt, 1);

Affects trunk and gcc-7-branch.

I'm about to submit a candidate fix.

Reply via email to