Patchwork [Testsuite] Fix failure in gcc.dg/tree-ssa/forwprop-26.c

login
register
mail settings
Submitter Greta Yorsh
Date May 3, 2013, 7:13 p.m.
Message ID <CAG-8DVkCZtbie5_F8TEYBEdoCwH9Uw1noZHk70yCHXB979BKWA@mail.gmail.com>
Download mbox | patch
Permalink /patch/241371/
State New
Headers show

Comments

Greta Yorsh - May 3, 2013, 7:13 p.m.
This is a new test that fails on arm and probably other targets that
have short enums by default:

FAIL: gcc.dg/tree-ssa/forwprop-26.c (test for excess errors)
Excess errors:
/src/gcc/gcc/testsuite/gcc.dg/tree-ssa/forwprop-26.c:13:22: error:
width of 'code' exceeds its type
gcc.dg/tree-ssa/forwprop-26.c: dump file does not exist

This patch adds missing -fno-short-enums to dg-options. It fixes the
test failure.

Ok for trunk?

Thanks,
Greta

gcc/testsuite/ChangeLog

2013-05-03  Greta Yorsh  <Greta.Yorsh@arm.com>

 * gcc.dg/tree-ssa/forwprop-26.c: Add -fno-short-enums
 to dg-options.
Jeff Law - May 3, 2013, 8:27 p.m.
On 05/03/2013 01:13 PM, Greta Yorsh wrote:
> This is a new test that fails on arm and probably other targets that
> have short enums by default:
>
> FAIL: gcc.dg/tree-ssa/forwprop-26.c (test for excess errors)
> Excess errors:
> /src/gcc/gcc/testsuite/gcc.dg/tree-ssa/forwprop-26.c:13:22: error:
> width of 'code' exceeds its type
> gcc.dg/tree-ssa/forwprop-26.c: dump file does not exist
>
> This patch adds missing -fno-short-enums to dg-options. It fixes the
> test failure.
>
> Ok for trunk?
>
> Thanks,
> Greta
>
> gcc/testsuite/ChangeLog
>
> 2013-05-03  Greta Yorsh  <Greta.Yorsh@arm.com>
>
>   * gcc.dg/tree-ssa/forwprop-26.c: Add -fno-short-enums
>   to dg-options.
This is fine.  Sorry for introducing the noise.

jeff

Patch

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-26.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-26.c
index 14821af..108b1bc 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-26.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-26.c
@@ -1,5 +1,5 @@ 
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-forwprop1" } */
+/* { dg-options "-O2 -fdump-tree-forwprop1 -fno-short-enums" } */
 
 union tree_node;
 typedef union tree_node *tree;