diff options
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/pr28102.dpatch')
-rw-r--r-- | meta/packages/gcc/gcc-4.3.1/debian/pr28102.dpatch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/pr28102.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/pr28102.dpatch new file mode 100644 index 0000000000..bdb546546a --- /dev/null +++ b/meta/packages/gcc/gcc-4.3.1/debian/pr28102.dpatch | |||
@@ -0,0 +1,45 @@ | |||
1 | #! /bin/sh -e | ||
2 | |||
3 | # DP: Apply proposed fix for PR target/28102. | ||
4 | |||
5 | dir= | ||
6 | if [ $# -eq 3 -a "$2" = '-d' ]; then | ||
7 | pdir="-d $3" | ||
8 | dir="$3/" | ||
9 | elif [ $# -ne 1 ]; then | ||
10 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
11 | exit 1 | ||
12 | fi | ||
13 | case "$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 | ||
23 | esac | ||
24 | exit 0 | ||
25 | |||
26 | 2006-07-15 Alfred M. Szmidt <ams@gnu.org> | ||
27 | |||
28 | * config/i386/gnu.h (TARGET_C99_FUNCTIONS): Undefine macro. | ||
29 | |||
30 | Index: gcc/config/i386/gnu.h | ||
31 | =================================================================== | ||
32 | --- gcc/config/i386/gnu.h (revision 115472) | ||
33 | +++ gcc/config/i386/gnu.h (working copy) | ||
34 | @@ -36,3 +36,9 @@ | ||
35 | |||
36 | /* FIXME: Is a Hurd-specific fallback mechanism necessary? */ | ||
37 | #undef MD_UNWIND_SUPPORT | ||
38 | + | ||
39 | +/* config.gcc includes i386/linux.h. */ | ||
40 | +#undef TARGET_C99_FUNCTIONS | ||
41 | +#define TARGET_C99_FUNCTIONS 1 | ||
42 | +#undef TARGET_HAS_SINCOS | ||
43 | +#define TARGET_HAS_SINCOS 1 | ||
44 | |||
45 | |||