diff options
author | Khem Raj <raj.khem@gmail.com> | 2012-06-28 12:19:53 -0700 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-07-09 18:40:21 +0200 |
commit | 6b278fbb02d818b54b5a9fa2716fc49e896b72a8 (patch) | |
tree | 833783fb738ff7abf3d0e3029c9a468e73b06e28 /toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106792.patch | |
parent | 680af24d1ff95533db610176e6b01fcc9dcf6699 (diff) | |
download | meta-openembedded-6b278fbb02d818b54b5a9fa2716fc49e896b72a8.tar.gz |
gcc-4.6: Migrate recipes from OE-Core
Remove linaro patches. If one needs to use linaro
modified gcc they should use meta-linaro
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106792.patch')
-rw-r--r-- | toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106792.patch | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106792.patch b/toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106792.patch deleted file mode 100644 index 12c578c2b..000000000 --- a/toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106792.patch +++ /dev/null | |||
@@ -1,61 +0,0 @@ | |||
1 | 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org> | ||
2 | |||
3 | gcc/ | ||
4 | Backport from mainline: | ||
5 | |||
6 | 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com> | ||
7 | |||
8 | * config/arm/arm.c (get_label_padding): New function. | ||
9 | (create_fix_barrier, arm_reorg): Use it. | ||
10 | |||
11 | === modified file 'gcc/config/arm/arm.c' | ||
12 | --- old/gcc/config/arm/arm.c 2011-07-04 14:03:49 +0000 | ||
13 | +++ new/gcc/config/arm/arm.c 2011-08-12 08:08:31 +0000 | ||
14 | @@ -11769,6 +11769,19 @@ | ||
15 | return 0; | ||
16 | } | ||
17 | |||
18 | +/* Return the maximum amount of padding that will be inserted before | ||
19 | + label LABEL. */ | ||
20 | + | ||
21 | +static HOST_WIDE_INT | ||
22 | +get_label_padding (rtx label) | ||
23 | +{ | ||
24 | + HOST_WIDE_INT align, min_insn_size; | ||
25 | + | ||
26 | + align = 1 << label_to_alignment (label); | ||
27 | + min_insn_size = TARGET_THUMB ? 2 : 4; | ||
28 | + return align > min_insn_size ? align - min_insn_size : 0; | ||
29 | +} | ||
30 | + | ||
31 | /* Move a minipool fix MP from its current location to before MAX_MP. | ||
32 | If MAX_MP is NULL, then MP doesn't need moving, but the addressing | ||
33 | constraints may need updating. */ | ||
34 | @@ -12315,8 +12328,12 @@ | ||
35 | within range. */ | ||
36 | gcc_assert (GET_CODE (from) != BARRIER); | ||
37 | |||
38 | - /* Count the length of this insn. */ | ||
39 | - count += get_attr_length (from); | ||
40 | + /* Count the length of this insn. This must stay in sync with the | ||
41 | + code that pushes minipool fixes. */ | ||
42 | + if (LABEL_P (from)) | ||
43 | + count += get_label_padding (from); | ||
44 | + else | ||
45 | + count += get_attr_length (from); | ||
46 | |||
47 | /* If there is a jump table, add its length. */ | ||
48 | tmp = is_jump_table (from); | ||
49 | @@ -12736,6 +12753,11 @@ | ||
50 | insn = table; | ||
51 | } | ||
52 | } | ||
53 | + else if (LABEL_P (insn)) | ||
54 | + /* Add the worst-case padding due to alignment. We don't add | ||
55 | + the _current_ padding because the minipool insertions | ||
56 | + themselves might change it. */ | ||
57 | + address += get_label_padding (insn); | ||
58 | } | ||
59 | |||
60 | fix = minipool_fix_head; | ||
61 | |||