From: Jakub Jelinek Date: Tue, 5 Mar 2019 13:38:59 +0000 (+0100) Subject: re PR tree-optimization/89487 (ICE in expand_expr_addr_expr_1, at expr.c:7993) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=186ae93c7b641f7fb94359b0bf764205624a0fd1;p=gcc.git re PR tree-optimization/89487 (ICE in expand_expr_addr_expr_1, at expr.c:7993) PR tree-optimization/89487 * gcc.dg/tree-ssa/pr89487.c: Include ../pr87600.h. (caml_interprete): Ifdef the whole body out if REG1 or REG2 macros aren't defined. Use REG1 instead of "%r15" and REG2 instead of "%r14". From-SVN: r269388 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b9bfeced886..a019b6202be 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,11 @@ 2019-03-05 Jakub Jelinek + PR tree-optimization/89487 + * gcc.dg/tree-ssa/pr89487.c: Include ../pr87600.h. + (caml_interprete): Ifdef the whole body out if REG1 or REG2 macros + aren't defined. Use REG1 instead of "%r15" and REG2 instead of + "%r14". + PR bootstrap/89560 * g++.dg/other/pr89560.C: New test. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr89487.c b/gcc/testsuite/gcc.dg/tree-ssa/pr89487.c index a02419675ff..974d005dcae 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr89487.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr89487.c @@ -1,13 +1,18 @@ +/* PR tree-optimization/89487 */ /* { dg-do compile } */ /* { dg-options "-O2 -ftree-loop-distribution" } */ +#include "../pr87600.h" + void caml_interprete (void) { - register int *pc asm("%r15"); - register int *sp asm("%r14"); +#if defined(REG1) && defined(REG2) + register int *pc asm(REG1); + register int *sp asm(REG2); int i; for (i = 0; i < 3; ++i) *--sp = pc[i]; +#endif }