This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/61185] Wrong value in error message
- 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: Wed, 14 May 2014 10:08:12 +0000
- Subject: [Bug sanitizer/61185] Wrong value in error message
- Auto-submitted: auto-generated
- References: <bug-61185-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61185
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.10.0
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
And the reason is that we convert the (i - j) to int here:
10501 /* Convert the non vector shift-count to an integer, regardless
10502 of size of value being shifted. */
10503 if (TREE_CODE (TREE_TYPE (op1)) != VECTOR_TYPE
10504 && TYPE_MAIN_VARIANT (TREE_TYPE (op1)) !=
integer_type_node)
10505 op1 = convert (integer_type_node, op1);