diff options
Diffstat (limited to 'recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99313.patch')
| -rw-r--r-- | recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99313.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99313.patch b/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99313.patch new file mode 100644 index 0000000000..eadce6ec6c --- /dev/null +++ b/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99313.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | 2010-07-15 Yao Qi <yao@codesourcery.com> | ||
| 2 | |||
| 3 | Merge from Sourcery G++ 4.4: | ||
| 4 | |||
| 5 | 2010-02-25 Maxim Kuvyrkov <maxim@codesourcery.com> | ||
| 6 | |||
| 7 | gcc/ | ||
| 8 | * tree.c (initializer_zerop): Handle STRING_CST. | ||
| 9 | |||
| 10 | 2010-07-15 Sandra Loosemore <sandra@codesourcery.com> | ||
| 11 | |||
| 12 | Backport from mainline: | ||
| 13 | |||
| 14 | === modified file 'gcc/tree.c' | ||
| 15 | --- old/gcc/tree.c 2010-04-01 15:18:07 +0000 | ||
| 16 | +++ new/gcc/tree.c 2010-08-02 16:32:37 +0000 | ||
| 17 | @@ -9335,6 +9335,19 @@ | ||
| 18 | return true; | ||
| 19 | } | ||
| 20 | |||
| 21 | + case STRING_CST: | ||
| 22 | + { | ||
| 23 | + int i; | ||
| 24 | + | ||
| 25 | + /* We need to loop through all elements to handle cases like | ||
| 26 | + "\0" and "\0foobar". */ | ||
| 27 | + for (i = 0; i < TREE_STRING_LENGTH (init); ++i) | ||
| 28 | + if (TREE_STRING_POINTER (init)[i] != '\0') | ||
| 29 | + return false; | ||
| 30 | + | ||
| 31 | + return true; | ||
| 32 | + } | ||
| 33 | + | ||
| 34 | default: | ||
| 35 | return false; | ||
| 36 | } | ||
| 37 | |||
