diff options
Diffstat (limited to 'gcc/c-parse.c')
-rw-r--r-- | gcc/c-parse.c | 850 |
1 files changed, 378 insertions, 472 deletions
diff --git a/gcc/c-parse.c b/gcc/c-parse.c index cd51c24..6d730c8 100644 --- a/gcc/c-parse.c +++ b/gcc/c-parse.c @@ -120,9 +120,6 @@ static tree prefix_attributes = NULL_TREE; /* Stack of saved values of current_declspecs and prefix_attributes. */ static tree declspec_stack; -/* 1 if we explained undeclared var errors. */ -static int undeclared_variable_notice; - /* For __extension__, save/restore the warning flags which are controlled by __extension__. */ #define SAVE_WARN_FLAGS() \ @@ -383,47 +380,47 @@ static const short yyrhs[] = { -1, #if YYDEBUG != 0 static const short yyrline[] = { 0, - 236, 241, 255, 257, 257, 258, 260, 262, 263, 271, - 275, 285, 289, 293, 295, 297, 298, 299, 304, 311, - 313, 317, 321, 327, 329, 333, 337, 343, 345, 349, - 355, 357, 360, 362, 364, 366, 368, 370, 372, 376, - 380, 383, 386, 389, 393, 395, 398, 401, 405, 433, - 439, 442, 445, 448, 450, 452, 456, 460, 464, 466, - 469, 473, 500, 502, 504, 506, 508, 510, 512, 514, - 516, 518, 520, 522, 524, 526, 530, 532, 536, 538, - 541, 545, 547, 554, 557, 565, 576, 674, 675, 677, - 683, 685, 708, 717, 719, 721, 725, 731, 733, 738, - 740, 748, 750, 751, 761, 766, 768, 769, 770, 777, - 782, 786, 789, 797, 802, 804, 805, 806, 813, 823, - 827, 832, 836, 840, 844, 846, 848, 857, 860, 864, - 866, 868, 873, 877, 880, 884, 887, 889, 901, 904, - 906, 908, 912, 916, 918, 921, 934, 937, 941, 943, - 951, 952, 953, 957, 959, 965, 966, 967, 970, 972, - 975, 977, 980, 983, 989, 996, 998, 1005, 1012, 1015, - 1022, 1025, 1029, 1032, 1036, 1041, 1044, 1048, 1051, 1053, - 1055, 1057, 1064, 1066, 1067, 1068, 1073, 1075, 1077, 1079, - 1084, 1088, 1091, 1093, 1098, 1100, 1101, 1104, 1104, 1107, - 1110, 1112, 1114, 1117, 1119, 1122, 1128, 1130, 1134, 1148, - 1156, 1160, 1174, 1182, 1189, 1191, 1196, 1199, 1204, 1206, - 1208, 1215, 1217, 1225, 1231, 1236, 1238, 1240, 1247, 1249, - 1255, 1261, 1263, 1265, 1270, 1272, 1279, 1281, 1284, 1287, - 1291, 1294, 1298, 1301, 1305, 1310, 1312, 1316, 1318, 1320, - 1322, 1326, 1328, 1330, 1333, 1335, 1338, 1342, 1344, 1347, - 1349, 1354, 1357, 1362, 1364, 1366, 1380, 1386, 1399, 1404, - 1409, 1411, 1416, 1418, 1422, 1426, 1430, 1440, 1442, 1447, - 1452, 1455, 1459, 1462, 1466, 1469, 1472, 1475, 1479, 1482, - 1486, 1490, 1492, 1494, 1496, 1498, 1500, 1502, 1504, 1508, - 1516, 1524, 1526, 1528, 1532, 1534, 1537, 1540, 1550, 1552, - 1557, 1559, 1562, 1576, 1579, 1582, 1584, 1586, 1590, 1594, - 1600, 1618, 1623, 1628, 1631, 1645, 1654, 1658, 1662, 1666, - 1672, 1676, 1681, 1684, 1689, 1692, 1693, 1709, 1714, 1717, - 1729, 1731, 1741, 1751, 1752, 1759, 1761, 1773, 1777, 1791, - 1797, 1803, 1804, 1809, 1814, 1818, 1822, 1833, 1840, 1847, - 1854, 1865, 1871, 1874, 1879, 1902, 1932, 1963, 1994, 2009, - 2023, 2027, 2031, 2034, 2039, 2041, 2044, 2046, 2050, 2055, - 2058, 2064, 2069, 2074, 2076, 2085, 2086, 2092, 2094, 2104, - 2106, 2110, 2113, 2119, 2128, 2136, 2144, 2153, 2166, 2171, - 2176, 2178, 2187, 2190, 2195, 2198, 2202 + 233, 238, 252, 254, 254, 255, 257, 259, 260, 268, + 272, 282, 286, 290, 292, 294, 295, 296, 301, 308, + 310, 314, 318, 324, 326, 330, 334, 340, 342, 346, + 352, 354, 357, 359, 361, 363, 365, 367, 369, 373, + 377, 380, 383, 386, 390, 392, 395, 398, 402, 430, + 436, 439, 442, 445, 447, 449, 453, 457, 461, 463, + 466, 470, 497, 499, 501, 503, 505, 507, 509, 511, + 513, 515, 517, 519, 521, 523, 527, 529, 533, 535, + 538, 542, 544, 551, 554, 562, 573, 580, 581, 583, + 589, 591, 614, 623, 625, 627, 631, 637, 639, 644, + 646, 654, 656, 657, 667, 672, 674, 675, 676, 683, + 688, 692, 695, 703, 708, 710, 711, 712, 719, 729, + 733, 738, 742, 746, 750, 752, 754, 763, 766, 770, + 772, 774, 779, 783, 786, 790, 793, 795, 807, 810, + 812, 814, 818, 822, 824, 827, 840, 843, 847, 849, + 857, 858, 859, 863, 865, 871, 872, 873, 876, 878, + 881, 883, 886, 889, 895, 902, 904, 911, 918, 921, + 928, 931, 935, 938, 942, 947, 950, 954, 957, 959, + 961, 963, 970, 972, 973, 974, 979, 981, 983, 985, + 990, 994, 997, 999, 1004, 1006, 1007, 1010, 1010, 1013, + 1016, 1018, 1020, 1023, 1025, 1028, 1034, 1036, 1040, 1054, + 1062, 1066, 1080, 1088, 1095, 1097, 1102, 1105, 1110, 1112, + 1114, 1121, 1123, 1131, 1137, 1142, 1144, 1146, 1153, 1155, + 1161, 1167, 1169, 1171, 1176, 1178, 1185, 1187, 1190, 1193, + 1197, 1200, 1204, 1207, 1211, 1216, 1218, 1222, 1224, 1226, + 1228, 1232, 1234, 1236, 1239, 1241, 1244, 1248, 1250, 1253, + 1255, 1260, 1263, 1268, 1270, 1272, 1286, 1292, 1305, 1310, + 1315, 1317, 1322, 1324, 1328, 1332, 1336, 1346, 1348, 1353, + 1358, 1361, 1365, 1368, 1372, 1375, 1378, 1381, 1385, 1388, + 1392, 1396, 1398, 1400, 1402, 1404, 1406, 1408, 1410, 1414, + 1422, 1430, 1432, 1434, 1438, 1440, 1443, 1446, 1456, 1458, + 1463, 1465, 1468, 1482, 1485, 1488, 1490, 1492, 1496, 1500, + 1506, 1524, 1529, 1534, 1537, 1551, 1560, 1564, 1568, 1572, + 1578, 1582, 1587, 1590, 1595, 1598, 1599, 1615, 1620, 1623, + 1635, 1637, 1647, 1657, 1658, 1665, 1667, 1679, 1683, 1697, + 1703, 1709, 1710, 1715, 1720, 1724, 1728, 1739, 1746, 1753, + 1760, 1771, 1777, 1780, 1785, 1808, 1838, 1869, 1900, 1915, + 1929, 1933, 1937, 1940, 1945, 1947, 1950, 1952, 1956, 1961, + 1964, 1970, 1975, 1980, 1982, 1991, 1992, 1998, 2000, 2010, + 2012, 2016, 2019, 2025, 2034, 2042, 2050, 2059, 2072, 2077, + 2082, 2084, 2093, 2096, 2101, 2104, 2108 }; #endif @@ -1274,7 +1271,7 @@ static const short yycheck[] = { 38, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57 }; /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ -#line 3 "/usr/lib/bison.simple" +#line 3 "/usr/share/misc/bison.simple" /* This file comes from bison-1.28. */ /* Skeleton output parser for bison, @@ -1488,7 +1485,7 @@ __yy_memcpy (char *to, char *from, unsigned int count) #endif #endif -#line 217 "/usr/lib/bison.simple" +#line 217 "/usr/share/misc/bison.simple" /* The user can define YYPARSE_PARAM as the name of an argument to be passed into yyparse. The argument should have type void *. @@ -1817,14 +1814,14 @@ yyreduce: switch (yyn) { case 1: -#line 237 "c-parse.y" +#line 234 "c-parse.y" { if (pedantic) pedwarn ("ANSI C forbids an empty source file"); finish_file (); ; break;} case 2: -#line 242 "c-parse.y" +#line 239 "c-parse.y" { /* In case there were missing closebraces, get us back to the global binding level. */ @@ -1834,15 +1831,15 @@ case 2: ; break;} case 3: -#line 256 "c-parse.y" +#line 253 "c-parse.y" {yyval.ttype = NULL_TREE; ; break;} case 5: -#line 257 "c-parse.y" +#line 254 "c-parse.y" {yyval.ttype = NULL_TREE; ; break;} case 9: -#line 264 "c-parse.y" +#line 261 "c-parse.y" { STRIP_NOPS (yyvsp[-2].ttype); if ((TREE_CODE (yyvsp[-2].ttype) == ADDR_EXPR && TREE_CODE (TREE_OPERAND (yyvsp[-2].ttype, 0)) == STRING_CST) @@ -1852,11 +1849,11 @@ case 9: error ("argument of `asm' is not a constant string"); ; break;} case 10: -#line 272 "c-parse.y" +#line 269 "c-parse.y" { RESTORE_WARN_FLAGS (yyvsp[-1].ttype); ; break;} case 11: -#line 277 "c-parse.y" +#line 274 "c-parse.y" { if (pedantic) error ("ANSI C forbids data definition with no type or storage class"); else if (!flag_traditional) @@ -1867,162 +1864,162 @@ case 11: declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 12: -#line 286 "c-parse.y" +#line 283 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 13: -#line 290 "c-parse.y" +#line 287 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 14: -#line 294 "c-parse.y" +#line 291 "c-parse.y" { pedwarn ("empty declaration"); ; break;} case 15: -#line 296 "c-parse.y" +#line 293 "c-parse.y" { shadow_tag (yyvsp[-1].ttype); ; break;} case 18: -#line 300 "c-parse.y" +#line 297 "c-parse.y" { if (pedantic) pedwarn ("ANSI C does not allow extra `;' outside of a function"); ; break;} case 19: -#line 306 "c-parse.y" +#line 303 "c-parse.y" { if (! start_function (current_declspecs, yyvsp[0].ttype, prefix_attributes, NULL_TREE)) YYERROR1; reinit_parse_for_function (); ; break;} case 20: -#line 311 "c-parse.y" +#line 308 "c-parse.y" { store_parm_decls (); ; break;} case 21: -#line 313 "c-parse.y" +#line 310 "c-parse.y" { finish_function (0); current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 22: -#line 318 "c-parse.y" +#line 315 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 23: -#line 322 "c-parse.y" +#line 319 "c-parse.y" { if (! start_function (current_declspecs, yyvsp[0].ttype, prefix_attributes, NULL_TREE)) YYERROR1; reinit_parse_for_function (); ; break;} case 24: -#line 327 "c-parse.y" +#line 324 "c-parse.y" { store_parm_decls (); ; break;} case 25: -#line 329 "c-parse.y" +#line 326 "c-parse.y" { finish_function (0); current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 26: -#line 334 "c-parse.y" +#line 331 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 27: -#line 338 "c-parse.y" +#line 335 "c-parse.y" { if (! start_function (NULL_TREE, yyvsp[0].ttype, prefix_attributes, NULL_TREE)) YYERROR1; reinit_parse_for_function (); ; break;} case 28: -#line 343 "c-parse.y" +#line 340 "c-parse.y" { store_parm_decls (); ; break;} case 29: -#line 345 "c-parse.y" +#line 342 "c-parse.y" { finish_function (0); current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 30: -#line 350 "c-parse.y" +#line 347 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 33: -#line 361 "c-parse.y" +#line 358 "c-parse.y" { yyval.code = ADDR_EXPR; ; break;} case 34: -#line 363 "c-parse.y" +#line 360 "c-parse.y" { yyval.code = NEGATE_EXPR; ; break;} case 35: -#line 365 "c-parse.y" +#line 362 "c-parse.y" { yyval.code = CONVERT_EXPR; ; break;} case 36: -#line 367 "c-parse.y" +#line 364 "c-parse.y" { yyval.code = PREINCREMENT_EXPR; ; break;} case 37: -#line 369 "c-parse.y" +#line 366 "c-parse.y" { yyval.code = PREDECREMENT_EXPR; ; break;} case 38: -#line 371 "c-parse.y" +#line 368 "c-parse.y" { yyval.code = BIT_NOT_EXPR; ; break;} case 39: -#line 373 "c-parse.y" +#line 370 "c-parse.y" { yyval.code = TRUTH_NOT_EXPR; ; break;} case 40: -#line 377 "c-parse.y" +#line 374 "c-parse.y" { yyval.ttype = build_compound_expr (yyvsp[0].ttype); ; break;} case 41: -#line 382 "c-parse.y" +#line 379 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 43: -#line 388 "c-parse.y" +#line 385 "c-parse.y" { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ; break;} case 44: -#line 390 "c-parse.y" +#line 387 "c-parse.y" { chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ; break;} case 46: -#line 396 "c-parse.y" +#line 393 "c-parse.y" { yyval.ttype = build_indirect_ref (yyvsp[0].ttype, "unary *"); ; break;} case 47: -#line 399 "c-parse.y" +#line 396 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; RESTORE_WARN_FLAGS (yyvsp[-1].ttype); ; break;} case 48: -#line 402 "c-parse.y" +#line 399 "c-parse.y" { yyval.ttype = build_unary_op (yyvsp[-1].code, yyvsp[0].ttype, 0); overflow_warning (yyval.ttype); ; break;} case 49: -#line 406 "c-parse.y" +#line 403 "c-parse.y" { tree label = lookup_label (yyvsp[0].ttype); if (pedantic) pedwarn ("ANSI C forbids `&&'"); @@ -2037,7 +2034,7 @@ case 49: ; break;} case 50: -#line 434 "c-parse.y" +#line 431 "c-parse.y" { skip_evaluation--; if (TREE_CODE (yyvsp[0].ttype) == COMPONENT_REF && DECL_C_BIT_FIELD (TREE_OPERAND (yyvsp[0].ttype, 1))) @@ -2045,53 +2042,53 @@ case 50: yyval.ttype = c_sizeof (TREE_TYPE (yyvsp[0].ttype)); ; break;} case 51: -#line 440 "c-parse.y" +#line 437 "c-parse.y" { skip_evaluation--; yyval.ttype = c_sizeof (groktypename (yyvsp[-1].ttype)); ; break;} case 52: -#line 443 "c-parse.y" +#line 440 "c-parse.y" { skip_evaluation--; yyval.ttype = c_alignof_expr (yyvsp[0].ttype); ; break;} case 53: -#line 446 "c-parse.y" +#line 443 "c-parse.y" { skip_evaluation--; yyval.ttype = c_alignof (groktypename (yyvsp[-1].ttype)); ; break;} case 54: -#line 449 "c-parse.y" +#line 446 "c-parse.y" { yyval.ttype = build_unary_op (REALPART_EXPR, yyvsp[0].ttype, 0); ; break;} case 55: -#line 451 "c-parse.y" +#line 448 "c-parse.y" { yyval.ttype = build_unary_op (IMAGPART_EXPR, yyvsp[0].ttype, 0); ; break;} case 56: -#line 453 "c-parse.y" +#line 450 "c-parse.y" { yyval.ttype = build_va_arg (yyvsp[-3].ttype, groktypename (yyvsp[-1].ttype)); ; break;} case 57: -#line 457 "c-parse.y" +#line 454 "c-parse.y" { skip_evaluation++; ; break;} case 58: -#line 461 "c-parse.y" +#line 458 "c-parse.y" { skip_evaluation++; ; break;} case 60: -#line 467 "c-parse.y" +#line 464 "c-parse.y" { tree type = groktypename (yyvsp[-2].ttype); yyval.ttype = build_c_cast (type, yyvsp[0].ttype); ; break;} case 61: -#line 470 "c-parse.y" +#line 467 "c-parse.y" { start_init (NULL_TREE, NULL, 0); yyvsp[-2].ttype = groktypename (yyvsp[-2].ttype); really_start_incremental_init (yyvsp[-2].ttype); ; break;} case 62: -#line 474 "c-parse.y" +#line 471 "c-parse.y" { const char *name; tree result = pop_init_level (0); tree type = yyvsp[-5].ttype; @@ -2118,90 +2115,90 @@ case 62: ; break;} case 64: -#line 503 "c-parse.y" +#line 500 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 65: -#line 505 "c-parse.y" +#line 502 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 66: -#line 507 "c-parse.y" +#line 504 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 67: -#line 509 "c-parse.y" +#line 506 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 68: -#line 511 "c-parse.y" +#line 508 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 69: -#line 513 "c-parse.y" +#line 510 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 70: -#line 515 "c-parse.y" +#line 512 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 71: -#line 517 "c-parse.y" +#line 514 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 72: -#line 519 "c-parse.y" +#line 516 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 73: -#line 521 "c-parse.y" +#line 518 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 74: -#line 523 "c-parse.y" +#line 520 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 75: -#line 525 "c-parse.y" +#line 522 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 76: -#line 527 "c-parse.y" +#line 524 "c-parse.y" { yyvsp[-1].ttype = truthvalue_conversion (default_conversion (yyvsp[-1].ttype)); skip_evaluation += yyvsp[-1].ttype == boolean_false_node; ; break;} case 77: -#line 530 "c-parse.y" +#line 527 "c-parse.y" { skip_evaluation -= yyvsp[-3].ttype == boolean_false_node; yyval.ttype = parser_build_binary_op (TRUTH_ANDIF_EXPR, yyvsp[-3].ttype, yyvsp[0].ttype); ; break;} case 78: -#line 533 "c-parse.y" +#line 530 "c-parse.y" { yyvsp[-1].ttype = truthvalue_conversion (default_conversion (yyvsp[-1].ttype)); skip_evaluation += yyvsp[-1].ttype == boolean_true_node; ; break;} case 79: -#line 536 "c-parse.y" +#line 533 "c-parse.y" { skip_evaluation -= yyvsp[-3].ttype == boolean_true_node; yyval.ttype = parser_build_binary_op (TRUTH_ORIF_EXPR, yyvsp[-3].ttype, yyvsp[0].ttype); ; break;} case 80: -#line 539 "c-parse.y" +#line 536 "c-parse.y" { yyvsp[-1].ttype = truthvalue_conversion (default_conversion (yyvsp[-1].ttype)); skip_evaluation += yyvsp[-1].ttype == boolean_false_node; ; break;} case 81: -#line 542 "c-parse.y" +#line 539 "c-parse.y" { skip_evaluation += ((yyvsp[-4].ttype == boolean_true_node) - (yyvsp[-4].ttype == boolean_false_node)); ; break;} case 82: -#line 545 "c-parse.y" +#line 542 "c-parse.y" { skip_evaluation -= yyvsp[-6].ttype == boolean_true_node; yyval.ttype = build_conditional_expr (yyvsp[-6].ttype, yyvsp[-3].ttype, yyvsp[0].ttype); ; break;} case 83: -#line 548 "c-parse.y" +#line 545 "c-parse.y" { if (pedantic) pedwarn ("ANSI C forbids omitting the middle term of a ?: expression"); /* Make sure first operand is calculated only once. */ @@ -2210,12 +2207,12 @@ case 83: skip_evaluation += yyvsp[-1].ttype == boolean_true_node; ; break;} case 84: -#line 555 "c-parse.y" +#line 552 "c-parse.y" { skip_evaluation -= yyvsp[-4].ttype == boolean_true_node; yyval.ttype = build_conditional_expr (yyvsp[-4].ttype, yyvsp[-3].ttype, yyvsp[0].ttype); ; break;} case 85: -#line 558 "c-parse.y" +#line 555 "c-parse.y" { char class; yyval.ttype = build_modify_expr (yyvsp[-2].ttype, NOP_EXPR, yyvsp[0].ttype); class = TREE_CODE_CLASS (TREE_CODE (yyval.ttype)); @@ -2225,7 +2222,7 @@ case 85: ; break;} case 86: -#line 566 "c-parse.y" +#line 563 "c-parse.y" { char class; yyval.ttype = build_modify_expr (yyvsp[-2].ttype, yyvsp[-1].code, yyvsp[0].ttype); /* This inhibits warnings in truthvalue_conversion. */ @@ -2236,110 +2233,19 @@ case 86: ; break;} case 87: -#line 578 "c-parse.y" +#line 575 "c-parse.y" { - yyval.ttype = lastiddecl; - if (!yyval.ttype || yyval.ttype == error_mark_node) - { - if (yychar == YYEMPTY) - yychar = YYLEX; - if (yychar == '(') - { - { - /* Ordinary implicit function declaration. */ - yyval.ttype = implicitly_declare (yyvsp[0].ttype); - assemble_external (yyval.ttype); - TREE_USED (yyval.ttype) = 1; - } - } - else if (current_function_decl == 0) - { - error ("`%s' undeclared here (not in a function)", - IDENTIFIER_POINTER (yyvsp[0].ttype)); - yyval.ttype = error_mark_node; - } - else - { - { - if (IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype) != error_mark_node - || IDENTIFIER_ERROR_LOCUS (yyvsp[0].ttype) != current_function_decl) - { - error ("`%s' undeclared (first use in this function)", - IDENTIFIER_POINTER (yyvsp[0].ttype)); - - if (! undeclared_variable_notice) - { - error ("(Each undeclared identifier is reported only once"); - error ("for each function it appears in.)"); - undeclared_variable_notice = 1; - } - } - yyval.ttype = error_mark_node; - /* Prevent repeated error messages. */ - IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype) = error_mark_node; - IDENTIFIER_ERROR_LOCUS (yyvsp[0].ttype) = current_function_decl; - } - } - } - else if (TREE_TYPE (yyval.ttype) == error_mark_node) - yyval.ttype = error_mark_node; - else if (C_DECL_ANTICIPATED (yyval.ttype)) - { - /* The first time we see a build-in function used, - if it has not been declared. */ - C_DECL_ANTICIPATED (yyval.ttype) = 0; - if (yychar == YYEMPTY) - yychar = YYLEX; - if (yychar == '(') - { - /* Omit the implicit declaration we - would ordinarily do, so we don't lose - the actual built in type. - But print a diagnostic for the mismatch. */ - if (TREE_CODE (yyval.ttype) != FUNCTION_DECL) - error ("`%s' implicitly declared as function", - IDENTIFIER_POINTER (DECL_NAME (yyval.ttype))); - else if ((TYPE_MODE (TREE_TYPE (TREE_TYPE (yyval.ttype))) - != TYPE_MODE (integer_type_node)) - && !VOID_TYPE_P (TREE_TYPE (TREE_TYPE (yyval.ttype)))) - pedwarn ("type mismatch in implicit declaration for built-in function `%s'", - IDENTIFIER_POINTER (DECL_NAME (yyval.ttype))); - /* If it really returns void, change that to int. */ - if (TREE_TYPE (TREE_TYPE (yyval.ttype)) == void_type_node) - TREE_TYPE (yyval.ttype) - = build_function_type (integer_type_node, - TYPE_ARG_TYPES (TREE_TYPE (yyval.ttype))); - } - else - pedwarn ("built-in function `%s' used without declaration", - IDENTIFIER_POINTER (DECL_NAME (yyval.ttype))); - - /* Do what we would ordinarily do when a fn is used. */ - assemble_external (yyval.ttype); - TREE_USED (yyval.ttype) = 1; - } - else - { - assemble_external (yyval.ttype); - TREE_USED (yyval.ttype) = 1; - } - - if (TREE_CODE (yyval.ttype) == CONST_DECL) - { - yyval.ttype = DECL_INITIAL (yyval.ttype); - /* This is to prevent an enum whose value is 0 - from being considered a null pointer constant. */ - yyval.ttype = build1 (NOP_EXPR, TREE_TYPE (yyval.ttype), yyval.ttype); - TREE_CONSTANT (yyval.ttype) = 1; - } + if (yychar == YYEMPTY) + yychar = YYLEX; + yyval.ttype = build_external_ref (yyvsp[0].ttype, yychar == '('); ; break;} case 89: -#line 676 "c-parse.y" +#line 582 "c-parse.y" { yyval.ttype = combine_strings (yyvsp[0].ttype); ; break;} case 90: -#line 678 "c-parse.y" +#line 584 "c-parse.y" { char class = TREE_CODE_CLASS (TREE_CODE (yyvsp[-1].ttype)); if (class == 'e' || class == '1' || class == '2' || class == '<') @@ -2347,11 +2253,11 @@ case 90: yyval.ttype = yyvsp[-1].ttype; ; break;} case 91: -#line 684 "c-parse.y" +#line 590 "c-parse.y" { yyval.ttype = error_mark_node; ; break;} case 92: -#line 686 "c-parse.y" +#line 592 "c-parse.y" { tree rtl_exp; if (pedantic) pedwarn ("ANSI C forbids braced-groups within expressions"); @@ -2376,7 +2282,7 @@ case 92: ; break;} case 93: -#line 709 "c-parse.y" +#line 615 "c-parse.y" { /* Make sure we call expand_end_stmt_expr. Otherwise we are likely to lose sequences and crash later. */ @@ -2387,21 +2293,21 @@ case 93: ; break;} case 94: -#line 718 "c-parse.y" +#line 624 "c-parse.y" { yyval.ttype = build_function_call (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 95: -#line 720 "c-parse.y" +#line 626 "c-parse.y" { yyval.ttype = build_array_ref (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 96: -#line 722 "c-parse.y" +#line 628 "c-parse.y" { yyval.ttype = build_component_ref (yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 97: -#line 726 "c-parse.y" +#line 632 "c-parse.y" { tree expr = build_indirect_ref (yyvsp[-2].ttype, "->"); @@ -2409,57 +2315,57 @@ case 97: ; break;} case 98: -#line 732 "c-parse.y" +#line 638 "c-parse.y" { yyval.ttype = build_unary_op (POSTINCREMENT_EXPR, yyvsp[-1].ttype, 0); ; break;} case 99: -#line 734 "c-parse.y" +#line 640 "c-parse.y" { yyval.ttype = build_unary_op (POSTDECREMENT_EXPR, yyvsp[-1].ttype, 0); ; break;} case 101: -#line 741 "c-parse.y" +#line 647 "c-parse.y" { yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype); if (warn_traditional && !in_system_header) warning ("Use of ANSI string concatenation"); ; break;} case 104: -#line 753 "c-parse.y" +#line 659 "c-parse.y" { c_mark_varargs (); if (pedantic) pedwarn ("ANSI C does not permit use of `varargs.h'"); ; break;} case 105: -#line 763 "c-parse.y" +#line 669 "c-parse.y" { ; break;} case 110: -#line 779 "c-parse.y" +#line 685 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 111: -#line 783 "c-parse.y" +#line 689 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 112: -#line 787 "c-parse.y" +#line 693 "c-parse.y" { shadow_tag_warned (yyvsp[-1].ttype, 1); pedwarn ("empty declaration"); ; break;} case 113: -#line 790 "c-parse.y" +#line 696 "c-parse.y" { pedwarn ("empty declaration"); ; break;} case 114: -#line 799 "c-parse.y" +#line 705 "c-parse.y" { ; break;} case 119: -#line 814 "c-parse.y" +#line 720 "c-parse.y" { pending_xref_error (); declspec_stack = tree_cons (prefix_attributes, current_declspecs, @@ -2468,127 +2374,127 @@ case 119: ¤t_declspecs, &prefix_attributes); ; break;} case 120: -#line 824 "c-parse.y" +#line 730 "c-parse.y" { prefix_attributes = chainon (prefix_attributes, yyvsp[0].ttype); ; break;} case 121: -#line 829 "c-parse.y" +#line 735 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 122: -#line 833 "c-parse.y" +#line 739 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 123: -#line 837 "c-parse.y" +#line 743 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 124: -#line 841 "c-parse.y" +#line 747 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 125: -#line 845 "c-parse.y" +#line 751 "c-parse.y" { shadow_tag (yyvsp[-1].ttype); ; break;} case 126: -#line 847 "c-parse.y" +#line 753 "c-parse.y" { pedwarn ("empty declaration"); ; break;} case 127: -#line 849 "c-parse.y" +#line 755 "c-parse.y" { RESTORE_WARN_FLAGS (yyvsp[-1].ttype); ; break;} case 128: -#line 859 "c-parse.y" +#line 765 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 129: -#line 861 "c-parse.y" +#line 767 "c-parse.y" { yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ; break;} case 130: -#line 865 "c-parse.y" +#line 771 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 131: -#line 867 "c-parse.y" +#line 773 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 132: -#line 869 "c-parse.y" +#line 775 "c-parse.y" { if (extra_warnings) warning ("`%s' is not at beginning of declaration", IDENTIFIER_POINTER (yyvsp[0].ttype)); yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 133: -#line 874 "c-parse.y" +#line 780 "c-parse.y" { yyval.ttype = tree_cons (yyvsp[0].ttype, NULL_TREE, yyvsp[-1].ttype); ; break;} case 134: -#line 879 "c-parse.y" +#line 785 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 135: -#line 881 "c-parse.y" +#line 787 "c-parse.y" { yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ; break;} case 136: -#line 886 "c-parse.y" +#line 792 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 137: -#line 888 "c-parse.y" +#line 794 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 138: -#line 890 "c-parse.y" +#line 796 "c-parse.y" { if (extra_warnings) warning ("`%s' is not at beginning of declaration", IDENTIFIER_POINTER (yyvsp[0].ttype)); yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 139: -#line 903 "c-parse.y" +#line 809 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 140: -#line 905 "c-parse.y" +#line 811 "c-parse.y" { yyval.ttype = tree_cons (yyvsp[0].ttype, NULL_TREE, NULL_TREE); ; break;} case 141: -#line 907 "c-parse.y" +#line 813 "c-parse.y" { yyval.ttype = chainon (yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 142: -#line 909 "c-parse.y" +#line 815 "c-parse.y" { yyval.ttype = tree_cons (yyvsp[0].ttype, NULL_TREE, yyvsp[-1].ttype); ; break;} case 143: -#line 914 "c-parse.y" +#line 820 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); TREE_STATIC (yyval.ttype) = 1; ; break;} case 144: -#line 917 "c-parse.y" +#line 823 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ; break;} case 145: -#line 919 "c-parse.y" +#line 825 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); TREE_STATIC (yyval.ttype) = 1; ; break;} case 146: -#line 922 "c-parse.y" +#line 828 "c-parse.y" { if (extra_warnings && TREE_STATIC (yyvsp[-1].ttype)) warning ("`%s' is not at beginning of declaration", IDENTIFIER_POINTER (yyvsp[0].ttype)); @@ -2596,176 +2502,176 @@ case 146: TREE_STATIC (yyval.ttype) = TREE_STATIC (yyvsp[-1].ttype); ; break;} case 147: -#line 936 "c-parse.y" +#line 842 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 148: -#line 938 "c-parse.y" +#line 844 "c-parse.y" { yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ; break;} case 149: -#line 942 "c-parse.y" +#line 848 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 150: -#line 944 "c-parse.y" +#line 850 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 153: -#line 954 "c-parse.y" +#line 860 "c-parse.y" { /* For a typedef name, record the meaning, not the name. In case of `foo foo, bar;'. */ yyval.ttype = lookup_name (yyvsp[0].ttype); ; break;} case 154: -#line 958 "c-parse.y" +#line 864 "c-parse.y" { yyval.ttype = TREE_TYPE (yyvsp[-1].ttype); ; break;} case 155: -#line 960 "c-parse.y" +#line 866 "c-parse.y" { yyval.ttype = groktypename (yyvsp[-1].ttype); ; break;} case 163: -#line 982 "c-parse.y" +#line 888 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 164: -#line 984 "c-parse.y" +#line 890 "c-parse.y" { if (TREE_CHAIN (yyvsp[-1].ttype)) yyvsp[-1].ttype = combine_strings (yyvsp[-1].ttype); yyval.ttype = yyvsp[-1].ttype; ; break;} case 165: -#line 991 "c-parse.y" +#line 897 "c-parse.y" { yyval.ttype = start_decl (yyvsp[-3].ttype, current_declspecs, 1, yyvsp[-1].ttype, prefix_attributes); start_init (yyval.ttype, yyvsp[-2].ttype, global_bindings_p ()); ; break;} case 166: -#line 996 "c-parse.y" +#line 902 "c-parse.y" { finish_init (); finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ; break;} case 167: -#line 999 "c-parse.y" +#line 905 "c-parse.y" { tree d = start_decl (yyvsp[-2].ttype, current_declspecs, 0, yyvsp[0].ttype, prefix_attributes); finish_decl (d, NULL_TREE, yyvsp[-1].ttype); ; break;} case 168: -#line 1007 "c-parse.y" +#line 913 "c-parse.y" { yyval.ttype = start_decl (yyvsp[-3].ttype, current_declspecs, 1, yyvsp[-1].ttype, prefix_attributes); start_init (yyval.ttype, yyvsp[-2].ttype, global_bindings_p ()); ; break;} case 169: -#line 1012 "c-parse.y" +#line 918 "c-parse.y" { finish_init (); decl_attributes (yyvsp[-1].ttype, yyvsp[-3].ttype, prefix_attributes); finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ; break;} case 170: -#line 1016 "c-parse.y" +#line 922 "c-parse.y" { tree d = start_decl (yyvsp[-2].ttype, current_declspecs, 0, yyvsp[0].ttype, prefix_attributes); finish_decl (d, NULL_TREE, yyvsp[-1].ttype); ; break;} case 171: -#line 1024 "c-parse.y" +#line 930 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 172: -#line 1026 "c-parse.y" +#line 932 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 173: -#line 1031 "c-parse.y" +#line 937 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 174: -#line 1033 "c-parse.y" +#line 939 "c-parse.y" { yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 175: -#line 1038 "c-parse.y" +#line 944 "c-parse.y" { yyval.ttype = yyvsp[-2].ttype; ; break;} case 176: -#line 1043 "c-parse.y" +#line 949 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 177: -#line 1045 "c-parse.y" +#line 951 "c-parse.y" { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 178: -#line 1050 "c-parse.y" +#line 956 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 179: -#line 1052 "c-parse.y" +#line 958 "c-parse.y" { yyval.ttype = build_tree_list (yyvsp[0].ttype, NULL_TREE); ; break;} case 180: -#line 1054 "c-parse.y" +#line 960 "c-parse.y" { yyval.ttype = build_tree_list (yyvsp[-3].ttype, build_tree_list (NULL_TREE, yyvsp[-1].ttype)); ; break;} case 181: -#line 1056 "c-parse.y" +#line 962 "c-parse.y" { yyval.ttype = build_tree_list (yyvsp[-5].ttype, tree_cons (NULL_TREE, yyvsp[-3].ttype, yyvsp[-1].ttype)); ; break;} case 182: -#line 1058 "c-parse.y" +#line 964 "c-parse.y" { yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 188: -#line 1076 "c-parse.y" +#line 982 "c-parse.y" { really_start_incremental_init (NULL_TREE); ; break;} case 189: -#line 1078 "c-parse.y" +#line 984 "c-parse.y" { yyval.ttype = pop_init_level (0); ; break;} case 190: -#line 1080 "c-parse.y" +#line 986 "c-parse.y" { yyval.ttype = error_mark_node; ; break;} case 191: -#line 1086 "c-parse.y" +#line 992 "c-parse.y" { if (pedantic) pedwarn ("ANSI C forbids empty initializer braces"); ; break;} case 197: -#line 1102 "c-parse.y" +#line 1008 "c-parse.y" { set_init_label (yyvsp[-1].ttype); ; break;} case 200: -#line 1109 "c-parse.y" +#line 1015 "c-parse.y" { push_init_level (0); ; break;} case 201: -#line 1111 "c-parse.y" +#line 1017 "c-parse.y" { process_init_element (pop_init_level (0)); ; break;} case 202: -#line 1113 "c-parse.y" +#line 1019 "c-parse.y" { process_init_element (yyvsp[0].ttype); ; break;} case 206: -#line 1124 "c-parse.y" +#line 1030 "c-parse.y" { set_init_label (yyvsp[0].ttype); ; break;} case 207: -#line 1129 "c-parse.y" +#line 1035 "c-parse.y" { set_init_index (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 208: -#line 1131 "c-parse.y" +#line 1037 "c-parse.y" { set_init_index (yyvsp[-1].ttype, NULL_TREE); ; break;} case 209: -#line 1136 "c-parse.y" +#line 1042 "c-parse.y" { if (pedantic) pedwarn ("ANSI C forbids nested functions"); @@ -2779,16 +2685,16 @@ case 209: reinit_parse_for_function (); ; break;} case 210: -#line 1148 "c-parse.y" +#line 1054 "c-parse.y" { store_parm_decls (); ; break;} case 211: -#line 1156 "c-parse.y" +#line 1062 "c-parse.y" { finish_function (1); pop_function_context (); ; break;} case 212: -#line 1162 "c-parse.y" +#line 1068 "c-parse.y" { if (pedantic) pedwarn ("ANSI C forbids nested functions"); @@ -2802,216 +2708,216 @@ case 212: reinit_parse_for_function (); ; break;} case 213: -#line 1174 "c-parse.y" +#line 1080 "c-parse.y" { store_parm_decls (); ; break;} case 214: -#line 1182 "c-parse.y" +#line 1088 "c-parse.y" { finish_function (1); pop_function_context (); ; break;} case 217: -#line 1198 "c-parse.y" +#line 1104 "c-parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 218: -#line 1200 "c-parse.y" +#line 1106 "c-parse.y" { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ; break;} case 219: -#line 1205 "c-parse.y" +#line 1111 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 220: -#line 1207 "c-parse.y" +#line 1113 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ; break;} case 221: -#line 1209 "c-parse.y" +#line 1115 "c-parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 222: -#line 1216 "c-parse.y" +#line 1122 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 224: -#line 1227 "c-parse.y" +#line 1133 "c-parse.y" { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ; break;} case 225: -#line 1232 "c-parse.y" +#line 1138 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, NULL_TREE); if (! flag_isoc99) error ("`[*]' in parameter declaration only allowed in ISO C 99"); ; break;} case 226: -#line 1237 "c-parse.y" +#line 1143 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 227: -#line 1239 "c-parse.y" +#line 1145 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ; break;} case 228: -#line 1241 "c-parse.y" +#line 1147 "c-parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 229: -#line 1248 "c-parse.y" +#line 1154 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 231: -#line 1257 "c-parse.y" +#line 1163 "c-parse.y" { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ; break;} case 232: -#line 1262 "c-parse.y" +#line 1168 "c-parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 233: -#line 1264 "c-parse.y" +#line 1170 "c-parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 234: -#line 1266 "c-parse.y" +#line 1172 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, NULL_TREE); if (! flag_isoc99) error ("`[*]' in parameter declaration only allowed in ISO C 99"); ; break;} case 235: -#line 1271 "c-parse.y" +#line 1177 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 236: -#line 1273 "c-parse.y" +#line 1179 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ; break;} case 237: -#line 1280 "c-parse.y" +#line 1186 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 239: -#line 1286 "c-parse.y" +#line 1192 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 240: -#line 1288 "c-parse.y" +#line 1194 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 241: -#line 1293 "c-parse.y" +#line 1199 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 242: -#line 1295 "c-parse.y" +#line 1201 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 243: -#line 1300 "c-parse.y" +#line 1206 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 244: -#line 1302 "c-parse.y" +#line 1208 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 245: -#line 1307 "c-parse.y" +#line 1213 "c-parse.y" { yyval.ttype = start_struct (RECORD_TYPE, yyvsp[-1].ttype); /* Start scope of tag before parsing components. */ ; break;} case 246: -#line 1311 "c-parse.y" +#line 1217 "c-parse.y" { yyval.ttype = finish_struct (yyvsp[-3].ttype, yyvsp[-2].ttype, chainon (yyvsp[-6].ttype, yyvsp[0].ttype)); ; break;} case 247: -#line 1313 "c-parse.y" +#line 1219 "c-parse.y" { yyval.ttype = finish_struct (start_struct (RECORD_TYPE, NULL_TREE), yyvsp[-2].ttype, chainon (yyvsp[-4].ttype, yyvsp[0].ttype)); ; break;} case 248: -#line 1317 "c-parse.y" +#line 1223 "c-parse.y" { yyval.ttype = xref_tag (RECORD_TYPE, yyvsp[0].ttype); ; break;} case 249: -#line 1319 "c-parse.y" +#line 1225 "c-parse.y" { yyval.ttype = start_struct (UNION_TYPE, yyvsp[-1].ttype); ; break;} case 250: -#line 1321 "c-parse.y" +#line 1227 "c-parse.y" { yyval.ttype = finish_struct (yyvsp[-3].ttype, yyvsp[-2].ttype, chainon (yyvsp[-6].ttype, yyvsp[0].ttype)); ; break;} case 251: -#line 1323 "c-parse.y" +#line 1229 "c-parse.y" { yyval.ttype = finish_struct (start_struct (UNION_TYPE, NULL_TREE), yyvsp[-2].ttype, chainon (yyvsp[-4].ttype, yyvsp[0].ttype)); ; break;} case 252: -#line 1327 "c-parse.y" +#line 1233 "c-parse.y" { yyval.ttype = xref_tag (UNION_TYPE, yyvsp[0].ttype); ; break;} case 253: -#line 1329 "c-parse.y" +#line 1235 "c-parse.y" { yyval.ttype = start_enum (yyvsp[-1].ttype); ; break;} case 254: -#line 1331 "c-parse.y" +#line 1237 "c-parse.y" { yyval.ttype = finish_enum (yyvsp[-4].ttype, nreverse (yyvsp[-3].ttype), chainon (yyvsp[-7].ttype, yyvsp[0].ttype)); ; break;} case 255: -#line 1334 "c-parse.y" +#line 1240 "c-parse.y" { yyval.ttype = start_enum (NULL_TREE); ; break;} case 256: -#line 1336 "c-parse.y" +#line 1242 "c-parse.y" { yyval.ttype = finish_enum (yyvsp[-4].ttype, nreverse (yyvsp[-3].ttype), chainon (yyvsp[-6].ttype, yyvsp[0].ttype)); ; break;} case 257: -#line 1339 "c-parse.y" +#line 1245 "c-parse.y" { yyval.ttype = xref_tag (ENUMERAL_TYPE, yyvsp[0].ttype); ; break;} case 261: -#line 1350 "c-parse.y" +#line 1256 "c-parse.y" { if (pedantic && ! flag_isoc99) pedwarn ("comma at end of enumerator list"); ; break;} case 262: -#line 1356 "c-parse.y" +#line 1262 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 263: -#line 1358 "c-parse.y" +#line 1264 "c-parse.y" { yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype); pedwarn ("no semicolon at end of struct or union"); ; break;} case 264: -#line 1363 "c-parse.y" +#line 1269 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 265: -#line 1365 "c-parse.y" +#line 1271 "c-parse.y" { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[-1].ttype); ; break;} case 266: -#line 1367 "c-parse.y" +#line 1273 "c-parse.y" { if (pedantic) pedwarn ("extra semicolon in struct or union specified"); ; break;} case 267: -#line 1382 "c-parse.y" +#line 1288 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 268: -#line 1387 "c-parse.y" +#line 1293 "c-parse.y" { /* Support for unnamed structs or unions as members of structs or unions (which is [a] useful and [b] supports @@ -3026,151 +2932,151 @@ case 268: ; break;} case 269: -#line 1400 "c-parse.y" +#line 1306 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 270: -#line 1405 "c-parse.y" +#line 1311 "c-parse.y" { if (pedantic) pedwarn ("ANSI C forbids member declarations with no members"); shadow_tag(yyvsp[0].ttype); yyval.ttype = NULL_TREE; ; break;} case 271: -#line 1410 "c-parse.y" +#line 1316 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 272: -#line 1412 "c-parse.y" +#line 1318 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; RESTORE_WARN_FLAGS (yyvsp[-1].ttype); ; break;} case 274: -#line 1419 "c-parse.y" +#line 1325 "c-parse.y" { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 275: -#line 1424 "c-parse.y" +#line 1330 "c-parse.y" { yyval.ttype = grokfield (yyvsp[-3].filename, yyvsp[-2].lineno, yyvsp[-1].ttype, current_declspecs, NULL_TREE); decl_attributes (yyval.ttype, yyvsp[0].ttype, prefix_attributes); ; break;} case 276: -#line 1428 "c-parse.y" +#line 1334 "c-parse.y" { yyval.ttype = grokfield (yyvsp[-5].filename, yyvsp[-4].lineno, yyvsp[-3].ttype, current_declspecs, yyvsp[-1].ttype); decl_attributes (yyval.ttype, yyvsp[0].ttype, prefix_attributes); ; break;} case 277: -#line 1431 "c-parse.y" +#line 1337 "c-parse.y" { yyval.ttype = grokfield (yyvsp[-4].filename, yyvsp[-3].lineno, NULL_TREE, current_declspecs, yyvsp[-1].ttype); decl_attributes (yyval.ttype, yyvsp[0].ttype, prefix_attributes); ; break;} case 279: -#line 1443 "c-parse.y" +#line 1349 "c-parse.y" { if (yyvsp[-2].ttype == error_mark_node) yyval.ttype = yyvsp[-2].ttype; else yyval.ttype = chainon (yyvsp[0].ttype, yyvsp[-2].ttype); ; break;} case 280: -#line 1448 "c-parse.y" +#line 1354 "c-parse.y" { yyval.ttype = error_mark_node; ; break;} case 281: -#line 1454 "c-parse.y" +#line 1360 "c-parse.y" { yyval.ttype = build_enumerator (yyvsp[0].ttype, NULL_TREE); ; break;} case 282: -#line 1456 "c-parse.y" +#line 1362 "c-parse.y" { yyval.ttype = build_enumerator (yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 283: -#line 1461 "c-parse.y" +#line 1367 "c-parse.y" { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 284: -#line 1463 "c-parse.y" +#line 1369 "c-parse.y" { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 285: -#line 1468 "c-parse.y" +#line 1374 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 287: -#line 1474 "c-parse.y" +#line 1380 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ; break;} case 288: -#line 1476 "c-parse.y" +#line 1382 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 289: -#line 1481 "c-parse.y" +#line 1387 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 290: -#line 1483 "c-parse.y" +#line 1389 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 291: -#line 1488 "c-parse.y" +#line 1394 "c-parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 292: -#line 1491 "c-parse.y" +#line 1397 "c-parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 293: -#line 1493 "c-parse.y" +#line 1399 "c-parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[0].ttype, NULL_TREE); ; break;} case 294: -#line 1495 "c-parse.y" +#line 1401 "c-parse.y" { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ; break;} case 295: -#line 1497 "c-parse.y" +#line 1403 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 296: -#line 1499 "c-parse.y" +#line 1405 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ; break;} case 297: -#line 1501 "c-parse.y" +#line 1407 "c-parse.y" { yyval.ttype = build_nt (CALL_EXPR, NULL_TREE, yyvsp[0].ttype, NULL_TREE); ; break;} case 298: -#line 1503 "c-parse.y" +#line 1409 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, yyvsp[-1].ttype); ; break;} case 299: -#line 1505 "c-parse.y" +#line 1411 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, NULL_TREE); ; break;} case 300: -#line 1509 "c-parse.y" +#line 1415 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 301: -#line 1518 "c-parse.y" +#line 1424 "c-parse.y" { if (pedantic && yyvsp[0].ends_in_label) pedwarn ("ANSI C forbids label at end of compound statement"); ; break;} case 303: -#line 1527 "c-parse.y" +#line 1433 "c-parse.y" { yyval.ends_in_label = yyvsp[0].ends_in_label; ; break;} case 304: -#line 1529 "c-parse.y" +#line 1435 "c-parse.y" { yyval.ends_in_label = 0; ; break;} case 308: -#line 1541 "c-parse.y" +#line 1447 "c-parse.y" { emit_line_note (input_filename, lineno); pushlevel (0); clear_last_expr (); @@ -3178,12 +3084,12 @@ case 308: ; break;} case 310: -#line 1553 "c-parse.y" +#line 1459 "c-parse.y" { if (pedantic) pedwarn ("ANSI C forbids label declarations"); ; break;} case 313: -#line 1564 "c-parse.y" +#line 1470 "c-parse.y" { tree link; for (link = yyvsp[-1].ttype; link; link = TREE_CHAIN (link)) { @@ -3194,37 +3100,37 @@ case 313: ; break;} case 314: -#line 1578 "c-parse.y" +#line 1484 "c-parse.y" {; break;} case 316: -#line 1582 "c-parse.y" +#line 1488 "c-parse.y" { compstmt_count++; ; break;} case 317: -#line 1585 "c-parse.y" +#line 1491 "c-parse.y" { yyval.ttype = convert (void_type_node, integer_zero_node); ; break;} case 318: -#line 1587 "c-parse.y" +#line 1493 "c-parse.y" { emit_line_note (input_filename, lineno); expand_end_bindings (getdecls (), 1, 0); yyval.ttype = poplevel (1, 1, 0); ; break;} case 319: -#line 1591 "c-parse.y" +#line 1497 "c-parse.y" { emit_line_note (input_filename, lineno); expand_end_bindings (getdecls (), kept_level_p (), 0); yyval.ttype = poplevel (kept_level_p (), 0, 0); ; break;} case 320: -#line 1595 "c-parse.y" +#line 1501 "c-parse.y" { emit_line_note (input_filename, lineno); expand_end_bindings (getdecls (), kept_level_p (), 0); yyval.ttype = poplevel (kept_level_p (), 0, 0); ; break;} case 321: -#line 1602 "c-parse.y" +#line 1508 "c-parse.y" { if (current_function_decl == 0) { error ("braced-group within expression allowed only inside a function"); @@ -3242,11 +3148,11 @@ case 321: ; break;} case 322: -#line 1619 "c-parse.y" +#line 1525 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 325: -#line 1633 "c-parse.y" +#line 1539 "c-parse.y" { emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno); c_expand_start_cond (truthvalue_conversion (yyvsp[-1].ttype), 0, compstmt_count); @@ -3256,7 +3162,7 @@ case 325: position_after_white_space (); ; break;} case 326: -#line 1647 "c-parse.y" +#line 1553 "c-parse.y" { stmt_count++; compstmt_count++; emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno); @@ -3266,43 +3172,43 @@ case 326: position_after_white_space (); ; break;} case 327: -#line 1655 "c-parse.y" +#line 1561 "c-parse.y" { expand_loop_continue_here (); ; break;} case 328: -#line 1659 "c-parse.y" +#line 1565 "c-parse.y" { yyval.filename = input_filename; ; break;} case 329: -#line 1663 "c-parse.y" +#line 1569 "c-parse.y" { yyval.lineno = lineno; ; break;} case 330: -#line 1668 "c-parse.y" +#line 1574 "c-parse.y" { ; break;} case 331: -#line 1673 "c-parse.y" +#line 1579 "c-parse.y" { ; break;} case 332: -#line 1678 "c-parse.y" +#line 1584 "c-parse.y" { yyval.ends_in_label = yyvsp[0].ends_in_label; ; break;} case 333: -#line 1683 "c-parse.y" +#line 1589 "c-parse.y" { yyval.ends_in_label = 0; ; break;} case 334: -#line 1685 "c-parse.y" +#line 1591 "c-parse.y" { yyval.ends_in_label = 1; ; break;} case 335: -#line 1691 "c-parse.y" +#line 1597 "c-parse.y" { stmt_count++; ; break;} case 337: -#line 1694 "c-parse.y" +#line 1600 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno); /* It appears that this should not be done--that a non-lvalue array @@ -3320,19 +3226,19 @@ case 337: iterator_expand (yyvsp[-1].ttype); ; break;} case 338: -#line 1710 "c-parse.y" +#line 1616 "c-parse.y" { c_expand_start_else (); yyvsp[-1].itype = stmt_count; position_after_white_space (); ; break;} case 339: -#line 1714 "c-parse.y" +#line 1620 "c-parse.y" { c_expand_end_cond (); if (extra_warnings && stmt_count == yyvsp[-3].itype) warning ("empty body in an else-statement"); ; break;} case 340: -#line 1718 "c-parse.y" +#line 1624 "c-parse.y" { c_expand_end_cond (); /* This warning is here instead of in simple_if, because we do not want a warning if an empty if is followed by an @@ -3343,11 +3249,11 @@ case 340: "empty body in an if-statement"); ; break;} case 341: -#line 1730 "c-parse.y" +#line 1636 "c-parse.y" { c_expand_end_cond (); ; break;} case 342: -#line 1732 "c-parse.y" +#line 1638 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno); /* The emit_nop used to come before emit_line_note, @@ -3359,7 +3265,7 @@ case 342: emit_nop (); ; break;} case 343: -#line 1742 "c-parse.y" +#line 1648 "c-parse.y" { /* Don't start the loop till we have succeeded in parsing the end test. This is to make sure that we end every loop we start. */ @@ -3370,22 +3276,22 @@ case 343: position_after_white_space (); ; break;} case 344: -#line 1751 "c-parse.y" +#line 1657 "c-parse.y" { expand_end_loop (); ; break;} case 345: -#line 1754 "c-parse.y" +#line 1660 "c-parse.y" { emit_line_note (input_filename, lineno); expand_exit_loop_if_false (NULL_PTR, truthvalue_conversion (yyvsp[-2].ttype)); expand_end_loop (); ; break;} case 346: -#line 1760 "c-parse.y" +#line 1666 "c-parse.y" { expand_end_loop (); ; break;} case 347: -#line 1763 "c-parse.y" +#line 1669 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno); /* See comment in `while' alternative, above. */ @@ -3398,12 +3304,12 @@ case 347: ; break;} case 348: -#line 1775 "c-parse.y" +#line 1681 "c-parse.y" { yyvsp[0].lineno = lineno; yyval.filename = input_filename; ; break;} case 349: -#line 1778 "c-parse.y" +#line 1684 "c-parse.y" { /* Start the loop. Doing this after parsing all the expressions ensures we will end the loop. */ @@ -3418,7 +3324,7 @@ case 349: position_after_white_space (); ; break;} case 350: -#line 1791 "c-parse.y" +#line 1697 "c-parse.y" { /* Emit the increment expression, with a line number. */ emit_line_note (yyvsp[-4].filename, yyvsp[-5].lineno); expand_loop_continue_here (); @@ -3427,44 +3333,44 @@ case 350: expand_end_loop (); ; break;} case 351: -#line 1798 "c-parse.y" +#line 1704 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno); c_expand_start_case (yyvsp[-1].ttype); position_after_white_space (); ; break;} case 352: -#line 1803 "c-parse.y" +#line 1709 "c-parse.y" { expand_end_case (yyvsp[-3].ttype); ; break;} case 353: -#line 1805 "c-parse.y" +#line 1711 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno); if ( ! expand_exit_something ()) error ("break statement not within loop or switch"); ; break;} case 354: -#line 1810 "c-parse.y" +#line 1716 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno); if (! expand_continue_loop (NULL_PTR)) error ("continue statement not within a loop"); ; break;} case 355: -#line 1815 "c-parse.y" +#line 1721 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno); c_expand_return (NULL_TREE); ; break;} case 356: -#line 1819 "c-parse.y" +#line 1725 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno); c_expand_return (yyvsp[-1].ttype); ; break;} case 357: -#line 1823 "c-parse.y" +#line 1729 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-7].filename, yyvsp[-6].lineno); STRIP_NOPS (yyvsp[-2].ttype); @@ -3476,7 +3382,7 @@ case 357: error ("argument of `asm' is not a constant string"); ; break;} case 358: -#line 1834 "c-parse.y" +#line 1740 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-9].filename, yyvsp[-8].lineno); c_expand_asm_operands (yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE, NULL_TREE, @@ -3484,7 +3390,7 @@ case 358: input_filename, lineno); ; break;} case 359: -#line 1841 "c-parse.y" +#line 1747 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-11].filename, yyvsp[-10].lineno); c_expand_asm_operands (yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE, @@ -3492,7 +3398,7 @@ case 359: input_filename, lineno); ; break;} case 360: -#line 1849 "c-parse.y" +#line 1755 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-13].filename, yyvsp[-12].lineno); c_expand_asm_operands (yyvsp[-8].ttype, yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype, @@ -3500,7 +3406,7 @@ case 360: input_filename, lineno); ; break;} case 361: -#line 1855 "c-parse.y" +#line 1761 "c-parse.y" { tree decl; stmt_count++; emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno); @@ -3513,7 +3419,7 @@ case 361: ; break;} case 362: -#line 1866 "c-parse.y" +#line 1772 "c-parse.y" { if (pedantic) pedwarn ("ANSI C forbids `goto *expr;'"); stmt_count++; @@ -3521,7 +3427,7 @@ case 362: expand_computed_goto (convert (ptr_type_node, yyvsp[-1].ttype)); ; break;} case 365: -#line 1881 "c-parse.y" +#line 1787 "c-parse.y" { /* The value returned by this action is */ /* 1 if everything is OK */ @@ -3544,14 +3450,14 @@ case 365: ; break;} case 366: -#line 1902 "c-parse.y" +#line 1808 "c-parse.y" { if (yyvsp[-1].itype) iterator_for_loop_end (yyvsp[-3].ttype); ; break;} case 367: -#line 1933 "c-parse.y" +#line 1839 "c-parse.y" { register tree value = check_case_value (yyvsp[-1].ttype); register tree label = build_decl (LABEL_DECL, NULL_TREE, NULL_TREE); @@ -3584,7 +3490,7 @@ case 367: position_after_white_space (); ; break;} case 368: -#line 1964 "c-parse.y" +#line 1870 "c-parse.y" { register tree value1 = check_case_value (yyvsp[-3].ttype); register tree value2 = check_case_value (yyvsp[-1].ttype); register tree label @@ -3617,7 +3523,7 @@ case 368: position_after_white_space (); ; break;} case 369: -#line 1995 "c-parse.y" +#line 1901 "c-parse.y" { tree duplicate; register tree label @@ -3634,7 +3540,7 @@ case 369: position_after_white_space (); ; break;} case 370: -#line 2010 "c-parse.y" +#line 1916 "c-parse.y" { tree label = define_label (input_filename, lineno, yyvsp[-2].ttype); stmt_count++; emit_nop (); @@ -3646,52 +3552,52 @@ case 370: position_after_white_space (); ; break;} case 371: -#line 2025 "c-parse.y" +#line 1931 "c-parse.y" { emit_line_note (input_filename, lineno); yyval.ttype = NULL_TREE; ; break;} case 372: -#line 2028 "c-parse.y" +#line 1934 "c-parse.y" { emit_line_note (input_filename, lineno); ; break;} case 373: -#line 2033 "c-parse.y" +#line 1939 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 375: -#line 2040 "c-parse.y" +#line 1946 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 378: -#line 2047 "c-parse.y" +#line 1953 "c-parse.y" { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 379: -#line 2052 "c-parse.y" +#line 1958 "c-parse.y" { yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 380: -#line 2057 "c-parse.y" +#line 1963 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), NULL_TREE); ; break;} case 381: -#line 2059 "c-parse.y" +#line 1965 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), yyvsp[-2].ttype); ; break;} case 382: -#line 2065 "c-parse.y" +#line 1971 "c-parse.y" { pushlevel (0); clear_parm_order (); declare_parm_level (0); ; break;} case 383: -#line 2069 "c-parse.y" +#line 1975 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; parmlist_tags_warning (); poplevel (0, 0, 0); ; break;} case 385: -#line 2077 "c-parse.y" +#line 1983 "c-parse.y" { tree parm; if (pedantic) pedwarn ("ANSI C forbids forward parameter declarations"); @@ -3701,19 +3607,19 @@ case 385: clear_parm_order (); ; break;} case 386: -#line 2085 "c-parse.y" +#line 1991 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 387: -#line 2087 "c-parse.y" +#line 1993 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ; break;} case 388: -#line 2093 "c-parse.y" +#line 1999 "c-parse.y" { yyval.ttype = get_parm_info (0); ; break;} case 389: -#line 2095 "c-parse.y" +#line 2001 "c-parse.y" { yyval.ttype = get_parm_info (0); /* Gcc used to allow this as an extension. However, it does not work for all targets, and thus has been disabled. @@ -3725,23 +3631,23 @@ case 389: ; break;} case 390: -#line 2105 "c-parse.y" +#line 2011 "c-parse.y" { yyval.ttype = get_parm_info (1); ; break;} case 391: -#line 2107 "c-parse.y" +#line 2013 "c-parse.y" { yyval.ttype = get_parm_info (0); ; break;} case 392: -#line 2112 "c-parse.y" +#line 2018 "c-parse.y" { push_parm_decl (yyvsp[0].ttype); ; break;} case 393: -#line 2114 "c-parse.y" +#line 2020 "c-parse.y" { push_parm_decl (yyvsp[0].ttype); ; break;} case 394: -#line 2121 "c-parse.y" +#line 2027 "c-parse.y" { yyval.ttype = build_tree_list (build_tree_list (current_declspecs, yyvsp[-1].ttype), build_tree_list (prefix_attributes, @@ -3751,7 +3657,7 @@ case 394: declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 395: -#line 2129 "c-parse.y" +#line 2035 "c-parse.y" { yyval.ttype = build_tree_list (build_tree_list (current_declspecs, yyvsp[-1].ttype), build_tree_list (prefix_attributes, @@ -3761,7 +3667,7 @@ case 395: declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 396: -#line 2137 "c-parse.y" +#line 2043 "c-parse.y" { yyval.ttype = build_tree_list (build_tree_list (current_declspecs, yyvsp[-1].ttype), build_tree_list (prefix_attributes, @@ -3771,7 +3677,7 @@ case 396: declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 397: -#line 2145 "c-parse.y" +#line 2051 "c-parse.y" { yyval.ttype = build_tree_list (build_tree_list (current_declspecs, yyvsp[-1].ttype), build_tree_list (prefix_attributes, @@ -3781,7 +3687,7 @@ case 397: declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 398: -#line 2154 "c-parse.y" +#line 2060 "c-parse.y" { yyval.ttype = build_tree_list (build_tree_list (current_declspecs, yyvsp[-1].ttype), build_tree_list (prefix_attributes, @@ -3791,19 +3697,19 @@ case 398: declspec_stack = TREE_CHAIN (declspec_stack); ; break;} case 399: -#line 2167 "c-parse.y" +#line 2073 "c-parse.y" { pushlevel (0); clear_parm_order (); declare_parm_level (1); ; break;} case 400: -#line 2171 "c-parse.y" +#line 2077 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; parmlist_tags_warning (); poplevel (0, 0, 0); ; break;} case 402: -#line 2179 "c-parse.y" +#line 2085 "c-parse.y" { tree t; for (t = yyvsp[-1].ttype; t; t = TREE_CHAIN (t)) if (TREE_VALUE (t) == NULL_TREE) @@ -3811,30 +3717,30 @@ case 402: yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, yyvsp[-1].ttype); ; break;} case 403: -#line 2189 "c-parse.y" +#line 2095 "c-parse.y" { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ; break;} case 404: -#line 2191 "c-parse.y" +#line 2097 "c-parse.y" { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ; break;} case 405: -#line 2197 "c-parse.y" +#line 2103 "c-parse.y" { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ; break;} case 406: -#line 2199 "c-parse.y" +#line 2105 "c-parse.y" { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ; break;} case 407: -#line 2204 "c-parse.y" +#line 2110 "c-parse.y" { yyval.ttype = SAVE_WARN_FLAGS(); pedantic = 0; warn_pointer_arith = 0; ; break;} } /* the action file gets copied in in place of this dollarsign */ -#line 543 "/usr/lib/bison.simple" +#line 543 "/usr/share/misc/bison.simple" yyvsp -= yylen; yyssp -= yylen; @@ -4054,5 +3960,5 @@ yyerrhandle: } return 1; } -#line 2209 "c-parse.y" +#line 2115 "c-parse.y" |