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] Handle '\0' in strcmp in RTL expansion (PR tree-optimization/90892).


On 6/27/19 7:20 AM, Martin Liška wrote:
> On 6/18/19 12:16 PM, Jakub Jelinek wrote:
>> I think any such length changes should be moved after the two punt checks.
>> Move also the len3 setting before the new checks (of course conditional on
>> is_ncmp).
> Ok, I'm sending updated version of the patch that addresses this.
> I've been testing the patch.
> 
> Ready to be installed then?
> Thanks,
> Martin
> 
> 
> 0001-Handle-0-in-strcmp-in-RTL-expansion-PR-tree-optimiza.patch
> 
> From 35043ab431c0dc1e8dcda484725a1f8875a4b95b Mon Sep 17 00:00:00 2001
> From: Martin Liska <mliska@suse.cz>
> Date: Mon, 17 Jun 2019 10:39:15 +0200
> Subject: [PATCH] Handle '\0' in strcmp in RTL expansion (PR
>  tree-optimization/90892).
> 
> gcc/ChangeLog:
> 
> 2019-06-17  Martin Liska  <mliska@suse.cz>
> 
> 	PR tree-optimization/90892
> 	* builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
> 	in string constants.
> 
> gcc/testsuite/ChangeLog:
> 
> 2019-06-17  Martin Liska  <mliska@suse.cz>
> 
> 	PR tree-optimization/90892
> 	* gcc.dg/pr90892.c: New test.
OK
jeff
> ---


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