And GCC 13 backports.
All tested on x86_64-linux-gnu.
Andrew Pinski (4):
strlen: Fixup load alignment for memcmp
phiopt: Rewrite cond_removal_in_builtin_zero_pattern canonicalization
args code [PR123645]
widen mult: Fix handling of _Fract mixed with _Fract [PR119568]
c: Handle REALPART_EXPR and IMAGPART_EXPR in fold_offsetof [PR105555]
gcc/c-family/c-common.cc | 10 +++++++
gcc/testsuite/gcc.dg/complex-10.c | 16 ++++++++++++
gcc/testsuite/gcc.dg/torture/pr123645-1.c | 24 +++++++++++++++++
gcc/testsuite/gcc.dg/torture/pr123645-2.c | 24 +++++++++++++++++
gcc/tree-ssa-math-opts.cc | 5 ++++
gcc/tree-ssa-phiopt.cc | 32 ++++++++++++++++++-----
gcc/tree-ssa-strlen.cc | 12 +++++++--
7 files changed, 115 insertions(+), 8 deletions(-)
create mode 100644 gcc/testsuite/gcc.dg/complex-10.c
create mode 100644 gcc/testsuite/gcc.dg/torture/pr123645-1.c
create mode 100644 gcc/testsuite/gcc.dg/torture/pr123645-2.c
--
2.43.0