]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Darwin, testsuite - Fix PR 65364 (uninit-19.c).
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Jun 2019 18:22:58 +0000 (18:22 +0000)
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Jun 2019 18:22:58 +0000 (18:22 +0000)
This test currently fails on Darwin, because the port inlines fn2 for
both PIC (and non-pic for m32).  Fixed by adjusting the target condition.

2019-06-11  Iain Sandoe  <iain@sandoe.co.uk>

PR testsuite/65364
* gcc.dg/uninit-19.c (fn1): Adjust target condition for Darwin.
(fn2): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272167 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/uninit-19.c

index d5b92198587caf7c3aa317c82b14ddd65280d167..443084486ef9ac79c455c75df7d788fbf7d7d97c 100644 (file)
@@ -1,3 +1,9 @@
+2019-06-11  Iain Sandoe  <iain@sandoe.co.uk>
+
+       PR testsuite/65364
+       * gcc.dg/uninit-19.c (fn1): Adjust target condition for Darwin.
+       (fn2): Likewise.
+
 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
 
        * gcc.target/powerpc/localentry-1.c: Add -mpcrel option.
index 3f5f06af540d0e25c069db40b56437d069bdbfcc..a54e60d37cc85ff03cb05ebe5db523d6a4645511 100644 (file)
@@ -12,7 +12,7 @@ fn1 (int p1, float *f1, float *f2, float *f3, unsigned char *c1, float *f4,
 {
   if (p1 & 8)
     b[3] = p10[a];
-  /* { dg-warning "may be used uninitialized" "" { target { { nonpic || pie_enabled } || { hppa*64*-*-* } } } .-1 } */
+  /* { dg-warning "may be used uninitialized" "" { target { { nonpic || pie_enabled } || { hppa*64*-*-* *-*-darwin* } } } .-1 } */
 }
 
 void
@@ -22,5 +22,5 @@ fn2 ()
   if (l & 6)
     n = &c + m;
   fn1 (l, &d, &e, &g, &i, &h, &k, n);
-  /* { dg-warning "may be used uninitialized" "" { target { ! { { nonpic || pie_enabled } || { hppa*64*-*-* } } } } .-1 } */
+  /* { dg-warning "may be used uninitialized" "" { target { ! { { nonpic || pie_enabled } || { hppa*64*-*-* *-*-darwin* } } } } .-1 } */
 }