diff options
author | David Mitchell <davem@iabyn.com> | 2017-03-08 14:57:23 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2017-06-07 11:28:20 +0100 |
commit | 5a2060e217d73fba807a79202aa876c8b6a8888a (patch) | |
tree | 218a9674adb5db810c9d37d8ec31fbe632858355 /perly.tab | |
parent | 8c5fc2b7832433c282c07796345b54bd79e334f3 (diff) | |
download | perl-5a2060e217d73fba807a79202aa876c8b6a8888a.tar.gz |
perly.y: add $$ = 0 for midrule code blocks
In places where a rule contains multiple code blocks, ensure that
$$ is assigned a valid value at the end of midrule blocks, so that
valgrind ./perl -Dpv ...
doesn't display zillions of
Conditional jump or move depends on uninitialised value
errors, when perl tries to display the parse stack.
I've only done the various newish top-level grammar entries - these all
seemed to have the same defect, while from a quick glance elsewhere in the
file, it seemed like older rules already do this.
Diffstat (limited to 'perly.tab')
-rw-r--r-- | perly.tab | 66 |
1 files changed, 33 insertions, 33 deletions
@@ -69,34 +69,34 @@ static const yytype_uint8 yytranslate[] = /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { - 0, 118, 118, 117, 128, 127, 137, 136, 149, 148, - 161, 160, 173, 172, 184, 192, 200, 204, 212, 218, - 219, 229, 230, 239, 243, 247, 251, 258, 260, 271, - 270, 304, 303, 342, 350, 349, 358, 364, 370, 375, - 377, 379, 386, 394, 396, 393, 413, 418, 425, 424, - 439, 447, 453, 460, 459, 474, 478, 486, 504, 505, - 510, 512, 514, 516, 518, 520, 522, 525, 531, 532, - 537, 548, 549, 555, 561, 562, 567, 570, 574, 579, - 583, 587, 588, 592, 598, 603, 608, 609, 614, 615, - 620, 621, 623, 628, 630, 642, 643, 648, 650, 654, - 674, 675, 677, 683, 748, 750, 756, 758, 762, 768, - 769, 774, 773, 825, 826, 830, 832, 834, 836, 840, - 842, 847, 851, 855, 859, 865, 870, 876, 882, 884, - 887, 886, 897, 898, 902, 906, 909, 914, 919, 922, - 926, 930, 933, 938, 942, 945, 947, 949, 954, 956, - 958, 963, 965, 967, 969, 971, 973, 975, 977, 979, - 981, 983, 988, 990, 993, 995, 997, 1000, 1003, 1014, - 1017, 1024, 1026, 1028, 1030, 1032, 1035, 1049, 1051, 1055, - 1056, 1057, 1058, 1059, 1061, 1063, 1065, 1067, 1069, 1071, - 1073, 1075, 1077, 1079, 1081, 1083, 1085, 1087, 1097, 1107, - 1117, 1127, 1129, 1131, 1134, 1139, 1143, 1145, 1147, 1149, - 1152, 1154, 1157, 1159, 1161, 1163, 1165, 1167, 1169, 1171, - 1173, 1176, 1178, 1180, 1182, 1184, 1186, 1190, 1193, 1192, - 1205, 1206, 1207, 1212, 1216, 1218, 1220, 1225, 1227, 1230, - 1232, 1234, 1239, 1241, 1246, 1247, 1252, 1253, 1259, 1263, - 1264, 1265, 1268, 1269, 1272, 1273, 1276, 1280, 1284, 1290, - 1296, 1298, 1302, 1306, 1307, 1311, 1312, 1316, 1317, 1322, - 1324, 1326, 1329 + 0, 118, 118, 117, 129, 128, 139, 138, 152, 151, + 165, 164, 178, 177, 190, 198, 206, 210, 218, 224, + 225, 235, 236, 245, 249, 253, 257, 264, 266, 277, + 276, 310, 309, 348, 356, 355, 364, 370, 376, 381, + 383, 385, 392, 400, 402, 399, 419, 424, 431, 430, + 445, 453, 459, 466, 465, 480, 484, 492, 510, 511, + 516, 518, 520, 522, 524, 526, 528, 531, 537, 538, + 543, 554, 555, 561, 567, 568, 573, 576, 580, 585, + 589, 593, 594, 598, 604, 609, 614, 615, 620, 621, + 626, 627, 629, 634, 636, 648, 649, 654, 656, 660, + 680, 681, 683, 689, 754, 756, 762, 764, 768, 774, + 775, 780, 779, 831, 832, 836, 838, 840, 842, 846, + 848, 853, 857, 861, 865, 871, 876, 882, 888, 890, + 893, 892, 903, 904, 908, 912, 915, 920, 925, 928, + 932, 936, 939, 944, 948, 951, 953, 955, 960, 962, + 964, 969, 971, 973, 975, 977, 979, 981, 983, 985, + 987, 989, 994, 996, 999, 1001, 1003, 1006, 1009, 1020, + 1023, 1030, 1032, 1034, 1036, 1038, 1041, 1055, 1057, 1061, + 1062, 1063, 1064, 1065, 1067, 1069, 1071, 1073, 1075, 1077, + 1079, 1081, 1083, 1085, 1087, 1089, 1091, 1093, 1103, 1113, + 1123, 1133, 1135, 1137, 1140, 1145, 1149, 1151, 1153, 1155, + 1158, 1160, 1163, 1165, 1167, 1169, 1171, 1173, 1175, 1177, + 1179, 1182, 1184, 1186, 1188, 1190, 1192, 1196, 1199, 1198, + 1211, 1212, 1213, 1218, 1222, 1224, 1226, 1231, 1233, 1236, + 1238, 1240, 1245, 1247, 1252, 1253, 1258, 1259, 1265, 1269, + 1270, 1271, 1274, 1275, 1278, 1279, 1282, 1286, 1290, 1296, + 1302, 1304, 1308, 1312, 1313, 1317, 1318, 1322, 1323, 1328, + 1330, 1332, 1335 }; #endif @@ -120,8 +120,8 @@ static const char *const yytname[] = "BITOROP", "BITANDOP", "SHIFTOP", "MATCHOP", "'!'", "'~'", "UMINUS", "REFGEN", "POWOP", "PREINC", "PREDEC", "POSTINC", "POSTDEC", "POSTJOIN", "ARROW", "')'", "'('", "';'", "'$'", "'*'", "'/'", "$accept", "grammar", - "$@1", "$@2", "$@3", "$@4", "$@5", "$@6", "block", "formblock", - "remember", "mblock", "mremember", "stmtseq", "formstmtseq", "fullstmt", + "@1", "@2", "@3", "@4", "@5", "@6", "block", "formblock", "remember", + "mblock", "mremember", "stmtseq", "formstmtseq", "fullstmt", "labfullstmt", "barestmt", "$@7", "$@8", "$@9", "$@10", "$@11", "@12", "$@13", "formline", "formarg", "sideff", "else", "cont", "mintro", "nexpr", "texpr", "iexpr", "mexpr", "mnexpr", "formname", "startsub", @@ -1092,8 +1092,8 @@ static const toketypes yy_type_tab[] = toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, - toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_opval, toketype_opval, - toketype_ival, toketype_opval, toketype_ival, toketype_opval, toketype_opval, toketype_opval, + toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_opval, toketype_opval, toketype_ival, + toketype_opval, toketype_ival, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_ival, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_ival, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_opval, toketype_ival, @@ -1109,6 +1109,6 @@ static const toketypes yy_type_tab[] = }; /* Generated from: - * a8b5527eacb1205d15c8c01acb4a8f99b494e5b453ddd68a2a2e7fca4be3302a perly.y + * 68a62998f7c607d7a1fa0fdf2d16ec19074c256dde18dfc475daff70d378e025 perly.y * 153cba5d215c1a083a0459c43f4d55c45fd0a7093c197d7247a456dcde21ea53 regen_perly.pl * ex: set ro: */ |