diff options
author | Jim Kingdon <kingdon@redhat.com> | 1999-09-22 06:58:30 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-09-22 06:58:30 -0600 |
commit | c3b6e11400d742ce467690ef436183ae1e856ef1 (patch) | |
tree | 23aa2fcbddad93809cf2b6045bcbaed02320a20b /gcc/c-parse.c | |
parent | 30439f2985a1fa99e0621ce7a426074938c187c8 (diff) | |
download | gcc-c3b6e11400d742ce467690ef436183ae1e856ef1.zip gcc-c3b6e11400d742ce467690ef436183ae1e856ef1.tar.gz gcc-c3b6e11400d742ce467690ef436183ae1e856ef1.tar.bz2 |
c-parse.in: save and restore warn_pointer_arith on __extension__ along with pedantic.
* c-parse.in: save and restore warn_pointer_arith on __extension__
along with pedantic.
(SAVE_WARN_FLAGS, RESTORE_WARN_FLAGS): Added.
Set the type of extension to itype rather than $<itype>1 kludge.
* extend.texi (Alternate Keywords): Adjust documentation.
* c-parse.c, c-parse.y, objc-parse.c, objc-parse.y: Rebuilt.
From-SVN: r29588
Diffstat (limited to 'gcc/c-parse.c')
-rw-r--r-- | gcc/c-parse.c | 774 |
1 files changed, 392 insertions, 382 deletions
diff --git a/gcc/c-parse.c b/gcc/c-parse.c index b8ebe33..ac70226 100644 --- a/gcc/c-parse.c +++ b/gcc/c-parse.c @@ -99,7 +99,7 @@ const char * const language_string = "GNU C"; #line 64 "c-parse.y" typedef union {long itype; tree ttype; enum tree_code code; char *filename; int lineno; int ends_in_label; } YYSTYPE; -#line 184 "c-parse.y" +#line 186 "c-parse.y" /* Number of statements (loosely speaking) and compound statements seen so far. */ @@ -121,6 +121,15 @@ 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() (pedantic | (warn_pointer_arith << 1)) +#define RESTORE_WARN_FLAGS(val) \ + do { \ + pedantic = val & 1; \ + warn_pointer_arith = (val >> 1) & 1; \ + } while (0) + /* Tell yyparse how to print a token's value, if yydebug is set. */ @@ -370,47 +379,47 @@ static const short yyrhs[] = { -1, #if YYDEBUG != 0 static const short yyrline[] = { 0, - 223, 228, 242, 244, 244, 245, 247, 249, 250, 258, - 262, 273, 278, 283, 285, 287, 288, 289, 294, 301, - 303, 308, 313, 319, 321, 326, 331, 337, 339, 344, - 351, 353, 356, 358, 360, 362, 364, 366, 368, 372, - 376, 379, 382, 385, 389, 391, 394, 397, 401, 429, - 435, 438, 441, 444, 446, 448, 452, 456, 460, 462, - 465, 469, 496, 498, 500, 502, 504, 506, 508, 510, - 512, 514, 516, 518, 520, 522, 526, 528, 532, 534, - 537, 541, 543, 550, 553, 561, 572, 671, 672, 674, - 680, 682, 705, 714, 716, 718, 722, 728, 730, 735, - 737, 742, 744, 745, 755, 760, 762, 763, 764, 771, - 777, 782, 785, 793, 798, 800, 801, 802, 809, 820, - 824, 830, 835, 840, 845, 847, 849, 858, 861, 865, - 867, 869, 874, 878, 881, 885, 888, 890, 902, 905, - 907, 909, 913, 917, 919, 922, 935, 938, 942, 944, - 952, 953, 954, 958, 960, 966, 967, 968, 971, 973, - 976, 978, 981, 984, 990, 997, 999, 1006, 1013, 1016, - 1023, 1026, 1030, 1033, 1037, 1042, 1045, 1049, 1052, 1054, - 1056, 1058, 1065, 1067, 1068, 1069, 1074, 1076, 1081, 1089, - 1094, 1098, 1101, 1103, 1108, 1110, 1111, 1114, 1114, 1117, - 1120, 1122, 1124, 1127, 1129, 1132, 1138, 1140, 1144, 1158, - 1166, 1170, 1184, 1192, 1199, 1201, 1206, 1209, 1214, 1216, - 1218, 1225, 1227, 1235, 1241, 1246, 1248, 1250, 1257, 1259, - 1265, 1271, 1273, 1275, 1280, 1282, 1289, 1291, 1294, 1297, - 1301, 1304, 1308, 1311, 1315, 1320, 1322, 1326, 1328, 1330, - 1332, 1336, 1338, 1341, 1344, 1347, 1350, 1354, 1356, 1359, - 1361, 1366, 1369, 1374, 1376, 1378, 1392, 1399, 1404, 1410, - 1415, 1417, 1422, 1424, 1428, 1432, 1436, 1446, 1448, 1453, - 1458, 1461, 1465, 1468, 1472, 1475, 1478, 1481, 1485, 1488, - 1492, 1496, 1498, 1500, 1502, 1504, 1506, 1508, 1510, 1514, - 1522, 1530, 1532, 1534, 1538, 1540, 1543, 1546, 1557, 1559, - 1564, 1566, 1569, 1583, 1586, 1589, 1591, 1593, 1601, 1609, - 1619, 1637, 1642, 1647, 1650, 1664, 1673, 1677, 1681, 1685, - 1691, 1695, 1700, 1703, 1708, 1711, 1712, 1729, 1734, 1737, - 1749, 1751, 1761, 1771, 1772, 1780, 1783, 1795, 1799, 1816, - 1826, 1835, 1840, 1845, 1850, 1854, 1858, 1869, 1876, 1883, - 1890, 1901, 1907, 1910, 1915, 1938, 1972, 2003, 2034, 2049, - 2063, 2067, 2071, 2074, 2079, 2081, 2084, 2086, 2090, 2095, - 2098, 2104, 2109, 2114, 2116, 2125, 2126, 2132, 2134, 2144, - 2146, 2150, 2153, 2159, 2169, 2178, 2187, 2197, 2211, 2216, - 2221, 2223, 2232, 2235, 2240, 2243, 2247 + 234, 239, 253, 255, 255, 256, 258, 260, 261, 269, + 273, 284, 289, 294, 296, 298, 299, 300, 305, 312, + 314, 319, 324, 330, 332, 337, 342, 348, 350, 355, + 362, 364, 367, 369, 371, 373, 375, 377, 379, 383, + 387, 390, 393, 396, 400, 402, 405, 408, 412, 440, + 446, 449, 452, 455, 457, 459, 463, 467, 471, 473, + 476, 480, 507, 509, 511, 513, 515, 517, 519, 521, + 523, 525, 527, 529, 531, 533, 537, 539, 543, 545, + 548, 552, 554, 561, 564, 572, 583, 682, 683, 685, + 691, 693, 716, 725, 727, 729, 733, 739, 741, 746, + 748, 753, 755, 756, 766, 771, 773, 774, 775, 782, + 788, 793, 796, 804, 809, 811, 812, 813, 820, 831, + 835, 841, 846, 851, 856, 858, 860, 869, 872, 876, + 878, 880, 885, 889, 892, 896, 899, 901, 913, 916, + 918, 920, 924, 928, 930, 933, 946, 949, 953, 955, + 963, 964, 965, 969, 971, 977, 978, 979, 982, 984, + 987, 989, 992, 995, 1001, 1008, 1010, 1017, 1024, 1027, + 1034, 1037, 1041, 1044, 1048, 1053, 1056, 1060, 1063, 1065, + 1067, 1069, 1076, 1078, 1079, 1080, 1085, 1087, 1092, 1100, + 1105, 1109, 1112, 1114, 1119, 1121, 1122, 1125, 1125, 1128, + 1131, 1133, 1135, 1138, 1140, 1143, 1149, 1151, 1155, 1169, + 1177, 1181, 1195, 1203, 1210, 1212, 1217, 1220, 1225, 1227, + 1229, 1236, 1238, 1246, 1252, 1257, 1259, 1261, 1268, 1270, + 1276, 1282, 1284, 1286, 1291, 1293, 1300, 1302, 1305, 1308, + 1312, 1315, 1319, 1322, 1326, 1331, 1333, 1337, 1339, 1341, + 1343, 1347, 1349, 1352, 1355, 1358, 1361, 1365, 1367, 1370, + 1372, 1377, 1380, 1385, 1387, 1389, 1403, 1410, 1415, 1421, + 1426, 1428, 1433, 1435, 1439, 1443, 1447, 1457, 1459, 1464, + 1469, 1472, 1476, 1479, 1483, 1486, 1489, 1492, 1496, 1499, + 1503, 1507, 1509, 1511, 1513, 1515, 1517, 1519, 1521, 1525, + 1533, 1541, 1543, 1545, 1549, 1551, 1554, 1557, 1568, 1570, + 1575, 1577, 1580, 1594, 1597, 1600, 1602, 1604, 1612, 1620, + 1630, 1648, 1653, 1658, 1661, 1675, 1684, 1688, 1692, 1696, + 1702, 1706, 1711, 1714, 1719, 1722, 1723, 1740, 1745, 1748, + 1760, 1762, 1772, 1782, 1783, 1791, 1794, 1806, 1810, 1827, + 1837, 1846, 1851, 1856, 1861, 1865, 1869, 1880, 1887, 1894, + 1901, 1912, 1918, 1921, 1926, 1949, 1983, 2014, 2045, 2060, + 2074, 2078, 2082, 2085, 2090, 2092, 2095, 2097, 2101, 2106, + 2109, 2115, 2120, 2125, 2127, 2136, 2137, 2143, 2145, 2155, + 2157, 2161, 2164, 2170, 2180, 2189, 2198, 2208, 2222, 2227, + 2232, 2234, 2243, 2246, 2251, 2254, 2258 }; #endif @@ -1255,7 +1264,7 @@ static const short yycheck[] = { 38, 53, 54 }; /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ -#line 3 "bison.simple" +#line 3 "/usr/cygnus/TBD-TBD/share/bison.simple" /* Skeleton output parser for bison, Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc. @@ -1448,7 +1457,7 @@ __yy_memcpy (char *to, char *from, int count) #endif #endif -#line 196 "bison.simple" +#line 196 "/usr/cygnus/TBD-TBD/share/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 *. @@ -1753,14 +1762,14 @@ yyreduce: switch (yyn) { case 1: -#line 224 "c-parse.y" +#line 235 "c-parse.y" { if (pedantic) pedwarn ("ANSI C forbids an empty source file"); finish_file (); ; break;} case 2: -#line 229 "c-parse.y" +#line 240 "c-parse.y" { /* In case there were missing closebraces, get us back to the global binding level. */ @@ -1770,15 +1779,15 @@ case 2: ; break;} case 3: -#line 243 "c-parse.y" +#line 254 "c-parse.y" {yyval.ttype = NULL_TREE; ; break;} case 5: -#line 244 "c-parse.y" +#line 255 "c-parse.y" {yyval.ttype = NULL_TREE; ; break;} case 9: -#line 251 "c-parse.y" +#line 262 "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) @@ -1788,11 +1797,11 @@ case 9: error ("argument of `asm' is not a constant string"); ; break;} case 10: -#line 259 "c-parse.y" -{ pedantic = yyvsp[-1].itype; ; +#line 270 "c-parse.y" +{ RESTORE_WARN_FLAGS (yyvsp[-1].itype); ; break;} case 11: -#line 264 "c-parse.y" +#line 275 "c-parse.y" { if (pedantic) error ("ANSI C forbids data definition with no type or storage class"); else if (!flag_traditional) @@ -1804,45 +1813,45 @@ case 11: resume_momentary (yyvsp[-2].itype); ; break;} case 12: -#line 274 "c-parse.y" +#line 285 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); resume_momentary (yyvsp[-2].itype); ; break;} case 13: -#line 279 "c-parse.y" +#line 290 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); resume_momentary (yyvsp[-2].itype); ; break;} case 14: -#line 284 "c-parse.y" +#line 295 "c-parse.y" { pedwarn ("empty declaration"); ; break;} case 15: -#line 286 "c-parse.y" +#line 297 "c-parse.y" { shadow_tag (yyvsp[-1].ttype); ; break;} case 18: -#line 290 "c-parse.y" +#line 301 "c-parse.y" { if (pedantic) pedwarn ("ANSI C does not allow extra `;' outside of a function"); ; break;} case 19: -#line 296 "c-parse.y" +#line 307 "c-parse.y" { if (! start_function (current_declspecs, yyvsp[0].ttype, prefix_attributes, NULL_TREE, 0)) YYERROR1; reinit_parse_for_function (); ; break;} case 20: -#line 301 "c-parse.y" +#line 312 "c-parse.y" { store_parm_decls (); ; break;} case 21: -#line 303 "c-parse.y" +#line 314 "c-parse.y" { finish_function (0); current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); @@ -1850,25 +1859,25 @@ case 21: resume_momentary (yyvsp[-5].itype); ; break;} case 22: -#line 309 "c-parse.y" +#line 320 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); resume_momentary (yyvsp[-2].itype); ; break;} case 23: -#line 314 "c-parse.y" +#line 325 "c-parse.y" { if (! start_function (current_declspecs, yyvsp[0].ttype, prefix_attributes, NULL_TREE, 0)) YYERROR1; reinit_parse_for_function (); ; break;} case 24: -#line 319 "c-parse.y" +#line 330 "c-parse.y" { store_parm_decls (); ; break;} case 25: -#line 321 "c-parse.y" +#line 332 "c-parse.y" { finish_function (0); current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); @@ -1876,25 +1885,25 @@ case 25: resume_momentary (yyvsp[-5].itype); ; break;} case 26: -#line 327 "c-parse.y" +#line 338 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); resume_momentary (yyvsp[-2].itype); ; break;} case 27: -#line 332 "c-parse.y" +#line 343 "c-parse.y" { if (! start_function (NULL_TREE, yyvsp[0].ttype, prefix_attributes, NULL_TREE, 0)) YYERROR1; reinit_parse_for_function (); ; break;} case 28: -#line 337 "c-parse.y" +#line 348 "c-parse.y" { store_parm_decls (); ; break;} case 29: -#line 339 "c-parse.y" +#line 350 "c-parse.y" { finish_function (0); current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); @@ -1902,72 +1911,72 @@ case 29: resume_momentary (yyvsp[-5].itype); ; break;} case 30: -#line 345 "c-parse.y" +#line 356 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); resume_momentary (yyvsp[-2].itype); ; break;} case 33: -#line 357 "c-parse.y" +#line 368 "c-parse.y" { yyval.code = ADDR_EXPR; ; break;} case 34: -#line 359 "c-parse.y" +#line 370 "c-parse.y" { yyval.code = NEGATE_EXPR; ; break;} case 35: -#line 361 "c-parse.y" +#line 372 "c-parse.y" { yyval.code = CONVERT_EXPR; ; break;} case 36: -#line 363 "c-parse.y" +#line 374 "c-parse.y" { yyval.code = PREINCREMENT_EXPR; ; break;} case 37: -#line 365 "c-parse.y" +#line 376 "c-parse.y" { yyval.code = PREDECREMENT_EXPR; ; break;} case 38: -#line 367 "c-parse.y" +#line 378 "c-parse.y" { yyval.code = BIT_NOT_EXPR; ; break;} case 39: -#line 369 "c-parse.y" +#line 380 "c-parse.y" { yyval.code = TRUTH_NOT_EXPR; ; break;} case 40: -#line 373 "c-parse.y" +#line 384 "c-parse.y" { yyval.ttype = build_compound_expr (yyvsp[0].ttype); ; break;} case 41: -#line 378 "c-parse.y" +#line 389 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 43: -#line 384 "c-parse.y" +#line 395 "c-parse.y" { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ; break;} case 44: -#line 386 "c-parse.y" +#line 397 "c-parse.y" { chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ; break;} case 46: -#line 392 "c-parse.y" +#line 403 "c-parse.y" { yyval.ttype = build_indirect_ref (yyvsp[0].ttype, "unary *"); ; break;} case 47: -#line 395 "c-parse.y" +#line 406 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; - pedantic = yyvsp[-1].itype; ; + RESTORE_WARN_FLAGS (yyvsp[-1].itype); ; break;} case 48: -#line 398 "c-parse.y" +#line 409 "c-parse.y" { yyval.ttype = build_unary_op (yyvsp[-1].code, yyvsp[0].ttype, 0); overflow_warning (yyval.ttype); ; break;} case 49: -#line 402 "c-parse.y" +#line 413 "c-parse.y" { tree label = lookup_label (yyvsp[0].ttype); if (pedantic) pedwarn ("ANSI C forbids `&&'"); @@ -1982,7 +1991,7 @@ case 49: ; break;} case 50: -#line 430 "c-parse.y" +#line 441 "c-parse.y" { skip_evaluation--; if (TREE_CODE (yyvsp[0].ttype) == COMPONENT_REF && DECL_C_BIT_FIELD (TREE_OPERAND (yyvsp[0].ttype, 1))) @@ -1990,53 +1999,53 @@ case 50: yyval.ttype = c_sizeof (TREE_TYPE (yyvsp[0].ttype)); ; break;} case 51: -#line 436 "c-parse.y" +#line 447 "c-parse.y" { skip_evaluation--; yyval.ttype = c_sizeof (groktypename (yyvsp[-1].ttype)); ; break;} case 52: -#line 439 "c-parse.y" +#line 450 "c-parse.y" { skip_evaluation--; yyval.ttype = c_alignof_expr (yyvsp[0].ttype); ; break;} case 53: -#line 442 "c-parse.y" +#line 453 "c-parse.y" { skip_evaluation--; yyval.ttype = c_alignof (groktypename (yyvsp[-1].ttype)); ; break;} case 54: -#line 445 "c-parse.y" +#line 456 "c-parse.y" { yyval.ttype = build_unary_op (REALPART_EXPR, yyvsp[0].ttype, 0); ; break;} case 55: -#line 447 "c-parse.y" +#line 458 "c-parse.y" { yyval.ttype = build_unary_op (IMAGPART_EXPR, yyvsp[0].ttype, 0); ; break;} case 56: -#line 449 "c-parse.y" +#line 460 "c-parse.y" { yyval.ttype = build_va_arg (yyvsp[-3].ttype, groktypename (yyvsp[-1].ttype)); ; break;} case 57: -#line 453 "c-parse.y" +#line 464 "c-parse.y" { skip_evaluation++; ; break;} case 58: -#line 457 "c-parse.y" +#line 468 "c-parse.y" { skip_evaluation++; ; break;} case 60: -#line 463 "c-parse.y" +#line 474 "c-parse.y" { tree type = groktypename (yyvsp[-2].ttype); yyval.ttype = build_c_cast (type, yyvsp[0].ttype); ; break;} case 61: -#line 466 "c-parse.y" +#line 477 "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 470 "c-parse.y" +#line 481 "c-parse.y" { char *name; tree result = pop_init_level (0); tree type = yyvsp[-5].ttype; @@ -2063,90 +2072,90 @@ case 62: ; break;} case 64: -#line 499 "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 65: -#line 501 "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 66: -#line 503 "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 67: -#line 505 "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 68: -#line 507 "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 69: -#line 509 "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 70: -#line 511 "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 71: -#line 513 "c-parse.y" +#line 524 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 72: -#line 515 "c-parse.y" +#line 526 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 73: -#line 517 "c-parse.y" +#line 528 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 74: -#line 519 "c-parse.y" +#line 530 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 75: -#line 521 "c-parse.y" +#line 532 "c-parse.y" { yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 76: -#line 523 "c-parse.y" +#line 534 "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 526 "c-parse.y" +#line 537 "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 529 "c-parse.y" +#line 540 "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 532 "c-parse.y" +#line 543 "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 535 "c-parse.y" +#line 546 "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 538 "c-parse.y" +#line 549 "c-parse.y" { skip_evaluation += ((yyvsp[-4].ttype == boolean_true_node) - (yyvsp[-4].ttype == boolean_false_node)); ; break;} case 82: -#line 541 "c-parse.y" +#line 552 "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 544 "c-parse.y" +#line 555 "c-parse.y" { if (pedantic) pedwarn ("ANSI C forbids omitting the middle term of a ?: expression"); /* Make sure first operand is calculated only once. */ @@ -2155,12 +2164,12 @@ case 83: skip_evaluation += yyvsp[-1].ttype == boolean_true_node; ; break;} case 84: -#line 551 "c-parse.y" +#line 562 "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 554 "c-parse.y" +#line 565 "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)); @@ -2170,7 +2179,7 @@ case 85: ; break;} case 86: -#line 562 "c-parse.y" +#line 573 "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. */ @@ -2181,7 +2190,7 @@ case 86: ; break;} case 87: -#line 574 "c-parse.y" +#line 585 "c-parse.y" { yyval.ttype = lastiddecl; if (!yyval.ttype || yyval.ttype == error_mark_node) @@ -2281,11 +2290,11 @@ case 87: ; break;} case 89: -#line 673 "c-parse.y" +#line 684 "c-parse.y" { yyval.ttype = combine_strings (yyvsp[0].ttype); ; break;} case 90: -#line 675 "c-parse.y" +#line 686 "c-parse.y" { char class = TREE_CODE_CLASS (TREE_CODE (yyvsp[-1].ttype)); if (class == 'e' || class == '1' || class == '2' || class == '<') @@ -2293,11 +2302,11 @@ case 90: yyval.ttype = yyvsp[-1].ttype; ; break;} case 91: -#line 681 "c-parse.y" +#line 692 "c-parse.y" { yyval.ttype = error_mark_node; ; break;} case 92: -#line 683 "c-parse.y" +#line 694 "c-parse.y" { tree rtl_exp; if (pedantic) pedwarn ("ANSI C forbids braced-groups within expressions"); @@ -2322,7 +2331,7 @@ case 92: ; break;} case 93: -#line 706 "c-parse.y" +#line 717 "c-parse.y" { /* Make sure we call expand_end_stmt_expr. Otherwise we are likely to lose sequences and crash later. */ @@ -2333,21 +2342,21 @@ case 93: ; break;} case 94: -#line 715 "c-parse.y" +#line 726 "c-parse.y" { yyval.ttype = build_function_call (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 95: -#line 717 "c-parse.y" +#line 728 "c-parse.y" { yyval.ttype = build_array_ref (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 96: -#line 719 "c-parse.y" +#line 730 "c-parse.y" { yyval.ttype = build_component_ref (yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 97: -#line 723 "c-parse.y" +#line 734 "c-parse.y" { tree expr = build_indirect_ref (yyvsp[-2].ttype, "->"); @@ -2355,56 +2364,56 @@ case 97: ; break;} case 98: -#line 729 "c-parse.y" +#line 740 "c-parse.y" { yyval.ttype = build_unary_op (POSTINCREMENT_EXPR, yyvsp[-1].ttype, 0); ; break;} case 99: -#line 731 "c-parse.y" +#line 742 "c-parse.y" { yyval.ttype = build_unary_op (POSTDECREMENT_EXPR, yyvsp[-1].ttype, 0); ; break;} case 101: -#line 738 "c-parse.y" +#line 749 "c-parse.y" { yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 104: -#line 747 "c-parse.y" +#line 758 "c-parse.y" { c_mark_varargs (); if (pedantic) pedwarn ("ANSI C does not permit use of `varargs.h'"); ; break;} case 105: -#line 757 "c-parse.y" +#line 768 "c-parse.y" { ; break;} case 110: -#line 773 "c-parse.y" +#line 784 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); resume_momentary (yyvsp[-2].itype); ; break;} case 111: -#line 778 "c-parse.y" +#line 789 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); resume_momentary (yyvsp[-2].itype); ; break;} case 112: -#line 783 "c-parse.y" +#line 794 "c-parse.y" { shadow_tag_warned (yyvsp[-1].ttype, 1); pedwarn ("empty declaration"); ; break;} case 113: -#line 786 "c-parse.y" +#line 797 "c-parse.y" { pedwarn ("empty declaration"); ; break;} case 114: -#line 795 "c-parse.y" +#line 806 "c-parse.y" { ; break;} case 119: -#line 810 "c-parse.y" +#line 821 "c-parse.y" { yyval.itype = suspend_momentary (); pending_xref_error (); declspec_stack = tree_cons (prefix_attributes, @@ -2414,131 +2423,131 @@ case 119: ¤t_declspecs, &prefix_attributes); ; break;} case 120: -#line 821 "c-parse.y" +#line 832 "c-parse.y" { prefix_attributes = chainon (prefix_attributes, yyvsp[0].ttype); ; break;} case 121: -#line 826 "c-parse.y" +#line 837 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); resume_momentary (yyvsp[-2].itype); ; break;} case 122: -#line 831 "c-parse.y" +#line 842 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); resume_momentary (yyvsp[-2].itype); ; break;} case 123: -#line 836 "c-parse.y" +#line 847 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); resume_momentary (yyvsp[-1].itype); ; break;} case 124: -#line 841 "c-parse.y" +#line 852 "c-parse.y" { current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); declspec_stack = TREE_CHAIN (declspec_stack); resume_momentary (yyvsp[-1].itype); ; break;} case 125: -#line 846 "c-parse.y" +#line 857 "c-parse.y" { shadow_tag (yyvsp[-1].ttype); ; break;} case 126: -#line 848 "c-parse.y" +#line 859 "c-parse.y" { pedwarn ("empty declaration"); ; break;} case 127: -#line 850 "c-parse.y" -{ pedantic = yyvsp[-1].itype; ; +#line 861 "c-parse.y" +{ RESTORE_WARN_FLAGS (yyvsp[-1].itype); ; break;} case 128: -#line 860 "c-parse.y" +#line 871 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 129: -#line 862 "c-parse.y" +#line 873 "c-parse.y" { yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ; break;} case 130: -#line 866 "c-parse.y" +#line 877 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 131: -#line 868 "c-parse.y" +#line 879 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 132: -#line 870 "c-parse.y" +#line 881 "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 875 "c-parse.y" +#line 886 "c-parse.y" { yyval.ttype = tree_cons (yyvsp[0].ttype, NULL_TREE, yyvsp[-1].ttype); ; break;} case 134: -#line 880 "c-parse.y" +#line 891 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 135: -#line 882 "c-parse.y" +#line 893 "c-parse.y" { yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ; break;} case 136: -#line 887 "c-parse.y" +#line 898 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 137: -#line 889 "c-parse.y" +#line 900 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 138: -#line 891 "c-parse.y" +#line 902 "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 904 "c-parse.y" +#line 915 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 140: -#line 906 "c-parse.y" +#line 917 "c-parse.y" { yyval.ttype = tree_cons (yyvsp[0].ttype, NULL_TREE, NULL_TREE); ; break;} case 141: -#line 908 "c-parse.y" +#line 919 "c-parse.y" { yyval.ttype = chainon (yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 142: -#line 910 "c-parse.y" +#line 921 "c-parse.y" { yyval.ttype = tree_cons (yyvsp[0].ttype, NULL_TREE, yyvsp[-1].ttype); ; break;} case 143: -#line 915 "c-parse.y" +#line 926 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); TREE_STATIC (yyval.ttype) = 1; ; break;} case 144: -#line 918 "c-parse.y" +#line 929 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ; break;} case 145: -#line 920 "c-parse.y" +#line 931 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); TREE_STATIC (yyval.ttype) = 1; ; break;} case 146: -#line 923 "c-parse.y" +#line 934 "c-parse.y" { if (extra_warnings && TREE_STATIC (yyvsp[-1].ttype)) warning ("`%s' is not at beginning of declaration", IDENTIFIER_POINTER (yyvsp[0].ttype)); @@ -2546,138 +2555,138 @@ case 146: TREE_STATIC (yyval.ttype) = TREE_STATIC (yyvsp[-1].ttype); ; break;} case 147: -#line 937 "c-parse.y" +#line 948 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 148: -#line 939 "c-parse.y" +#line 950 "c-parse.y" { yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ; break;} case 149: -#line 943 "c-parse.y" +#line 954 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 150: -#line 945 "c-parse.y" +#line 956 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 153: -#line 955 "c-parse.y" +#line 966 "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 959 "c-parse.y" +#line 970 "c-parse.y" { yyval.ttype = TREE_TYPE (yyvsp[-1].ttype); ; break;} case 155: -#line 961 "c-parse.y" +#line 972 "c-parse.y" { yyval.ttype = groktypename (yyvsp[-1].ttype); ; break;} case 163: -#line 983 "c-parse.y" +#line 994 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 164: -#line 985 "c-parse.y" +#line 996 "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 992 "c-parse.y" +#line 1003 "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 997 "c-parse.y" +#line 1008 "c-parse.y" { finish_init (); finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ; break;} case 167: -#line 1000 "c-parse.y" +#line 1011 "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 1008 "c-parse.y" +#line 1019 "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 1013 "c-parse.y" +#line 1024 "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 1017 "c-parse.y" +#line 1028 "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 1025 "c-parse.y" +#line 1036 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 172: -#line 1027 "c-parse.y" +#line 1038 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 173: -#line 1032 "c-parse.y" +#line 1043 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 174: -#line 1034 "c-parse.y" +#line 1045 "c-parse.y" { yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 175: -#line 1039 "c-parse.y" +#line 1050 "c-parse.y" { yyval.ttype = yyvsp[-2].ttype; ; break;} case 176: -#line 1044 "c-parse.y" +#line 1055 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 177: -#line 1046 "c-parse.y" +#line 1057 "c-parse.y" { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 178: -#line 1051 "c-parse.y" +#line 1062 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 179: -#line 1053 "c-parse.y" +#line 1064 "c-parse.y" { yyval.ttype = build_tree_list (yyvsp[0].ttype, NULL_TREE); ; break;} case 180: -#line 1055 "c-parse.y" +#line 1066 "c-parse.y" { yyval.ttype = build_tree_list (yyvsp[-3].ttype, build_tree_list (NULL_TREE, yyvsp[-1].ttype)); ; break;} case 181: -#line 1057 "c-parse.y" +#line 1068 "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 1059 "c-parse.y" +#line 1070 "c-parse.y" { yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 188: -#line 1077 "c-parse.y" +#line 1088 "c-parse.y" { really_start_incremental_init (NULL_TREE); /* Note that the call to clear_momentary is in process_init_element. */ push_momentary (); ; break;} case 189: -#line 1082 "c-parse.y" +#line 1093 "c-parse.y" { yyval.ttype = pop_init_level (0); if (yyval.ttype == error_mark_node && ! (yychar == STRING || yychar == CONSTANT)) @@ -2686,44 +2695,44 @@ case 189: pop_momentary_nofree (); ; break;} case 190: -#line 1090 "c-parse.y" +#line 1101 "c-parse.y" { yyval.ttype = error_mark_node; ; break;} case 191: -#line 1096 "c-parse.y" +#line 1107 "c-parse.y" { if (pedantic) pedwarn ("ANSI C forbids empty initializer braces"); ; break;} case 197: -#line 1112 "c-parse.y" +#line 1123 "c-parse.y" { set_init_label (yyvsp[-1].ttype); ; break;} case 200: -#line 1119 "c-parse.y" +#line 1130 "c-parse.y" { push_init_level (0); ; break;} case 201: -#line 1121 "c-parse.y" +#line 1132 "c-parse.y" { process_init_element (pop_init_level (0)); ; break;} case 202: -#line 1123 "c-parse.y" +#line 1134 "c-parse.y" { process_init_element (yyvsp[0].ttype); ; break;} case 206: -#line 1134 "c-parse.y" +#line 1145 "c-parse.y" { set_init_label (yyvsp[0].ttype); ; break;} case 207: -#line 1139 "c-parse.y" +#line 1150 "c-parse.y" { set_init_index (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 208: -#line 1141 "c-parse.y" +#line 1152 "c-parse.y" { set_init_index (yyvsp[-1].ttype, NULL_TREE); ; break;} case 209: -#line 1146 "c-parse.y" +#line 1157 "c-parse.y" { if (pedantic) pedwarn ("ANSI C forbids nested functions"); @@ -2737,16 +2746,16 @@ case 209: reinit_parse_for_function (); ; break;} case 210: -#line 1158 "c-parse.y" +#line 1169 "c-parse.y" { store_parm_decls (); ; break;} case 211: -#line 1166 "c-parse.y" +#line 1177 "c-parse.y" { finish_function (1); pop_function_context (); ; break;} case 212: -#line 1172 "c-parse.y" +#line 1183 "c-parse.y" { if (pedantic) pedwarn ("ANSI C forbids nested functions"); @@ -2760,211 +2769,211 @@ case 212: reinit_parse_for_function (); ; break;} case 213: -#line 1184 "c-parse.y" +#line 1195 "c-parse.y" { store_parm_decls (); ; break;} case 214: -#line 1192 "c-parse.y" +#line 1203 "c-parse.y" { finish_function (1); pop_function_context (); ; break;} case 217: -#line 1208 "c-parse.y" +#line 1219 "c-parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 218: -#line 1210 "c-parse.y" +#line 1221 "c-parse.y" { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ; break;} case 219: -#line 1215 "c-parse.y" +#line 1226 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 220: -#line 1217 "c-parse.y" +#line 1228 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ; break;} case 221: -#line 1219 "c-parse.y" +#line 1230 "c-parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 222: -#line 1226 "c-parse.y" +#line 1237 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 224: -#line 1237 "c-parse.y" +#line 1248 "c-parse.y" { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ; break;} case 225: -#line 1242 "c-parse.y" +#line 1253 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, NULL_TREE); if (! flag_isoc9x) error ("`[*]' in parameter declaration only allowed in ISO C 9x"); ; break;} case 226: -#line 1247 "c-parse.y" +#line 1258 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 227: -#line 1249 "c-parse.y" +#line 1260 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ; break;} case 228: -#line 1251 "c-parse.y" +#line 1262 "c-parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 229: -#line 1258 "c-parse.y" +#line 1269 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 231: -#line 1267 "c-parse.y" +#line 1278 "c-parse.y" { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ; break;} case 232: -#line 1272 "c-parse.y" +#line 1283 "c-parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 233: -#line 1274 "c-parse.y" +#line 1285 "c-parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 234: -#line 1276 "c-parse.y" +#line 1287 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, NULL_TREE); if (! flag_isoc9x) error ("`[*]' in parameter declaration only allowed in ISO C 9x"); ; break;} case 235: -#line 1281 "c-parse.y" +#line 1292 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 236: -#line 1283 "c-parse.y" +#line 1294 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ; break;} case 237: -#line 1290 "c-parse.y" +#line 1301 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 239: -#line 1296 "c-parse.y" +#line 1307 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 240: -#line 1298 "c-parse.y" +#line 1309 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 241: -#line 1303 "c-parse.y" +#line 1314 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 242: -#line 1305 "c-parse.y" +#line 1316 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 243: -#line 1310 "c-parse.y" +#line 1321 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 244: -#line 1312 "c-parse.y" +#line 1323 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 245: -#line 1317 "c-parse.y" +#line 1328 "c-parse.y" { yyval.ttype = start_struct (RECORD_TYPE, yyvsp[-1].ttype); /* Start scope of tag before parsing components. */ ; break;} case 246: -#line 1321 "c-parse.y" +#line 1332 "c-parse.y" { yyval.ttype = finish_struct (yyvsp[-3].ttype, yyvsp[-2].ttype, chainon (yyvsp[-6].ttype, yyvsp[0].ttype)); ; break;} case 247: -#line 1323 "c-parse.y" +#line 1334 "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 1327 "c-parse.y" +#line 1338 "c-parse.y" { yyval.ttype = xref_tag (RECORD_TYPE, yyvsp[0].ttype); ; break;} case 249: -#line 1329 "c-parse.y" +#line 1340 "c-parse.y" { yyval.ttype = start_struct (UNION_TYPE, yyvsp[-1].ttype); ; break;} case 250: -#line 1331 "c-parse.y" +#line 1342 "c-parse.y" { yyval.ttype = finish_struct (yyvsp[-3].ttype, yyvsp[-2].ttype, chainon (yyvsp[-6].ttype, yyvsp[0].ttype)); ; break;} case 251: -#line 1333 "c-parse.y" +#line 1344 "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 1337 "c-parse.y" +#line 1348 "c-parse.y" { yyval.ttype = xref_tag (UNION_TYPE, yyvsp[0].ttype); ; break;} case 253: -#line 1339 "c-parse.y" +#line 1350 "c-parse.y" { yyvsp[0].itype = suspend_momentary (); yyval.ttype = start_enum (yyvsp[-1].ttype); ; break;} case 254: -#line 1342 "c-parse.y" +#line 1353 "c-parse.y" { yyval.ttype= finish_enum (yyvsp[-4].ttype, nreverse (yyvsp[-3].ttype), chainon (yyvsp[-7].ttype, yyvsp[0].ttype)); resume_momentary (yyvsp[-5].itype); ; break;} case 255: -#line 1345 "c-parse.y" +#line 1356 "c-parse.y" { yyvsp[0].itype = suspend_momentary (); yyval.ttype = start_enum (NULL_TREE); ; break;} case 256: -#line 1348 "c-parse.y" +#line 1359 "c-parse.y" { yyval.ttype= finish_enum (yyvsp[-4].ttype, nreverse (yyvsp[-3].ttype), chainon (yyvsp[-6].ttype, yyvsp[0].ttype)); resume_momentary (yyvsp[-5].itype); ; break;} case 257: -#line 1351 "c-parse.y" +#line 1362 "c-parse.y" { yyval.ttype = xref_tag (ENUMERAL_TYPE, yyvsp[0].ttype); ; break;} case 261: -#line 1362 "c-parse.y" +#line 1373 "c-parse.y" { if (pedantic && ! flag_isoc9x) pedwarn ("comma at end of enumerator list"); ; break;} case 262: -#line 1368 "c-parse.y" +#line 1379 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 263: -#line 1370 "c-parse.y" +#line 1381 "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 1375 "c-parse.y" +#line 1386 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 265: -#line 1377 "c-parse.y" +#line 1388 "c-parse.y" { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[-1].ttype); ; break;} case 266: -#line 1379 "c-parse.y" +#line 1390 "c-parse.y" { if (pedantic) pedwarn ("extra semicolon in struct or union specified"); ; break;} case 267: -#line 1394 "c-parse.y" +#line 1405 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); @@ -2972,14 +2981,14 @@ case 267: resume_momentary (yyvsp[-1].itype); ; break;} case 268: -#line 1400 "c-parse.y" +#line 1411 "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 269: -#line 1405 "c-parse.y" +#line 1416 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; current_declspecs = TREE_VALUE (declspec_stack); prefix_attributes = TREE_PURPOSE (declspec_stack); @@ -2987,144 +2996,144 @@ case 269: resume_momentary (yyvsp[-1].itype); ; break;} case 270: -#line 1411 "c-parse.y" +#line 1422 "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 1416 "c-parse.y" +#line 1427 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 272: -#line 1418 "c-parse.y" +#line 1429 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; - pedantic = yyvsp[-1].itype; ; + RESTORE_WARN_FLAGS (yyvsp[-1].itype); ; break;} case 274: -#line 1425 "c-parse.y" +#line 1436 "c-parse.y" { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 275: -#line 1430 "c-parse.y" +#line 1441 "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 1434 "c-parse.y" +#line 1445 "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 1437 "c-parse.y" +#line 1448 "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 1449 "c-parse.y" +#line 1460 "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 1454 "c-parse.y" +#line 1465 "c-parse.y" { yyval.ttype = error_mark_node; ; break;} case 281: -#line 1460 "c-parse.y" +#line 1471 "c-parse.y" { yyval.ttype = build_enumerator (yyvsp[0].ttype, NULL_TREE); ; break;} case 282: -#line 1462 "c-parse.y" +#line 1473 "c-parse.y" { yyval.ttype = build_enumerator (yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 283: -#line 1467 "c-parse.y" +#line 1478 "c-parse.y" { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 284: -#line 1469 "c-parse.y" +#line 1480 "c-parse.y" { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 285: -#line 1474 "c-parse.y" +#line 1485 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 287: -#line 1480 "c-parse.y" +#line 1491 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ; break;} case 288: -#line 1482 "c-parse.y" +#line 1493 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 289: -#line 1487 "c-parse.y" +#line 1498 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 290: -#line 1489 "c-parse.y" +#line 1500 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 291: -#line 1494 "c-parse.y" +#line 1505 "c-parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 292: -#line 1497 "c-parse.y" +#line 1508 "c-parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 293: -#line 1499 "c-parse.y" +#line 1510 "c-parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[0].ttype, NULL_TREE); ; break;} case 294: -#line 1501 "c-parse.y" +#line 1512 "c-parse.y" { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ; break;} case 295: -#line 1503 "c-parse.y" +#line 1514 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 296: -#line 1505 "c-parse.y" +#line 1516 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ; break;} case 297: -#line 1507 "c-parse.y" +#line 1518 "c-parse.y" { yyval.ttype = build_nt (CALL_EXPR, NULL_TREE, yyvsp[0].ttype, NULL_TREE); ; break;} case 298: -#line 1509 "c-parse.y" +#line 1520 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, yyvsp[-1].ttype); ; break;} case 299: -#line 1511 "c-parse.y" +#line 1522 "c-parse.y" { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, NULL_TREE); ; break;} case 300: -#line 1515 "c-parse.y" +#line 1526 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 301: -#line 1524 "c-parse.y" +#line 1535 "c-parse.y" { if (pedantic && yyvsp[0].ends_in_label) pedwarn ("ANSI C forbids label at end of compound statement"); ; break;} case 303: -#line 1533 "c-parse.y" +#line 1544 "c-parse.y" { yyval.ends_in_label = yyvsp[0].ends_in_label; ; break;} case 304: -#line 1535 "c-parse.y" +#line 1546 "c-parse.y" { yyval.ends_in_label = 0; ; break;} case 308: -#line 1547 "c-parse.y" +#line 1558 "c-parse.y" { emit_line_note (input_filename, lineno); pushlevel (0); clear_last_expr (); @@ -3133,12 +3142,12 @@ case 308: ; break;} case 310: -#line 1560 "c-parse.y" +#line 1571 "c-parse.y" { if (pedantic) pedwarn ("ANSI C forbids label declarations"); ; break;} case 313: -#line 1571 "c-parse.y" +#line 1582 "c-parse.y" { tree link; for (link = yyvsp[-1].ttype; link; link = TREE_CHAIN (link)) { @@ -3149,19 +3158,19 @@ case 313: ; break;} case 314: -#line 1585 "c-parse.y" +#line 1596 "c-parse.y" {; break;} case 316: -#line 1589 "c-parse.y" +#line 1600 "c-parse.y" { compstmt_count++; ; break;} case 317: -#line 1592 "c-parse.y" +#line 1603 "c-parse.y" { yyval.ttype = convert (void_type_node, integer_zero_node); ; break;} case 318: -#line 1594 "c-parse.y" +#line 1605 "c-parse.y" { emit_line_note (input_filename, lineno); expand_end_bindings (getdecls (), 1, 0); yyval.ttype = poplevel (1, 1, 0); @@ -3171,7 +3180,7 @@ case 318: pop_momentary (); ; break;} case 319: -#line 1602 "c-parse.y" +#line 1613 "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); @@ -3181,7 +3190,7 @@ case 319: pop_momentary (); ; break;} case 320: -#line 1610 "c-parse.y" +#line 1621 "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); @@ -3191,7 +3200,7 @@ case 320: pop_momentary (); ; break;} case 321: -#line 1621 "c-parse.y" +#line 1632 "c-parse.y" { if (current_function_decl == 0) { error ("braced-group within expression allowed only inside a function"); @@ -3209,11 +3218,11 @@ case 321: ; break;} case 322: -#line 1638 "c-parse.y" +#line 1649 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 325: -#line 1652 "c-parse.y" +#line 1663 "c-parse.y" { emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno); c_expand_start_cond (truthvalue_conversion (yyvsp[-1].ttype), 0, compstmt_count); @@ -3223,7 +3232,7 @@ case 325: position_after_white_space (); ; break;} case 326: -#line 1666 "c-parse.y" +#line 1677 "c-parse.y" { stmt_count++; compstmt_count++; emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno); @@ -3233,43 +3242,43 @@ case 326: position_after_white_space (); ; break;} case 327: -#line 1674 "c-parse.y" +#line 1685 "c-parse.y" { expand_loop_continue_here (); ; break;} case 328: -#line 1678 "c-parse.y" +#line 1689 "c-parse.y" { yyval.filename = input_filename; ; break;} case 329: -#line 1682 "c-parse.y" +#line 1693 "c-parse.y" { yyval.lineno = lineno; ; break;} case 330: -#line 1687 "c-parse.y" +#line 1698 "c-parse.y" { ; break;} case 331: -#line 1692 "c-parse.y" +#line 1703 "c-parse.y" { ; break;} case 332: -#line 1697 "c-parse.y" +#line 1708 "c-parse.y" { yyval.ends_in_label = yyvsp[0].ends_in_label; ; break;} case 333: -#line 1702 "c-parse.y" +#line 1713 "c-parse.y" { yyval.ends_in_label = 0; ; break;} case 334: -#line 1704 "c-parse.y" +#line 1715 "c-parse.y" { yyval.ends_in_label = 1; ; break;} case 335: -#line 1710 "c-parse.y" +#line 1721 "c-parse.y" { stmt_count++; ; break;} case 337: -#line 1713 "c-parse.y" +#line 1724 "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 @@ -3288,19 +3297,19 @@ case 337: clear_momentary (); ; break;} case 338: -#line 1730 "c-parse.y" +#line 1741 "c-parse.y" { c_expand_start_else (); yyvsp[-1].itype = stmt_count; position_after_white_space (); ; break;} case 339: -#line 1734 "c-parse.y" +#line 1745 "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 1738 "c-parse.y" +#line 1749 "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 @@ -3311,11 +3320,11 @@ case 340: "empty body in an if-statement"); ; break;} case 341: -#line 1750 "c-parse.y" +#line 1761 "c-parse.y" { c_expand_end_cond (); ; break;} case 342: -#line 1752 "c-parse.y" +#line 1763 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno); /* The emit_nop used to come before emit_line_note, @@ -3327,7 +3336,7 @@ case 342: emit_nop (); ; break;} case 343: -#line 1762 "c-parse.y" +#line 1773 "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. */ @@ -3338,11 +3347,11 @@ case 343: position_after_white_space (); ; break;} case 344: -#line 1771 "c-parse.y" +#line 1782 "c-parse.y" { expand_end_loop (); ; break;} case 345: -#line 1774 "c-parse.y" +#line 1785 "c-parse.y" { emit_line_note (input_filename, lineno); expand_exit_loop_if_false (NULL_PTR, truthvalue_conversion (yyvsp[-2].ttype)); @@ -3350,12 +3359,12 @@ case 345: clear_momentary (); ; break;} case 346: -#line 1781 "c-parse.y" +#line 1792 "c-parse.y" { expand_end_loop (); clear_momentary (); ; break;} case 347: -#line 1785 "c-parse.y" +#line 1796 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno); /* See comment in `while' alternative, above. */ @@ -3368,12 +3377,12 @@ case 347: ; break;} case 348: -#line 1797 "c-parse.y" +#line 1808 "c-parse.y" { yyvsp[0].lineno = lineno; yyval.filename = input_filename; ; break;} case 349: -#line 1800 "c-parse.y" +#line 1811 "c-parse.y" { /* Start the loop. Doing this after parsing all the expressions ensures we will end the loop. */ @@ -3391,7 +3400,7 @@ case 349: position_after_white_space (); ; break;} case 350: -#line 1816 "c-parse.y" +#line 1827 "c-parse.y" { /* Emit the increment expression, with a line number. */ emit_line_note (yyvsp[-4].filename, yyvsp[-5].lineno); expand_loop_continue_here (); @@ -3404,7 +3413,7 @@ case 350: expand_end_loop (); ; break;} case 351: -#line 1827 "c-parse.y" +#line 1838 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno); c_expand_start_case (yyvsp[-1].ttype); @@ -3414,7 +3423,7 @@ case 351: position_after_white_space (); ; break;} case 352: -#line 1835 "c-parse.y" +#line 1846 "c-parse.y" { expand_end_case (yyvsp[-3].ttype); if (yychar == CONSTANT || yychar == STRING) pop_momentary_nofree (); @@ -3422,33 +3431,33 @@ case 352: pop_momentary (); ; break;} case 353: -#line 1841 "c-parse.y" +#line 1852 "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 1846 "c-parse.y" +#line 1857 "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 1851 "c-parse.y" +#line 1862 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno); c_expand_return (NULL_TREE); ; break;} case 356: -#line 1855 "c-parse.y" +#line 1866 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno); c_expand_return (yyvsp[-1].ttype); ; break;} case 357: -#line 1859 "c-parse.y" +#line 1870 "c-parse.y" { stmt_count++; emit_line_note (yyvsp[-7].filename, yyvsp[-6].lineno); STRIP_NOPS (yyvsp[-2].ttype); @@ -3460,7 +3469,7 @@ case 357: error ("argument of `asm' is not a constant string"); ; break;} case 358: -#line 1870 "c-parse.y" +#line 1881 "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, @@ -3468,7 +3477,7 @@ case 358: input_filename, lineno); ; break;} case 359: -#line 1877 "c-parse.y" +#line 1888 "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, @@ -3476,7 +3485,7 @@ case 359: input_filename, lineno); ; break;} case 360: -#line 1885 "c-parse.y" +#line 1896 "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, @@ -3484,7 +3493,7 @@ case 360: input_filename, lineno); ; break;} case 361: -#line 1891 "c-parse.y" +#line 1902 "c-parse.y" { tree decl; stmt_count++; emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno); @@ -3497,7 +3506,7 @@ case 361: ; break;} case 362: -#line 1902 "c-parse.y" +#line 1913 "c-parse.y" { if (pedantic) pedwarn ("ANSI C forbids `goto *expr;'"); stmt_count++; @@ -3505,7 +3514,7 @@ case 362: expand_computed_goto (convert (ptr_type_node, yyvsp[-1].ttype)); ; break;} case 365: -#line 1917 "c-parse.y" +#line 1928 "c-parse.y" { /* The value returned by this action is */ /* 1 if everything is OK */ @@ -3528,14 +3537,14 @@ case 365: ; break;} case 366: -#line 1938 "c-parse.y" +#line 1949 "c-parse.y" { if (yyvsp[-1].itype) iterator_for_loop_end (yyvsp[-3].ttype); ; break;} case 367: -#line 1973 "c-parse.y" +#line 1984 "c-parse.y" { register tree value = check_case_value (yyvsp[-1].ttype); register tree label = build_decl (LABEL_DECL, NULL_TREE, NULL_TREE); @@ -3568,7 +3577,7 @@ case 367: position_after_white_space (); ; break;} case 368: -#line 2004 "c-parse.y" +#line 2015 "c-parse.y" { register tree value1 = check_case_value (yyvsp[-3].ttype); register tree value2 = check_case_value (yyvsp[-1].ttype); register tree label @@ -3601,7 +3610,7 @@ case 368: position_after_white_space (); ; break;} case 369: -#line 2035 "c-parse.y" +#line 2046 "c-parse.y" { tree duplicate; register tree label @@ -3618,7 +3627,7 @@ case 369: position_after_white_space (); ; break;} case 370: -#line 2050 "c-parse.y" +#line 2061 "c-parse.y" { tree label = define_label (input_filename, lineno, yyvsp[-2].ttype); stmt_count++; emit_nop (); @@ -3630,52 +3639,52 @@ case 370: position_after_white_space (); ; break;} case 371: -#line 2065 "c-parse.y" +#line 2076 "c-parse.y" { emit_line_note (input_filename, lineno); yyval.ttype = NULL_TREE; ; break;} case 372: -#line 2068 "c-parse.y" +#line 2079 "c-parse.y" { emit_line_note (input_filename, lineno); ; break;} case 373: -#line 2073 "c-parse.y" +#line 2084 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 375: -#line 2080 "c-parse.y" +#line 2091 "c-parse.y" { yyval.ttype = NULL_TREE; ; break;} case 378: -#line 2087 "c-parse.y" +#line 2098 "c-parse.y" { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 379: -#line 2092 "c-parse.y" +#line 2103 "c-parse.y" { yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 380: -#line 2097 "c-parse.y" +#line 2108 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), NULL_TREE); ; break;} case 381: -#line 2099 "c-parse.y" +#line 2110 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), yyvsp[-2].ttype); ; break;} case 382: -#line 2105 "c-parse.y" +#line 2116 "c-parse.y" { pushlevel (0); clear_parm_order (); declare_parm_level (0); ; break;} case 383: -#line 2109 "c-parse.y" +#line 2120 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; parmlist_tags_warning (); poplevel (0, 0, 0); ; break;} case 385: -#line 2117 "c-parse.y" +#line 2128 "c-parse.y" { tree parm; if (pedantic) pedwarn ("ANSI C forbids forward parameter declarations"); @@ -3685,19 +3694,19 @@ case 385: clear_parm_order (); ; break;} case 386: -#line 2125 "c-parse.y" +#line 2136 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 387: -#line 2127 "c-parse.y" +#line 2138 "c-parse.y" { yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ; break;} case 388: -#line 2133 "c-parse.y" +#line 2144 "c-parse.y" { yyval.ttype = get_parm_info (0); ; break;} case 389: -#line 2135 "c-parse.y" +#line 2146 "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. @@ -3709,23 +3718,23 @@ case 389: ; break;} case 390: -#line 2145 "c-parse.y" +#line 2156 "c-parse.y" { yyval.ttype = get_parm_info (1); ; break;} case 391: -#line 2147 "c-parse.y" +#line 2158 "c-parse.y" { yyval.ttype = get_parm_info (0); ; break;} case 392: -#line 2152 "c-parse.y" +#line 2163 "c-parse.y" { push_parm_decl (yyvsp[0].ttype); ; break;} case 393: -#line 2154 "c-parse.y" +#line 2165 "c-parse.y" { push_parm_decl (yyvsp[0].ttype); ; break;} case 394: -#line 2161 "c-parse.y" +#line 2172 "c-parse.y" { yyval.ttype = build_tree_list (build_tree_list (current_declspecs, yyvsp[-1].ttype), build_tree_list (prefix_attributes, @@ -3736,7 +3745,7 @@ case 394: resume_momentary (yyvsp[-2].itype); ; break;} case 395: -#line 2170 "c-parse.y" +#line 2181 "c-parse.y" { yyval.ttype = build_tree_list (build_tree_list (current_declspecs, yyvsp[-1].ttype), build_tree_list (prefix_attributes, @@ -3747,7 +3756,7 @@ case 395: resume_momentary (yyvsp[-2].itype); ; break;} case 396: -#line 2179 "c-parse.y" +#line 2190 "c-parse.y" { yyval.ttype = build_tree_list (build_tree_list (current_declspecs, yyvsp[-1].ttype), build_tree_list (prefix_attributes, @@ -3758,7 +3767,7 @@ case 396: resume_momentary (yyvsp[-2].itype); ; break;} case 397: -#line 2188 "c-parse.y" +#line 2199 "c-parse.y" { yyval.ttype = build_tree_list (build_tree_list (current_declspecs, yyvsp[-1].ttype), build_tree_list (prefix_attributes, @@ -3769,7 +3778,7 @@ case 397: resume_momentary (yyvsp[-2].itype); ; break;} case 398: -#line 2198 "c-parse.y" +#line 2209 "c-parse.y" { yyval.ttype = build_tree_list (build_tree_list (current_declspecs, yyvsp[-1].ttype), build_tree_list (prefix_attributes, @@ -3780,19 +3789,19 @@ case 398: resume_momentary (yyvsp[-2].itype); ; break;} case 399: -#line 2212 "c-parse.y" +#line 2223 "c-parse.y" { pushlevel (0); clear_parm_order (); declare_parm_level (1); ; break;} case 400: -#line 2216 "c-parse.y" +#line 2227 "c-parse.y" { yyval.ttype = yyvsp[0].ttype; parmlist_tags_warning (); poplevel (0, 0, 0); ; break;} case 402: -#line 2224 "c-parse.y" +#line 2235 "c-parse.y" { tree t; for (t = yyvsp[-1].ttype; t; t = TREE_CHAIN (t)) if (TREE_VALUE (t) == NULL_TREE) @@ -3800,29 +3809,30 @@ case 402: yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, yyvsp[-1].ttype); ; break;} case 403: -#line 2234 "c-parse.y" +#line 2245 "c-parse.y" { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ; break;} case 404: -#line 2236 "c-parse.y" +#line 2247 "c-parse.y" { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ; break;} case 405: -#line 2242 "c-parse.y" +#line 2253 "c-parse.y" { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ; break;} case 406: -#line 2244 "c-parse.y" +#line 2255 "c-parse.y" { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ; break;} case 407: -#line 2249 "c-parse.y" -{ yyval.itype = pedantic; - pedantic = 0; ; +#line 2260 "c-parse.y" +{ yyval.itype = SAVE_WARN_FLAGS(); + pedantic = 0; + warn_pointer_arith = 0; ; break;} } /* the action file gets copied in in place of this dollarsign */ -#line 498 "bison.simple" +#line 498 "/usr/cygnus/TBD-TBD/share/bison.simple" yyvsp -= yylen; yyssp -= yylen; @@ -4018,5 +4028,5 @@ yyerrhandle: yystate = yyn; goto yynewstate; } -#line 2253 "c-parse.y" +#line 2265 "c-parse.y" |