]> git.ipfire.org Git - thirdparty/gcc.git/blame - fixincludes/mkfixinc.sh
i386: Wrong code with __builtin_parityl [PR112672]
[thirdparty/gcc.git] / fixincludes / mkfixinc.sh
CommitLineData
71b5d516
PB
1#! /bin/sh
2
53c7ffe7 3if [ $# -ne 1 ]
71b5d516 4then
53c7ffe7 5 echo "Usage: $0 <target-mach-triplet>"
71b5d516
PB
6 exit 1
7fi
8
53c7ffe7 9machine=$1
71b5d516
PB
10target=fixinc.sh
11
12# Check for special fix rules for particular targets
13case $machine in
71b5d516 14 i?86-*-cygwin* | \
f48aa01a
L
15 i?86-*-mingw32* | \
16 x86_64-*-mingw32* | \
71b5d516
PB
17 powerpc-*-eabisim* | \
18 powerpc-*-eabi* | \
19 powerpc-*-rtems* | \
20 powerpcle-*-eabisim* | \
218213df 21 powerpcle-*-eabi* | \
0a649b83 22 *-*-vxworks7* | \
218213df 23 *-musl* )
71b5d516
PB
24 # IF there is no include fixing,
25 # THEN create a no-op fixer and exit
26 (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
27 ;;
28
29 *)
b2cfdb12 30 cat < ${srcdir}/fixinc.in > ${target} || exit 1
71b5d516
PB
31 ;;
32esac
33chmod 755 ${target}