https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84941
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Jun 22 20:56:25 2018 New Revision: 261936 URL: https://gcc.gnu.org/viewcvs?rev=261936&root=gcc&view=rev Log: Backported from mainline 2018-03-22 Jakub Jelinek <ja...@redhat.com> PR inline-asm/84941 * function.c (match_asm_constraints_1): Don't do the optimization if input isn't a REG, SUBREG, MEM or constant. * gcc.dg/pr84941.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr84941.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/function.c branches/gcc-7-branch/gcc/testsuite/ChangeLog