expmed.c (expand_divmod): Always use a comparison for a division by a large unsigned...
commitb45f0e58d72a6ea2f54d007152b55fc44311359f
authorPaolo Bonzini <bonzini@gnu.org>
Thu, 9 Apr 2009 16:07:43 +0000 (9 16:07 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Thu, 9 Apr 2009 16:07:43 +0000 (9 16:07 +0000)
treed12ca0de4241fd0f950beabe6b910ba0a883eabd
parent9332c6ebd1b4ce843ddf9be3d9abdf6abeb3dfcd
expmed.c (expand_divmod): Always use a comparison for a division by a large unsigned integer.

2009-04-09  Paolo Bonzini  <bonzini@gnu.org>

* expmed.c (expand_divmod): Always use a comparison for a division
by a large unsigned integer.

        * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
        for things others than variables or functions as nonzero.

testsuite:
2009-04-09  Paolo Bonzini  <bonzini@gnu.org>

        * gcc.dg/pr27150-1.c: Change to a link test.

From-SVN: r145846
gcc/ChangeLog
gcc/expmed.c
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr27150-1.c