This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/45397] [4.9/5/6 Regression] Issues with integer narrowing conversions
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Oct 2015 11:39:36 +0000
- Subject: [Bug tree-optimization/45397] [4.9/5/6 Regression] Issues with integer narrowing conversions
- Auto-submitted: auto-generated
- References: <bug-45397-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45397
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #19 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
When this deficiency is finally resolved, we should be able to remove the code
in convert_to_integer dealing with narrowing operands:
738 case PLUS_EXPR:
739 case MINUS_EXPR:
740 case BIT_AND_EXPR:
741 case BIT_IOR_EXPR:
742 case BIT_XOR_EXPR:
743 trunc1:
744 {
...
821 return convert (type,
822 fold_build2 (ex_form, typex,
823 convert (typex, arg0),
824 convert (typex, arg1)));