Patchwork [testsuite] No short enum in tree-ssa test

login
register
mail settings
Submitter Joey Ye
Date Aug. 24, 2012, 3:05 a.m.
Message ID <000801cd81a5$4cc3a6d0$e64af470$@ye@arm.com>
Download mbox | patch
Permalink /patch/179762/
State New
Headers show

Comments

Joey Ye - Aug. 24, 2012, 3:05 a.m.
Ssa-dom-thread-3.c has following code to trigger a warning on ARM. Add
-fno-short-enums to suppress it.
struct tree_base
{
  enum tree_code code:16;
};

OK to trunk and 4.7?

2012-08-15  Joey Ye <Joey.Ye@arm.com>

    * gcc.dg/tree-ssa/ssa-dom-thread-3.c: Add -fno-short-enums.
Janis Johnson - Aug. 24, 2012, 9:01 p.m.
On 08/23/2012 08:05 PM, Joey Ye wrote:
> Ssa-dom-thread-3.c has following code to trigger a warning on ARM. Add
> -fno-short-enums to suppress it.
> struct tree_base
> {
>   enum tree_code code:16;
> };
> 
> OK to trunk and 4.7?

OK.

Janis

> 2012-08-15  Joey Ye <Joey.Ye@arm.com>
> 
>     * gcc.dg/tree-ssa/ssa-dom-thread-3.c: Add -fno-short-enums.
> 
> Index: testsuite/gcc.dg/tree-ssa/ssa-dom-thread-3.c
> ===================================================================
> --- testsuite/gcc.dg/tree-ssa/ssa-dom-thread-3.c	(revision 190337)
> +++ testsuite/gcc.dg/tree-ssa/ssa-dom-thread-3.c	(working copy)
> @@ -1,5 +1,5 @@
>  /* { dg-do compile } */ 
> -/* { dg-options "-O2 -fdump-tree-dom1-details" } */
> +/* { dg-options "-O2 -fdump-tree-dom1-details -fno-short-enums" } */
> extern void abort (void) __attribute__ ((__noreturn__));
>  union tree_node;
>  typedef union tree_node *tree;
> 
> 
> 
> 
> 
> 
>

Patch

Index: testsuite/gcc.dg/tree-ssa/ssa-dom-thread-3.c
===================================================================
--- testsuite/gcc.dg/tree-ssa/ssa-dom-thread-3.c	(revision 190337)
+++ testsuite/gcc.dg/tree-ssa/ssa-dom-thread-3.c	(working copy)
@@ -1,5 +1,5 @@ 
 /* { dg-do compile } */ 
-/* { dg-options "-O2 -fdump-tree-dom1-details" } */
+/* { dg-options "-O2 -fdump-tree-dom1-details -fno-short-enums" } */
extern void abort (void) __attribute__ ((__noreturn__));
 union tree_node;
 typedef union tree_node *tree;