Re: [PATCH] gimple-fold: Transform stp*cpy_chk to strcpy

2021-11-10 Thread Siddhesh Poyarekar
On 11/11/21 02:06, Jeff Law wrote: On 11/10/2021 10:47 AM, Siddhesh Poyarekar wrote: Use the ignore flag to transform BUILT_IN_STPCPY_CHK to BUILT_IN_STRCPY when set.  This transformation will happen in a subsequent fold anyway but do it right away and save the additional effort. gcc/ChangeLo

Re: [PATCH] gimple-fold: Transform stp*cpy_chk to strcpy

2021-11-10 Thread Jeff Law via Gcc-patches
On 11/10/2021 10:47 AM, Siddhesh Poyarekar wrote: Use the ignore flag to transform BUILT_IN_STPCPY_CHK to BUILT_IN_STRCPY when set. This transformation will happen in a subsequent fold anyway but do it right away and save the additional effort. gcc/ChangeLog: * gimple-fold.c (gimple

[PATCH] gimple-fold: Transform stp*cpy_chk to strcpy

2021-11-10 Thread Siddhesh Poyarekar
Use the ignore flag to transform BUILT_IN_STPCPY_CHK to BUILT_IN_STRCPY when set. This transformation will happen in a subsequent fold anyway but do it right away and save the additional effort. gcc/ChangeLog: * gimple-fold.c (gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_s