mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
silence/fix -Wabsolute-value warnings
This commit is contained in:
parent
aa49d95066
commit
736d20921d
1
build.sh
1
build.sh
@ -180,6 +180,7 @@ patch -p0 < $PATCH_DIR/cctools-ld64-1.patch
|
|||||||
patch -p0 < $PATCH_DIR/cctools-ld64-2.patch
|
patch -p0 < $PATCH_DIR/cctools-ld64-2.patch
|
||||||
patch -p1 < $PATCH_DIR/cctools-ld64-strnlen.patch
|
patch -p1 < $PATCH_DIR/cctools-ld64-strnlen.patch
|
||||||
patch -p0 < $PATCH_DIR/cctools-ld64-llvm-3.7.patch
|
patch -p0 < $PATCH_DIR/cctools-ld64-llvm-3.7.patch
|
||||||
|
patch -p0 < $PATCH_DIR/cctools-ld64-abs-warning.patch
|
||||||
echo ""
|
echo ""
|
||||||
CONFFLAGS="--prefix=$TARGET_DIR --target=x86_64-apple-$TARGET"
|
CONFFLAGS="--prefix=$TARGET_DIR --target=x86_64-apple-$TARGET"
|
||||||
[ -n "$DISABLE_LTO_SUPPORT" ] && CONFFLAGS+=" --enable-lto=no"
|
[ -n "$DISABLE_LTO_SUPPORT" ] && CONFFLAGS+=" --enable-lto=no"
|
||||||
|
38
patches/cctools-ld64-abs-warning.patch
Normal file
38
patches/cctools-ld64-abs-warning.patch
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
--- as/arm.c
|
||||||
|
+++ as/arm.c
|
||||||
|
@@ -17839,7 +17839,7 @@
|
||||||
|
{
|
||||||
|
bfd_vma insn;
|
||||||
|
bfd_vma encoded_addend;
|
||||||
|
- bfd_vma addend_abs = abs (value);
|
||||||
|
+ bfd_vma addend_abs = abs ((int)value);
|
||||||
|
|
||||||
|
/* Check that the absolute value of the addend can be
|
||||||
|
expressed as an 8-bit constant plus a rotation. */
|
||||||
|
@@ -17884,7 +17884,7 @@
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
bfd_vma insn;
|
||||||
|
- bfd_vma addend_abs = abs (value);
|
||||||
|
+ bfd_vma addend_abs = abs ((int)value);
|
||||||
|
|
||||||
|
/* Check that the absolute value of the addend can be
|
||||||
|
encoded in 12 bits. */
|
||||||
|
@@ -17927,7 +17927,7 @@
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
bfd_vma insn;
|
||||||
|
- bfd_vma addend_abs = abs (value);
|
||||||
|
+ bfd_vma addend_abs = abs ((int)value);
|
||||||
|
|
||||||
|
/* Check that the absolute value of the addend can be
|
||||||
|
encoded in 8 bits. */
|
||||||
|
@@ -17971,7 +17971,7 @@
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
bfd_vma insn;
|
||||||
|
- bfd_vma addend_abs = abs (value);
|
||||||
|
+ bfd_vma addend_abs = abs ((int)value);
|
||||||
|
|
||||||
|
/* Check that the absolute value of the addend is a multiple of
|
||||||
|
four and, when divided by four, fits in 8 bits. */
|
Loading…
Reference in New Issue
Block a user