[PATCH] Resolve the TODO in fold_builtin_strlen

Jeff Law law@redhat.com
Fri Sep 14 20:31:00 GMT 2018


On 9/14/18 1:51 PM, Bernd Edlinger wrote:
> Hi,
> 
> this resolves the TODO I left in fold_builtin_strlen by adding some test cases
> that fail without the c_strlen call with the TODO comment and pass when the
> additional c_strlen call is done.
> 
> 
> Bootstrapped and reg-tested on x86_64-pc-linux-gnu.
> Is it OK for trunk?
> 
> 
> Thanks
> Bernd.
> 
> 
> patch-fix-todo.diff
> 
> 2018-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
> 
> 	* builtins.c (fold_builtin_strlen): Remove TODO comment.
> 
> testsuite:
> 2018-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
> 
> 	* gcc.dg/warn-strlen-no-nul.c: Add some missing test cases.
OK.
jeff



More information about the Gcc-patches mailing list