On Fri, 2022-12-09 at 10:43 +0800, Icenowy Zheng wrote: > This patchset tries to fix the object duplication between the driver and > the real compiler, which makes libgccjit building fail because of > linking this two parts together.
Hmm, I think the issue is already fixed by https://gcc.gnu.org/r13-1010 but maybe I'm wrong here... This looks like a good code clean-up anyway. But if libgccjit builds fine with GCC trunk I'd postpone the clean-up to GCC 14 stage 1. > First, the build-time --with-* values are now respected by being the > default -m* values in the driver, and then loongarch-driver, which is > mostly doing no-op now, is dropped. > > This patchset is bootstrapped on a native LoongArch device (without > any > --with-* flags). In addition, on a x86 device, cross compilers are > built > with --with-{arch,abi} and without any --with-* flags; all these > configurations can correctly build all supported shipped libraries > with > GCC. > > Icenowy Zheng (2): > LoongArch: respect the with values in config.gcc > LoongArch: drop loongarch-driver > > gcc/config.gcc | 1 - > gcc/config/loongarch/loongarch-driver.cc | 187 ---------------------- > - > gcc/config/loongarch/loongarch-driver.h | 68 --------- > gcc/config/loongarch/loongarch.h | 21 ++- > 4 files changed, 19 insertions(+), 258 deletions(-) > delete mode 100644 gcc/config/loongarch/loongarch-driver.cc > delete mode 100644 gcc/config/loongarch/loongarch-driver.h > -- Xi Ruoyao <xry...@xry111.site> School of Aerospace Science and Technology, Xidian University