This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/65014] [5 Regression] ice with error: type mismatch in shift expression
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Feb 2015 09:45:59 +0000
- Subject: [Bug tree-optimization/65014] [5 Regression] ice with error: type mismatch in shift expression
- Auto-submitted: auto-generated
- References: <bug-65014-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65014
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Feb 12 09:45:27 2015
New Revision: 220640
URL: https://gcc.gnu.org/viewcvs?rev=220640&root=gcc&view=rev
Log:
PR tree-optimization/65014
* fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
use original second operand of arg0 or arg1 instead of
that adjusted by STRIP_NOPS.
* gcc.c-torture/compile/pr65014.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr65014.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog