bd72f1a4ccfb9076a9a62de737637d466b89684c
[openwrt.git] / toolchain / gcc / patches / 4.3.5 / 995-short-enums.diff
1 see gcc PR34205
2 Index: gcc-4.3.0/gcc/tree.h
3 ===================================================================
4 --- gcc-4.3.0/gcc/tree.h (revision 130511)
5 +++ gcc-4.3.0/gcc/tree.h (working copy)
6 @@ -39,6 +39,7 @@
7
8 LAST_AND_UNUSED_TREE_CODE /* A convenient way to get a value for
9 NUM_TREE_CODES. */
10 + ,__LAST_AND_UNUSED_TREE_CODE=32767 /* Force 16bit width. */
11 };
12
13 #undef DEFTREECODE
14 Index: gcc-4.3.0/gcc/rtl.h
15 ===================================================================
16 --- gcc-4.3.0/gcc/rtl.h (revision 130511)
17 +++ gcc-4.3.0/gcc/rtl.h (working copy)
18 @@ -48,9 +48,11 @@
19 #include "rtl.def" /* rtl expressions are documented here */
20 #undef DEF_RTL_EXPR
21
22 - LAST_AND_UNUSED_RTX_CODE}; /* A convenient way to get a value for
23 + LAST_AND_UNUSED_RTX_CODE /* A convenient way to get a value for
24 NUM_RTX_CODE.
25 Assumes default enum value assignment. */
26 + ,__LAST_AND_UNUSED_RTX_CODE=32767 /* Force 16bit width. */
27 +};
28
29 #define NUM_RTX_CODE ((int) LAST_AND_UNUSED_RTX_CODE)
30 /* The cast here, saves many elsewhere. */
31 Index: gcc-4.3.0/gcc/c-common.h
32 ===================================================================
33 --- gcc-4.3.0/gcc/c-common.h (revision 130511)
34 +++ gcc-4.3.0/gcc/c-common.h (working copy)
35 @@ -125,6 +125,7 @@
36 RID_LAST_AT = RID_AT_IMPLEMENTATION,
37 RID_FIRST_PQ = RID_IN,
38 RID_LAST_PQ = RID_ONEWAY
39 + ,__LAST_AND_UNUSED_RID=32767 /* Force 16bit width. */
40 };
41
42 #define OBJC_IS_AT_KEYWORD(rid) \
This page took 0.041674 seconds and 3 git commands to generate.