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]

[patch] Testsuite fix


The following patch fixes a test which fails with -fshort-enums.

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

Paul

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

	* gcc.c-torture/compile/20010518-1.c: Force enum size.

Index: gcc.c-torture/compile/20010518-1.c
===================================================================
RCS 
file: /var/cvsroot/gcc-cvs/gcc/gcc/testsuite/gcc.c-torture/compile/20010518-1.c,v
retrieving revision 1.1
diff -u -p -r1.1 20010518-1.c
--- a/gcc.c-torture/compile/20010518-1.c	18 May 2001 22:33:26 -0000	1.1
+++ b/gcc.c-torture/compile/20010518-1.c	11 May 2004 17:39:30 -0000
@@ -25,7 +25,7 @@ enum rtx_code
   UNKNOWN,
   NIL,
   REG,
-  LAST_AND_UNUSED_RTX_CODE
+  LAST_AND_UNUSED_RTX_CODE = 256
 };
 
 typedef struct


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