https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107389
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:7899582a059a9d8c25bfff305cd236d219dc4f20 commit r13-3810-g7899582a059a9d8c25bfff305cd236d219dc4f20 Author: Richard Biener <rguent...@suse.de> Date: Tue Nov 8 13:49:16 2022 +0100 tree-optimization/107389 - honor __builtin_assume_alignment at -O0 The following makes sure to set alignment information on the LHS of __builtin_assume_alignment calls even when not optimizing so uses as arguments to builtin functions like memcpy or __atomic_load_n can be reflected at RTL expansion time. PR tree-optimization/107389 * gimple-low.cc (lower_builtin_assume_aligned): New. (lower_stmt): Call it. * gcc.dg/pr107389.c: New testcase.