re PR middle-end/36300 (Incorrect type used for inlined expression)
authorRichard Guenther <rguenther@suse.de>
Mon, 26 May 2008 12:38:19 +0000 (12:38 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 26 May 2008 12:38:19 +0000 (12:38 +0000)
commitfcb4587ef66e7d3d5b2e580b1a737e73ae78bb23
tree7061c86d99df91be70148ec69b4696860a24b55b
parentd6ca724ce2bf5d47d973d6231a80e6e83c244a92
re PR middle-end/36300 (Incorrect type used for inlined expression)

2008-05-26  Richard Guenther  <rguenther@suse.de>

PR middle-end/36300
* fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.

* gcc.dg/pr36300-1.c: New testcase.
* gcc.dg/pr36300-2.c: Likewise.

From-SVN: r135913
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr36300-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr36300-2.c [new file with mode: 0644]