This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR64764


On Wed, Mar 16, 2016 at 9:35 AM, Tom de Vries <Tom_deVries@mentor.com> wrote:
> On 16/03/16 17:15, H.J. Lu wrote:
>>
>> On Wed, Mar 16, 2016 at 9:12 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
>
>
>>> Any particular reason why this test was changed to DOS format?
>
>
> FWIW, the test was in DOS format from the start.
>
>

DOS format was introduced by r220530:

Index: gcc.dg/uninit-19.c
===================================================================
--- gcc.dg/uninit-19.c  (revision 220529)
+++ gcc.dg/uninit-19.c  (revision 220530)
@@ -10,7 +10,7 @@ fn1 (int p1, float *f1, float *f2, float
      unsigned char *c2, float *p10)^M
 {^M
   if (p1 & 8)^M
-    b[3] = p10[a];  /* { dg-warning "may be used uninitialized" } */^M
+    b[3] = p10[a];  /* 13.  */^M
 }^M
 ^M
 void^M
@@ -19,5 +19,8 @@ fn2 ()
   float *n;^M
   if (l & 6)^M
     n = &c + m;^M
-  fn1 (l, &d, &e, &g, &i, &h, &k, n);^M
+  fn1 (l, &d, &e, &g, &i, &h, &k, n);  /* 22.  */^M
 }^M
+^M
+/* { dg-warning "may be used uninitialized" "" { target nonpic } 13 } */^M
+/* { dg-warning "may be used uninitialized" "" { target { ! nonpic }
} 22 } */^M

"^M" was added to those changed lines.

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]