Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. --- gcc-4.7.0-20120604/libcpp/lex.c 2011-12-20 20:56:54.000000000 +0800
  2. +++ gcc-4.7.0-20120604/libcpp/lex.umod.c 2012-07-05 21:53:30.184527392 +0800
  3. @@ -1322,7 +1322,10 @@
  4. raw_prefix_len++;
  5. continue;
  6. }
  7. - break;
  8. + if (raw_prefix[raw_prefix_len] > 0x80)
  9. + raw_prefix_len++;
  10. + else
  11. + break;
  12. }
  13.  
  14. if (raw_prefix[raw_prefix_len] != '(')
  15. @@ -2090,6 +2093,7 @@
  16. }
  17. /* Fall through. */
  18.  
  19. + cpp_name:
  20. case '_':
  21. case 'a': case 'b': case 'c': case 'd': case 'e': case 'f':
  22. case 'g': case 'h': case 'i': case 'j': case 'k': case 'l':
  23. @@ -2342,7 +2346,12 @@
  24. }
  25.  
  26. default:
  27. - create_literal (pfile, result, buffer->cur - 1, 1, CPP_OTHER);
  28. + if (c >= 0x80)
  29. + {
  30. + goto cpp_name;
  31. + }
  32. + else
  33. + create_literal (pfile, result, buffer->cur - 1, 1, CPP_OTHER);
  34. break;
  35. }
  36.  
  37. @@ -2451,13 +2460,7 @@
  38. const unsigned char * name = NODE_NAME (token->val.node.node);
  39.  
  40. for (i = 0; i < NODE_LEN (token->val.node.node); i++)
  41. - if (name[i] & ~0x7F)
  42. - {
  43. - i += utf8_to_ucn (buffer, name + i) - 1;
  44. - buffer += 10;
  45. - }
  46. - else
  47. - *buffer++ = NODE_NAME (token->val.node.node)[i];
  48. + *buffer++ = NODE_NAME (token->val.node.node)[i];
  49. }
  50. break;
  51.  
  52. @@ -2537,14 +2540,7 @@
  53. const unsigned char * name = NODE_NAME (token->val.node.node);
  54.  
  55. for (i = 0; i < NODE_LEN (token->val.node.node); i++)
  56. - if (name[i] & ~0x7F)
  57. - {
  58. - unsigned char buffer[10];
  59. - i += utf8_to_ucn (buffer, name + i) - 1;
  60. - fwrite (buffer, 1, 10, fp);
  61. - }
  62. - else
  63. - fputc (NODE_NAME (token->val.node.node)[i], fp);
  64. + fputc (NODE_NAME (token->val.node.node)[i], fp);
  65. }
  66. break;
  67.  
  68. --- gcc-4.6.1-20111002/libiberty/safe-ctype.c 2011-03-15 22:32:36.000000000 +0800
  69. +++ gcc-4.6.1-20111002/libiberty/safe-ctype.umod.c 2011-10-23 20:39:30.885345790 +0800
  70. @@ -177,15 +177,15 @@
  71.  
  72. /* high half of unsigned char is locale-specific, so all tests are
  73. false in "C" locale */
  74. - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  75. - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  76. - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  77. - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  78. + L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L,
  79. + L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L,
  80. + L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L,
  81. + L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L,
  82.  
  83. - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  84. - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  85. - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  86. - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  87. + L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L,
  88. + L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L,
  89. + L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L,
  90. + L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L,
  91. };
  92.  
  93. const unsigned char _sch_tolower[256] =
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement