[Bug c/80341] gcc miscompiles division of signed char
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 6 12:25:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80341
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Likely started with
commit 4d307e1ff39d0c2f90123ef789d611e2323be76d
Author: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed Feb 10 11:54:14 2010 +0000
2010-02-10 Richard Guenther <rguenther@suse.de>
PR c/43007
* tree.c (get_unwidened): Handle constants.
* convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
* gcc.c-torture/execute/20100209-1.c: New testcase.
* gcc.dg/fold-div-3.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156653
138bc75d-0d04-0410-961f-82ee72b054a4
More information about the Gcc-bugs
mailing list