On Tue, 26 Jul 2016, Prathamesh Kulkarni wrote: > On 26 July 2016 at 17:06, Richard Biener <rguent...@suse.de> wrote: > > On Tue, 26 Jul 2016, Prathamesh Kulkarni wrote: > > > >> Hi, > >> The following test-cases broke due to the warning. > >> I think however the warning is right for all the cases: > >> > >> a) g++.dg/tree-ssa/invalid-dom.C: > >> I believe the call from main() to E::bar() is dead call ? > > > > Can't find this testcase. > oops, it's dom-invalid.C -;)
Ok. This testcase was for an infinite loop during compiling and likely was sensitive to inlining decisions. We likely dervirtualize the call - maybe add -fno-devirtualize instead? > > > >> b) libffi/testsuite/libffi.call/float.c: > >> Call from main() to floating() is dead call. > >> > >> c) libffi/testsuite/libffi.call/float3.c: > >> Calls from main() to floating_1() and floating_2() are dead calls. > >> > >> d) libffi/testsuite/libffi.call/negint.c: > >> Call from main() to checking () is dead call. > > > > Looks like dead calls in the above but libffi is maintained upstream > > and just copied to GCC. Please raise the issue upstream. > Ok I will raise the issue upstream. > > Thanks, > Prathamesh > > > > Richard. > > > >> Should I update the test-cases to pass -Wno-unsued-value, > >> or remove the calls ? > >> > >> Thanks, > >> Prathamesh > >> > >> > > > > -- > > Richard Biener <rguent...@suse.de> > > SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB > > 21284 (AG Nuernberg) > > -- Richard Biener <rguent...@suse.de> SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg)