http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48783
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization, TREE Target|Arm | Last reconfirmed|2011-05-31 22:28:11 |2012-01-28 Component|c |tree-optimization Summary|ARM: kernel compiled at -O2 |~0ULL % (a / (a & -a)) == 0 |has a unused reference to |is not optimized to false |__aeabi_uldivmod |on the tree level --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-29 01:44:28 UTC --- ~0ULL % (a / (a & -a)) == 0 Is not optimized to false on the tree level. Basically we should figure that out and we would then remove the reference to the uldivmod libcall.