arm-asm.c: add forward branches & some ops
lib/armeabi.c: faster i/udivmod (asm)
arm-gen.c: use movw/movt to load constants for CPUVER >= 70
configure: use dwarf-4 debug sections on android, detect idiv
lib/Makefile: always add -I$(TOP) for access to config.h
tcdbg.c: add a "code mapping symbol" to help out llvm-objdump
tccelf.c: don't load SHT_ARM_EXIDX, modify ARM.attributes
tccpp.c: accept '@' for arm asm comments
This commit is contained in:
grischka
2025-02-28 09:35:32 +01:00
parent 006174449e
commit 8c4e67380e
9 changed files with 174 additions and 21 deletions

8
configure vendored
View File

@@ -381,7 +381,7 @@ case $targetos in
default sysroot "/usr"
fi
default prefix "${sysroot}"
confvars_set Android new_dtags rpath=no
confvars_set Android new_dtags rpath=no dwarf=4
test "${cpu}" != "i386" && confvars_set pie
default_conf "static=no"
case "$cpu" in
@@ -510,6 +510,11 @@ if test "$cpu" = "arm"; then
confvars_set arm_vfp
fi
fi
if test -z "$build_cross"; then
if grep -s -q "^Features.* \(idiv\)" /proc/cpuinfo ; then
confvars_set arm_idiv
fi
fi
fi
# a final configuration tuning
@@ -648,6 +653,7 @@ for v in $cpu $confvars ; do
print_num TCC_ARM_HARDFLOAT 1 ;;
CONFIG_arm_eabi=yes) print_num TCC_ARM_EABI 1 ;;
CONFIG_arm_vfp=yes) print_num TCC_ARM_VFP 1 ;;
CONFIG_arm_idiv=yes) print_num __ARM_FEATURE_IDIV 1 ;;
# OS
CONFIG_WIN32=yes) print_num TCC_TARGET_PE 1 ;;
CONFIG_OSX=yes) print_num TCC_TARGET_MACHO 1 ;;