From 84873c3a959271102be79ba250187544f654d5c2 Mon Sep 17 00:00:00 2001 From: schulz Date: Wed, 27 Jun 2012 17:17:49 +0000 Subject: [PATCH] Avoid ICE on ARM targets... The BPABI long long divmod functions return a 128-bit value in registers r0-r3. Correctly modeling that requires the use of TImode. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@45132 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- tools/crosstools/gcc-4.6.2-aros.diff | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/crosstools/gcc-4.6.2-aros.diff b/tools/crosstools/gcc-4.6.2-aros.diff index 7b72c976c1..230344f6ef 100644 --- a/tools/crosstools/gcc-4.6.2-aros.diff +++ b/tools/crosstools/gcc-4.6.2-aros.diff @@ -672,7 +672,7 @@ diff -ruN gcc-4.6.2/gcc/config.gcc gcc-4.6.2.aros/gcc/config.gcc *-*-openbsd*) tmake_file="t-libc-ok t-openbsd t-libgcc-pic" case ${enable_threads} in -@@ -793,6 +801,12 @@ +@@ -793,6 +801,16 @@ tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" extra_parts="crtinit.o crtfini.o" ;; @@ -681,6 +681,10 @@ diff -ruN gcc-4.6.2/gcc/config.gcc gcc-4.6.2.aros/gcc/config.gcc + tm_file="$tm_file ../../libgcc/config/arm/bpabi-lib.h" + tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf arm/t-arm-softfp arm/t-bpabi t-aros" + xm_file="xm-aros.h" ++ # The BPABI long long divmod functions return a 128-bit value in ++ # registers r0-r3. Correctly modeling that requires the use of ++ # TImode. ++ need_64bit_hwint=yes + ;; arm-wrs-vxworks) tm_file="elfos.h arm/elf.h arm/aout.h ${tm_file} vx-common.h vxworks.h arm/vxworks.h" -- 2.11.4.GIT