Skip to content

Commit

Permalink
gcc: (loongarch64) improve architecture support
Browse files Browse the repository at this point in the history
- Add D support.
- Change target cpu la464 => loongarch64 to ensure consistency with our
  default Autobuild3 flags (generic LoongArch64).
- (upstream patches) Fix LTO on loongarch64.

Co-Authored-By: Mingcong Bai <[email protected]>
Co-Authored-By: Jiangjin Wang <[email protected]>
  • Loading branch information
3 people committed Jan 3, 2024
1 parent b52f088 commit f9f73e2
Show file tree
Hide file tree
Showing 87 changed files with 217,214 additions and 158 deletions.
17 changes: 15 additions & 2 deletions core-devel/gcc/01-runtime/defines
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ AUTOTOOLS_AFTER__ARMV7HF="$AUTOTOOLS_AFTER $AUTOTOOLS_AFTER__RETRO \
--with-arch=armv7-a --with-float=hard --with-fpu=neon"
AUTOTOOLS_AFTER__I486="$AUTOTOOLS_AFTER $AUTOTOOLS_AFTER__RETRO \
--with-cpu=i486 --with-tune=bonnell"
AUTOTOOLS_AFTER__LOONGARCH64="$AUTOTOOLS_AFTER ${AUTOTOOLS_AFTER__NOGO/,d,ada/} \
--with-abi=lp64d --with-arch=la464 --with-tune=la464"
AUTOTOOLS_AFTER__LOONGARCH64="$AUTOTOOLS_AFTER ${AUTOTOOLS_AFTER__NOGO/,ada/} \
--with-abi=lp64d --with-arch=loongarch64 --with-tune=la464"
AUTOTOOLS_AFTER__LOONGSON2F="$AUTOTOOLS_AFTER $AUTOTOOLS_AFTER__RETRO \
--with-abi=64 --with-arch=mips3 \
--with-tune=loongson2f"
Expand Down Expand Up @@ -116,6 +116,19 @@ AUTOTOOLS_AFTER__RISCV64="$AUTOTOOLS_AFTER $AUTOTOOLS_AFTER__GO \

ABMK="profiledbootstrap"
ABMK__LOONGSON3="bootstrap"
# FIXME: ICE during compilation with profiling.
#
# during RTL pass: cse1
# .../gcc-13.2.0/libgcc/libgcc2.c: In function ‘__cmpti2’:
# .../gcc-13.2.0/libgcc/libgcc2.c:1309:1: internal compiler error: in mode_size_inline, at ./insn-modes-inline.h:18
# 1309 | }
# | ^
# during RTL pass: cse1
# .../gcc-13.2.0/libgcc/libgcc2.c: In function ‘__ashlti3’:
#.../gcc-13.2.0/libgcc/libgcc2.c:435:1: internal compiler error: in mode_size_inline, at ./insn-modes-inline.h:18
# 435 | }
# | ^
ABMK__LOONGARCH64="bootstrap"
AB_FLAGS_SPECS=0
AB_FLAGS_O3=1

Expand Down

This file was deleted.

Loading

0 comments on commit f9f73e2

Please sign in to comment.