summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99407.patch
blob: 80f4246ed2d1bc29200289cce9354c707d5be7bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
2010-09-30  Jie Zhang  <jie@codesourcery.com>

	gcc/testsuite/

	* c-c++-common/uninit-17.c: Adjust warning message.

	Backport from mainline:

	2010-07-30  Xinliang David Li  <davidxl@google.com>
	PR tree-optimization/45121
	* c-c++-common/uninit-17.c: Add -fno-ivops option.

=== modified file 'gcc/testsuite/c-c++-common/uninit-17.c'
Index: gcc-4.5/gcc/testsuite/c-c++-common/uninit-17.c
===================================================================
--- gcc-4.5.orig/gcc/testsuite/c-c++-common/uninit-17.c
+++ gcc-4.5/gcc/testsuite/c-c++-common/uninit-17.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -Wuninitialized" } */
+/* { dg-options "-O2 -Wuninitialized -fno-ivopts" } */
 
 inline int foo(int x)
 {
@@ -9,7 +9,7 @@ static void bar(int a, int *ptr)
 {
   do
   {
-    int b; /* { dg-warning "is used uninitialized" } */
+    int b; /* { dg-warning "may be used uninitialized" } */
     if (b < 40) {
       ptr[0] = b;
     }