From 5f33b353ea04335c7d1210eab3d4a46ec54f0633 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 12 Sep 2017 16:32:39 +0200 Subject: [PATCH] Fix GIMPLE FE test (PR testsuite/82114) 2017-09-12 Martin Liska PR testsuite/82114 * gcc.dg/gimplefe-14.c (main): Add handling of case 0. From-SVN: r252024 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/gimplefe-14.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 57226399b77..e7835ef53d5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-09-12 Martin Liska + + PR testsuite/82114 + * gcc.dg/gimplefe-14.c (main): Add handling of case 0. + 2017-09-12 Richard Biener PR tree-optimization/82157 diff --git a/gcc/testsuite/gcc.dg/gimplefe-14.c b/gcc/testsuite/gcc.dg/gimplefe-14.c index c0dd54ab430..15022297703 100644 --- a/gcc/testsuite/gcc.dg/gimplefe-14.c +++ b/gcc/testsuite/gcc.dg/gimplefe-14.c @@ -7,7 +7,9 @@ main (int argc, char * * argv) int a; bb_2: - switch (argc_2(D)) {default: L2; case 1: L0; case 2: L1; } + /* Because of PR82114 we need to handle also 0 as base metal can have + argc == 0. */ + switch (argc_2(D)) {default: L2; case 0: L0; case 1: L0; case 2: L1; } L0: a_4 = 0; -- 2.30.2