995-short-enums.diff 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. @@ -38,6 +38,7 @@
  7. LAST_AND_UNUSED_TREE_CODE /* A convenient way to get a value for
  8. NUM_TREE_CODES. */
  9. + ,__LAST_AND_UNUSED_TREE_CODE=32767 /* Force 16bit width. */
  10. };
  11. #undef DEFTREECODE
  12. Index: gcc-4.3.0/gcc/rtl.h
  13. ===================================================================
  14. --- gcc-4.3.0/gcc/rtl.h (revision 130511)
  15. +++ gcc-4.3.0/gcc/rtl.h (working copy)
  16. @@ -48,9 +48,11 @@
  17. #include "rtl.def" /* rtl expressions are documented here */
  18. #undef DEF_RTL_EXPR
  19. - LAST_AND_UNUSED_RTX_CODE}; /* A convenient way to get a value for
  20. + LAST_AND_UNUSED_RTX_CODE /* A convenient way to get a value for
  21. NUM_RTX_CODE.
  22. Assumes default enum value assignment. */
  23. + ,__LAST_AND_UNUSED_RTX_CODE=32767 /* Force 16bit width. */
  24. +};
  25. #define NUM_RTX_CODE ((int) LAST_AND_UNUSED_RTX_CODE)
  26. /* The cast here, saves many elsewhere. */
  27. Index: gcc-4.3.0/gcc/c-common.h
  28. ===================================================================
  29. --- gcc-4.3.0/gcc/c-common.h (revision 130511)
  30. +++ gcc-4.3.0/gcc/c-common.h (working copy)
  31. @@ -125,6 +125,7 @@
  32. RID_LAST_AT = RID_AT_IMPLEMENTATION,
  33. RID_FIRST_PQ = RID_IN,
  34. RID_LAST_PQ = RID_ONEWAY
  35. + ,__LAST_AND_UNUSED_RID=32767 /* Force 16bit width. */
  36. };
  37. #define OBJC_IS_AT_KEYWORD(rid) \