https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85659
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Jun 22 21:20:53 2018 New Revision: 261961 URL: https://gcc.gnu.org/viewcvs?rev=261961&root=gcc&view=rev Log: Backported from mainline 2018-05-06 Jakub Jelinek <ja...@redhat.com> PR c++/85659 * cfgexpand.c (expand_asm_stmt): Don't create a temporary if the type is addressable. Don't force op into register if it has BLKmode. * g++.dg/ext/asm14.C: New test. * g++.dg/ext/asm15.C: New test. * g++.dg/ext/asm16.C: New test. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/ext/asm14.C branches/gcc-7-branch/gcc/testsuite/g++.dg/ext/asm15.C branches/gcc-7-branch/gcc/testsuite/g++.dg/ext/asm16.C Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/cfgexpand.c branches/gcc-7-branch/gcc/testsuite/ChangeLog