diff options
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.12.2/debian/arm_optim.diff')
-rw-r--r-- | meta/recipes-devtools/perl/perl-5.12.2/debian/arm_optim.diff | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.12.2/debian/arm_optim.diff b/meta/recipes-devtools/perl/perl-5.12.2/debian/arm_optim.diff new file mode 100644 index 0000000000..383df6b358 --- /dev/null +++ b/meta/recipes-devtools/perl/perl-5.12.2/debian/arm_optim.diff | |||
@@ -0,0 +1,32 @@ | |||
1 | From: Niko Tyni <ntyni@debian.org> | ||
2 | Description: Downgrade the optimization of sv.c on arm due to a gcc-4.4 bug | ||
3 | Bug-Debian: http://bugs.debian.org/580334 | ||
4 | |||
5 | Regression from gcc-4.3, not reported yet. | ||
6 | |||
7 | perl -e '"-2" =~ /(.+)/; @foo=(); push @foo, $_ for $1..undef; print @foo ? "ok\n" : "not ok\n"' | ||
8 | |||
9 | |||
10 | --- | ||
11 | cflags.SH | 6 +++++- | ||
12 | 1 files changed, 5 insertions(+), 1 deletions(-) | ||
13 | |||
14 | diff --git a/cflags.SH b/cflags.SH | ||
15 | index a5d71b9..6914ba6 100755 | ||
16 | --- a/cflags.SH | ||
17 | +++ b/cflags.SH | ||
18 | @@ -312,7 +312,11 @@ for file do | ||
19 | regexec) ;; | ||
20 | run) ;; | ||
21 | scope) ;; | ||
22 | - sv) ;; | ||
23 | + sv) | ||
24 | + case $archname in | ||
25 | + arm-*|armeb-*) | ||
26 | + optimize=-O0;; | ||
27 | + esac;; | ||
28 | taint) ;; | ||
29 | toke) ;; | ||
30 | universal) ;; | ||
31 | -- | ||
32 | tg: (c823880..) debian/arm_optim (depends on: upstream) | ||