Re: [PATCH v2 3/3] gimple-fold: Use ranges to simplify strncat and snprintf

2021-11-15 Thread Jeff Law via Gcc-patches
On 11/15/2021 10:33 AM, Siddhesh Poyarekar wrote: Use ranges for lengths and object sizes in strncat and snprintf to determine if they can be transformed into simpler operations. gcc/ChangeLog: * gimple-fold.c (gimple_fold_builtin_strncat): Use ranges to determine if it is sa

[PATCH v2 3/3] gimple-fold: Use ranges to simplify strncat and snprintf

2021-11-15 Thread Siddhesh Poyarekar
Use ranges for lengths and object sizes in strncat and snprintf to determine if they can be transformed into simpler operations. gcc/ChangeLog: * gimple-fold.c (gimple_fold_builtin_strncat): Use ranges to determine if it is safe to transform to strcat. (gimple_fold_builtin