On Thu, Aug 10, 2017 at 10:52:54AM +0200, Andreas Schwab wrote: > On Jul 13 2017, Marek Polacek <pola...@redhat.com> wrote: > > > diff --git gcc/testsuite/objc.dg/proto-lossage-4.m > > gcc/testsuite/objc.dg/proto-lossage-4.m > > index e72328b3703..4c6b560bab4 100644 > > --- gcc/testsuite/objc.dg/proto-lossage-4.m > > +++ gcc/testsuite/objc.dg/proto-lossage-4.m > > @@ -28,13 +28,13 @@ long foo(void) { > > receiver += [receiver anotherValue]; /* { dg-warning "invalid receiver > > type .intptr_t." } */ > > > > receiver += [(Obj *)receiver someValue]; /* { dg-warning ".Obj. may not > > respond to .\\-someValue." } */ > > -/* { dg-warning "assignment makes integer from pointer without a cast" "" > > { target *-*-* } .-1 } */ > > +/* { dg-warning "assignment to 'intptr_t {aka long int}' from 'id' makes > > integer from pointer without a cast" "" { target *-*-* } .-1 } */ > > > > receiver += [(Obj *)receiver anotherValue]; > > receiver += [(Obj <Proto> *)receiver someValue]; > > receiver += [(Obj <Proto> *)receiver anotherValue]; > > receiver += [objrcvr someValue]; /* { dg-warning ".Obj. may not respond > > to .\\-someValue." } */ > > -/* { dg-warning "assignment makes integer from pointer without a cast" "" > > { target *-*-* } .-1 } */ > > +/* { dg-warning "assignment to 'intptr_t {aka long int}' from 'id' makes > > integer from pointer without a cast" "" { target *-*-* } .-1 } */ > > > > receiver += [objrcvr anotherValue]; > > receiver += [(Obj <Proto> *)objrcvr someValue]; > > @@ -42,7 +42,7 @@ long foo(void) { > > receiver += [objrcvr2 someValue]; > > receiver += [objrcvr2 anotherValue]; > > receiver += [(Obj *)objrcvr2 someValue]; /* { dg-warning ".Obj. may not > > respond to .\\-someValue." } */ > > -/* { dg-warning "assignment makes integer from pointer without a cast" "" > > { target *-*-* } .-1 } */ > > +/* { dg-warning "assignment to 'intptr_t {aka long int}' from 'id' makes > > integer from pointer without a cast" "" { target *-*-* } .-1 } */ > > > > receiver += [(Obj *)objrcvr2 anotherValue]; > > > > FAIL: objc.dg/proto-lossage-4.m -fgnu-runtime (test for warnings, line 30) > FAIL: objc.dg/proto-lossage-4.m -fgnu-runtime (test for warnings, line 36) > FAIL: objc.dg/proto-lossage-4.m -fgnu-runtime (test for warnings, line 44) > FAIL: objc.dg/proto-lossage-4.m -fgnu-runtime (test for excess errors) > Excess errors: > /daten/aranym/gcc/gcc-20170810/gcc/testsuite/objc.dg/proto-lossage-4.m:30:12: > warning: assignment to 'intptr_t {aka int}' from 'id' makes integer from > pointer without a cast [-Wint-conversion] > /daten/aranym/gcc/gcc-20170810/gcc/testsuite/objc.dg/proto-lossage-4.m:36:12: > warning: assignment to 'intptr_t {aka int}' from 'id' makes integer from > pointer without a cast [-Wint-conversion] > /daten/aranym/gcc/gcc-20170810/gcc/testsuite/objc.dg/proto-lossage-4.m:44:12: > warning: assignment to 'intptr_t {aka int}' from 'id' makes integer from > pointer without a cast [-Wint-conversion]
Argh. Sorry, will fix now. Marek