https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79085
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Jun 22 20:43:53 2018 New Revision: 261925 URL: https://gcc.gnu.org/viewcvs?rev=261925&root=gcc&view=rev Log: Backported from mainline 2018-03-15 Jakub Jelinek <ja...@redhat.com> PR c++/79085 * calls.c (expand_call): For TREE_ADDRESSABLE rettype ignore alignment check and use address of target always. * g++.dg/opt/pr79085.C: New test. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/opt/pr79085.C Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/calls.c branches/gcc-7-branch/gcc/testsuite/ChangeLog