On Thu, Oct 16, 2014 at 02:41:36PM +0200, Martin Liška wrote: > Hello. > > Following patch fixes i586 bootstrap failure: > https://gcc.gnu.org/ml/gcc-testresults/2014-10/msg01713.html > > ../../src-trunk/gcc/ipa-icf.c:2096:23: error: format ‘%lu’ expects argument > of type ‘long unsigned int’, but argument 3 has type > ‘std::list<ipa_icf::congruence_class*>::size_type {aka unsigned int}’ > [-Werror=format=] > worklist.size ()); > ^ > ../../src-trunk/gcc/ipa-icf.c: In member function ‘void > ipa_icf::sem_item_optimizer::dump_cong_classes()’: > ../../src-trunk/gcc/ipa-icf.c:2116:61: error: format ‘%lu’ expects argument > of type ‘long unsigned int’, but argument 4 has type ‘size_t {aka unsigned > int}’ [-Werror=format=] > m_classes_count, m_classes.elements(), m_items.length ()); > > Ready for thunk? > > Thank you, > Martin
> gcc/ChangeLog: > > 2014-10-16 Martin Liska <mli...@suse.cz> > > * ipa-icf.c (sem_item_optimizer::process_cong_reduction): size_t cast > added. Too long line, please wrap. I'd write "Cast to unsigned long." instead. > (sem_item_optimizer::dump_cong_classes): Likewise. Ok. Jakub