This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Testsuite fix for short-enums


Following patch fixes thee testsuite failures when using with -fshort-enums.

Tested with cross to arm-none-elf.
Applied as obvious.

Paul

2004-05-13  Paul Brook  <paul@codesourcery.com>

	* gcc.dg/tree-ssa/20030808-1.c: Force enum size.
	* gcc.dg/tree-ssa/20030714-1.c: Ditto.
	* gcc.dg/tree-ssa/20030708-1.c: Ditto.

Index: gcc.dg/tree-ssa/20030708-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c,v
retrieving revision 1.2
diff -u -p -r1.2 20030708-1.c
--- gcc.dg/tree-ssa/20030708-1.c	13 May 2004 06:40:51 -0000	1.2
+++ gcc.dg/tree-ssa/20030708-1.c	13 May 2004 17:13:04 -0000
@@ -6,7 +6,8 @@ enum rtx_code
 {
   CALL_INSN,
   EXPR_LIST,
-  NOTE
+  NOTE,
+  LAST = 256
 };
 
 struct rtx_def
Index: gcc.dg/tree-ssa/20030714-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/20030714-1.c,v
retrieving revision 1.2
diff -u -p -r1.2 20030714-1.c
--- gcc.dg/tree-ssa/20030714-1.c	13 May 2004 06:40:51 -0000	1.2
+++ gcc.dg/tree-ssa/20030714-1.c	13 May 2004 17:13:04 -0000
@@ -6,7 +6,7 @@ typedef struct rtx_def *rtx;
 enum rtx_code
 {
   REG,
-  LAST_AND_UNUSED_RTX_CODE
+  LAST_AND_UNUSED_RTX_CODE = 256
 };
 typedef union rtunion_def rtunion;
 struct rtx_def
Index: gcc.dg/tree-ssa/20030808-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/20030808-1.c,v
retrieving revision 1.2
diff -u -p -r1.2 20030808-1.c
--- gcc.dg/tree-ssa/20030808-1.c	13 May 2004 06:40:51 -0000	1.2
+++ gcc.dg/tree-ssa/20030808-1.c	13 May 2004 17:13:04 -0000
@@ -9,7 +9,7 @@ enum rtx_code
   UNKNOWN,
   CODE_LABEL,
   NOTE,
-  LAST_AND_UNUSED_RTX_CODE
+  LAST_AND_UNUSED_RTX_CODE = 256
 };
 typedef union rtunion_def rtunion;
 struct rtx_def


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]