aboutsummaryrefslogtreecommitdiff
path: root/gcc/gdbhooks.py
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2023-03-03 11:13:40 +0100
committerJakub Jelinek <jakub@redhat.com>2023-03-03 11:19:37 +0100
commitdbeccab7a1f5dcc1876c854f17816047ba1ef137 (patch)
treed2550d5f0cf276ae94a05c547c86b6bbf9c41d4a /gcc/gdbhooks.py
parenta5c543910a1679ba3c9b78e3b362a16a150e2bf7 (diff)
downloadgcc-dbeccab7a1f5dcc1876c854f17816047ba1ef137.zip
gcc-dbeccab7a1f5dcc1876c854f17816047ba1ef137.tar.gz
gcc-dbeccab7a1f5dcc1876c854f17816047ba1ef137.tar.bz2
gimple-fold: Fix up fputs -> fwrite folding [PR108988]
gimple_fold_builtin_fputs when folding fputs into fwrite emits the third argument (INTEGER_CST) with incorrect type - get_maxval_strlen or c_strlen return ssizetype, while fwrite argument is size_type_node. The following patch fixes that, I've skimmed through the rest of gimple-fold.cc and in all other places get_maxval_strlen/c_strlen result was fold_converted to size_type_node already (or GIMPLE cast stmt has been emitted directly etc.). 2023-03-03 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/108988 * gimple-fold.cc (gimple_fold_builtin_fputs): Fold len to size_type_node before passing it as argument to fwrite. Formatting fixes.
Diffstat (limited to 'gcc/gdbhooks.py')
0 files changed, 0 insertions, 0 deletions