From 186ae93c7b641f7fb94359b0bf764205624a0fd1 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 5 Mar 2019 14:38:59 +0100 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/tree-ssa/pr89487.c | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) 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 } -- 2.30.2