https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67653
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Feb 11 09:23:58 2016 New Revision: 233332 URL: https://gcc.gnu.org/viewcvs?rev=233332&root=gcc&view=rev Log: Backported from mainline 2016-01-21 Jakub Jelinek <ja...@redhat.com> PR middle-end/67653 * gimplify.c (gimplify_asm_expr): Warn if it is too late to attempt to mark memory input operand addressable and call prepare_gimple_addressable in that case. Don't adjust input_location for diagnostics, use error_at instead. * c-c++-common/pr67653.c: New test. * gcc.dg/torture/pr29119.c: Add dg-warning. Added: branches/gcc-4_9-branch/gcc/testsuite/c-c++-common/pr67653.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/gimplify.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr29119.c