diff options
author | Martin v. Löwis <loewis@informatik.hu-berlin.de> | 2000-01-18 00:01:06 +0000 |
---|---|---|
committer | Martin v. Löwis <loewis@gcc.gnu.org> | 2000-01-18 00:01:06 +0000 |
commit | 101e59f49237c5acbf25580d8f7f2f16b0e10f9c (patch) | |
tree | 9efb26d31ac8ff1aa8734ad2c269ff7117ddf3eb /gcc/objc/objc-parse.c | |
parent | 18990de52b8166a8f5fb71271cf4c12d3c0f0a47 (diff) | |
download | gcc-101e59f49237c5acbf25580d8f7f2f16b0e10f9c.zip gcc-101e59f49237c5acbf25580d8f7f2f16b0e10f9c.tar.gz gcc-101e59f49237c5acbf25580d8f7f2f16b0e10f9c.tar.bz2 |
c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
* c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
(RESTORE_WARN_FLAGS): Unpack it.
Change semantic type of extension to ttype.
* c-common.c (split_specs_attrs): Expect an INTEGER_CST.
* c-parse.y, c-parse.c, objc/objc-parse.y,
objc/objc-parse.c: Regenerate.
From-SVN: r31478
Diffstat (limited to 'gcc/objc/objc-parse.c')
-rw-r--r-- | gcc/objc/objc-parse.c | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/gcc/objc/objc-parse.c b/gcc/objc/objc-parse.c index 6b545f0..a2e0ff8 100644 --- a/gcc/objc/objc-parse.c +++ b/gcc/objc/objc-parse.c @@ -1,6 +1,7 @@ /* A Bison parser, made from objc-parse.y - by GNU Bison version 1.28 */ + by GNU Bison version 1.27 + */ #define YYBISON 1 /* Identify Bison output. */ @@ -99,7 +100,7 @@ const char * const language_string = "GNU Obj-C"; #line 65 "objc-parse.y" typedef union {long itype; tree ttype; enum tree_code code; char *filename; int lineno; int ends_in_label; } YYSTYPE; -#line 198 "objc-parse.y" +#line 196 "objc-parse.y" /* Number of statements (loosely speaking) and compound statements seen so far. */ @@ -123,9 +124,11 @@ 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) \ +#define SAVE_WARN_FLAGS() \ + build_int_2 (pedantic | (warn_pointer_arith << 1), 0) +#define RESTORE_WARN_FLAGS(tval) \ do { \ + int val = TREE_INT_CST_LOW (tval); \ pedantic = val & 1; \ warn_pointer_arith = (val >> 1) & 1; \ } while (0) @@ -1746,8 +1749,8 @@ static const short yycheck[] = { 56, 46, 47, 48, 49, 50, 51, 52, 53, 54 }; /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ -#line 3 "/usr/share/misc/bison.simple" -/* This file comes from bison-1.28. */ +#line 3 "/usr/share/bison.simple" +/* This file comes from bison-1.27. */ /* Skeleton output parser for bison, Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc. @@ -1960,7 +1963,7 @@ __yy_memcpy (char *to, char *from, unsigned int count) #endif #endif -#line 217 "/usr/share/misc/bison.simple" +#line 216 "/usr/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 *. @@ -2325,7 +2328,7 @@ case 10: break;} case 11: #line 294 "objc-parse.y" -{ RESTORE_WARN_FLAGS (yyvsp[-1].itype); ; +{ RESTORE_WARN_FLAGS (yyvsp[-1].ttype); ; break;} case 12: #line 299 "objc-parse.y" @@ -2495,7 +2498,7 @@ case 49: case 50: #line 432 "objc-parse.y" { yyval.ttype = yyvsp[0].ttype; - RESTORE_WARN_FLAGS (yyvsp[-1].itype); ; + RESTORE_WARN_FLAGS (yyvsp[-1].ttype); ; break;} case 51: #line 435 "objc-parse.y" @@ -3093,7 +3096,7 @@ case 136: break;} case 137: #line 982 "objc-parse.y" -{ RESTORE_WARN_FLAGS (yyvsp[-1].itype); ; +{ RESTORE_WARN_FLAGS (yyvsp[-1].ttype); ; break;} case 138: #line 992 "objc-parse.y" @@ -3652,7 +3655,7 @@ case 282: case 283: #line 1569 "objc-parse.y" { yyval.ttype = yyvsp[0].ttype; - RESTORE_WARN_FLAGS (yyvsp[-1].itype); ; + RESTORE_WARN_FLAGS (yyvsp[-1].ttype); ; break;} case 285: #line 1576 "objc-parse.y" @@ -4471,7 +4474,7 @@ case 417: break;} case 418: #line 2402 "objc-parse.y" -{ yyval.itype = SAVE_WARN_FLAGS(); +{ yyval.ttype = SAVE_WARN_FLAGS(); pedantic = 0; warn_pointer_arith = 0; ; break;} @@ -5150,7 +5153,7 @@ case 570: break;} } /* the action file gets copied in in place of this dollarsign */ -#line 543 "/usr/share/misc/bison.simple" +#line 542 "/usr/share/bison.simple" yyvsp -= yylen; yyssp -= yylen; |