From 6f1a16cbe84edaa9551d21d8b4db5830b6fed5dd Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Mon, 7 Aug 2017 13:56:02 +0000 Subject: [PATCH] Fix unresolved in gcc.dg/pr46932.c Build only if pre-increment is supported. Given there is no config test, add a list of targets which have HAVE_PRE_INCREMENT set. testsuite/ PR middle-end/46932 * gcc.dg/pr46932.c: Compile on targets with pre-increment. From-SVN: r250918 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/pr46932.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0c234bcf8f7..00de4c2bd8d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-08-07 Wilco Dijkstra + + PR middle-end/46932 + * gcc.dg/pr46932.c: Compile on targets with pre-increment. + 2017-08-07 H.J. Lu * gcc.target/i386/pr81736-1.c: Removed. diff --git a/gcc/testsuite/gcc.dg/pr46932.c b/gcc/testsuite/gcc.dg/pr46932.c index b96febcc095..4eb1a99e1bd 100644 --- a/gcc/testsuite/gcc.dg/pr46932.c +++ b/gcc/testsuite/gcc.dg/pr46932.c @@ -1,5 +1,8 @@ /* { dg-options "-O2 -fdump-rtl-auto_inc_dec" } */ +/* Build on targets which have pre increment. */ +/* { dg-do compile { target aarch64*-*-* arm*-*-* rs6000-*-* powerpc*-*-* arc*-*-* m32r-*-* tic6x-*-* } } */ + /* Check that accesses based on the frame pointer do not use auto increment. */ -- 2.30.2