aboutsummaryrefslogtreecommitdiff
path: root/libbacktrace/elf.c
diff options
context:
space:
mode:
authorRubin Gerritsen <rubin.gerritsen@gmail.com>2024-07-16 21:11:24 +0200
committerRichard Biener <rguenth@gcc.gnu.org>2024-07-18 09:44:29 +0200
commitcee56fe0ba757cae17dcc4be216cea88be76e740 (patch)
tree5c242b1a68d98606eb38b5423c8e36c3454f155c /libbacktrace/elf.c
parent8c67dc40459e3d72e8169b099cc8c5dbdb759da3 (diff)
downloadgcc-cee56fe0ba757cae17dcc4be216cea88be76e740.zip
gcc-cee56fe0ba757cae17dcc4be216cea88be76e740.tar.gz
gcc-cee56fe0ba757cae17dcc4be216cea88be76e740.tar.bz2
gimple-fold: consistent dump of builtin call simplifications
Previously only simplifications of the `__st[xrp]cpy_chk` were dumped. Now all call replacement simplifications are dumped. Examples of statements with corresponding dumpfile entries: `printf("mystr\n");`: optimized: simplified printf to __builtin_puts `printf("%c", 'a');`: optimized: simplified printf to __builtin_putchar `printf("%s\n", "mystr");`: optimized: simplified printf to __builtin_puts The below test suites passed for this patch * The x86 bootstrap test. * Manual testing with some small example code manually examining dump logs, outputting the lines mentioned above. gcc/ChangeLog: * gimple-fold.cc (dump_transformation): Moved definition. (replace_call_with_call_and_fold): Calls dump_transformation. (gimple_fold_builtin_stxcpy_chk): Removes call to dump_transformation, now in replace_call_with_call_and_fold. (gimple_fold_builtin_stxncpy_chk): Removes call to dump_transformation, now in replace_call_with_call_and_fold. Signed-off-by: Rubin Gerritsen <rubin.gerritsen@gmail.com>
Diffstat (limited to 'libbacktrace/elf.c')
0 files changed, 0 insertions, 0 deletions