This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C/C++ PATCH] Don't convert RHS of a shift-expression to int (PR c/63862)
- From: Richard Biener <rguenther at suse dot de>
- To: Jason Merrill <jason at redhat dot com>,Jakub Jelinek <jakub at redhat dot com>,Marek Polacek <polacek at redhat dot com>
- Cc: Joseph Myers <joseph at codesourcery dot com>,GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 26 Nov 2014 22:15:05 +0100
- Subject: Re: [C/C++ PATCH] Don't convert RHS of a shift-expression to int (PR c/63862)
- Authentication-results: sourceware.org; auth=none
- References: <20141126173944 dot GW29446 at redhat dot com> <20141126175029 dot GM1669 at tucnak dot redhat dot com> <20141126182004 dot GA15555 at redhat dot com> <20141126184955 dot GO1669 at tucnak dot redhat dot com> <54762942 dot 3040803 at redhat dot com>
On November 26, 2014 8:25:54 PM CET, Jason Merrill <jason@redhat.com> wrote:
>How about converting the rhs to unsigned int if it is already unsigned?
Does the standard say so? I think not.
IMHO it's not the front ends business to do this. And I don't see how it helps either.
Richard.
>Jason