https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67338
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Mar 21 08:10:30 2017 New Revision: 246305 URL: https://gcc.gnu.org/viewcvs?rev=246305&root=gcc&view=rev Log: PR c/67338 * fold-const.c (round_up_loc): Negate divisor in unsigned type to avoid UB. * gcc.dg/pr67338.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr67338.c Modified: trunk/gcc/ChangeLog trunk/gcc/fold-const.c trunk/gcc/testsuite/ChangeLog