This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix fold_binary_loc BIT_XOR_EXPR folding (PR sanitizer/80349)


On Thu, Apr 27, 2017 at 09:17:44PM +0200, Marek Polacek wrote:
> Yet another missing converts caused that BIT_XOR_EXPRs with incompatible
> arguments have gotten into the gimplifier.  Fixed thus.  This patch also
> improves readability by using a temporary, the current style wasn't very
> readable especially because of the wrong formatting caused by adding the
> *_loc variants...

Yeah, this is indeed much more readable.

> Bootstrapped/regtested on x86_64-linux, ok for trunk?
> 
> 2017-04-27  Marek Polacek  <polacek@redhat.com>
> 
> 	PR sanitizer/80349
> 	* fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
> 	arg10 and arg11 to itype.
> 
> 	* c-c++-common/ubsan/pr80349.c: New test.

Ok for trunk and after a while for 7.2.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]