]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
nios2: fix div64 issue for gcc4
authorThomas Chou <thomas@wytron.com.tw>
Fri, 14 May 2010 22:00:05 +0000 (06:00 +0800)
committerScott McNutt <smcnutt@psyent.com>
Fri, 28 May 2010 14:56:03 +0000 (10:56 -0400)
commit8d52ea6db484c689a75ef8a36a4e525753b8f078
tree167f6c45a02eb0a3aa570ff8b215c48bb4a48f96
parent0df01fd3d71481b5cc7aeea6a741b9fc3be15178
nios2: fix div64 issue for gcc4

This patch fixes the run-time error on div64 when built with
gcc4, which was reported by jhwu0625 on nios forum. It merges
math support from libgcc of gcc4. This patch is copied from
nios2-linux.

It works with both gcc3 and gcc4. The old mult.c, divmod.c and
math.h are removed.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
arch/nios2/lib/Makefile
arch/nios2/lib/divmod.c [deleted file]
arch/nios2/lib/libgcc.c [new file with mode: 0644]
arch/nios2/lib/longlong.h [new file with mode: 0644]
arch/nios2/lib/math.h [deleted file]
arch/nios2/lib/mult.c [deleted file]