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: IPA ICF fallout: i586 bootstrap failure fix


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  <mliska@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


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