PR81703 and Martin's fix for PR83501

Jeff Law law@redhat.com
Wed Jan 10 21:40:00 GMT 2018


On 01/10/2018 11:42 AM, Prathamesh Kulkarni wrote:
> Hi,
> I have attached patch for PR81703 rebased on Martin's fix for PR83501
> posted here since both had considerable overlaps:
> https://gcc.gnu.org/ml/gcc-patches/2018-01/msg00180.html
> 
> The patch passes bootstrap+test on x86_64-unknown-linux-gnu
> and cross-tested on aarch64-*-*.
> Currently it fails to pass validation on arm targets because of PR83775.
> 
> Does it look OK?
> 
> Thanks,
> Prathamesh
> 
> 
> pr81703-1.txt
> 
> 
> 2018-10-01  Martin Sebor  <msebor@gmail.com>
> 	    Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
> 
> 	PR tree-optimization/83501
> 	PR tree-optimization/81703
> 
> 	* tree-ssa-strlen.c (get_string_cst): Rename...
> 	(get_string_len): ...to this.  Handle global constants.
> 	(handle_char_store): Adjust.
> 
> testsuite/
> 	* gcc.dg/strlenopt-39.c: New test-case.
> 	* gcc.dg/pr81703.c: Likewise.
OK.

Jeff



More information about the Gcc-patches mailing list