summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-4.3.1/debian/cpu-default-i486.dpatch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/cpu-default-i486.dpatch')
-rw-r--r--meta/packages/gcc/gcc-4.3.1/debian/cpu-default-i486.dpatch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/cpu-default-i486.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/cpu-default-i486.dpatch
new file mode 100644
index 0000000000..1afa60faf2
--- /dev/null
+++ b/meta/packages/gcc/gcc-4.3.1/debian/cpu-default-i486.dpatch
@@ -0,0 +1,37 @@
1#! /bin/sh -e
2
3# DP: set default 32bit ix86 architecture to i486
4
5dir=
6if [ $# -eq 3 -a "$2" = '-d' ]; then
7 pdir="-d $3"
8 dir="$3/"
9elif [ $# -ne 1 ]; then
10 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
11 exit 1
12fi
13case "$1" in
14 -patch)
15 patch $pdir -f --no-backup-if-mismatch -p0 < $0
16 ;;
17 -unpatch)
18 patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
19 ;;
20 *)
21 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
22 exit 1
23esac
24exit 0
25
26
27--- gcc/config/i386/i386.c~ 2007-06-28 13:23:31.000000000 +0200
28+++ gcc/config/i386/i386.c 2007-06-28 13:26:33.000000000 +0200
29@@ -1953,7 +1953,7 @@
30 "-mtune=generic instead as appropriate.");
31
32 if (!ix86_arch_string)
33- ix86_arch_string = TARGET_64BIT ? "x86-64" : "i386";
34+ ix86_arch_string = TARGET_64BIT ? "x86-64" : "i486";
35 else
36 ix86_arch_specified = 1;
37