diff options
Diffstat (limited to 'meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99507.patch')
| -rw-r--r-- | meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99507.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99507.patch b/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99507.patch new file mode 100644 index 0000000000..f3d5eee6e7 --- /dev/null +++ b/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99507.patch | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | 2011-05-03 Tom de Vries <tom@codesourcery.com> | ||
| 2 | |||
| 3 | gcc/ | ||
| 4 | * stmt.c (set_jump_prob): Make robust against *inv_scale == 0. | ||
| 5 | |||
| 6 | === modified file 'gcc/stmt.c' | ||
| 7 | --- old/gcc/stmt.c 2011-02-07 13:23:30 +0000 | ||
| 8 | +++ new/gcc/stmt.c 2011-05-06 19:17:34 +0000 | ||
| 9 | @@ -2312,7 +2312,9 @@ | ||
| 10 | set_jump_prob (rtx jump, int prob, int *inv_scale) | ||
| 11 | { | ||
| 12 | /* j[i] = p[i] * scale / REG_BR_PROB_BASE. */ | ||
| 13 | - int jump_prob = prob * REG_BR_PROB_BASE / *inv_scale; | ||
| 14 | + int jump_prob = (*inv_scale > 0 | ||
| 15 | + ? prob * REG_BR_PROB_BASE / *inv_scale | ||
| 16 | + : REG_BR_PROB_BASE / 2); | ||
| 17 | /* f[i] = REG_BR_PROB_BASE - j[i]. */ | ||
| 18 | int fallthrough_prob = REG_BR_PROB_BASE - jump_prob; | ||
| 19 | |||
| 20 | |||
