Commit Graph

77 Commits

Author SHA1 Message Date
Richard Kenner
084c4c25c1 Update number of shift/reduce conflicts.
({typed_declspecs,reserved_declspecs,declmods}_no_prefix_attr): New.
(current_declspecs): Initialize to NULL_TREE.
(fndef): Pass current_declspecs, not $1, to start_function.
(old_style_parm_decls): Renamed from xdecls.
(datadecl, declmods): Add references to new rules.
(setspecs): Call split_specs_attrs.
(absdcl1): Remove case with setattrs.

From-SVN: r12924
1996-10-09 07:35:27 -04:00
Richard Kenner
c4c1f6d58b Update number of shift/reduce conflicts for objc.
From-SVN: r12023
1996-05-18 10:25:57 -04:00
Richard Kenner
957a1c3293 (typespec): Made <SomeProtocol> equivalent to (id <SomeProtocol>).
(non_empty_protocolrefs): New nonterminal.

From-SVN: r11858
1996-04-20 19:55:24 -04:00
Paul Eggert
e64bb70660 (stmt): Warn about `goto *expr;' if pedantic.
(label): Warn about `case expr ... expr:' if pedantic.

From-SVN: r11160
1996-02-02 17:42:40 +00:00
Richard Kenner
a0d074e106 (enumlist): Propagate error_mark_node.
From-SVN: r10396
1995-09-22 19:08:27 -04:00
Richard Kenner
28a19afce3 (ends_in_label): New %union member.
(stmts, stmt_or_label): Use new member to avoid lexical lookahead hack.
(lineno_stmt_or_labels): New rule.
(lineno_stmt_or_label, stmt_or_label): Yield nonzero if it ends in a label.

From-SVN: r10302
1995-08-31 18:38:14 -04:00
Richard Kenner
940d9d638b Update FSF address.
From-SVN: r9959
1995-06-15 07:33:25 -04:00
Richard Kenner
9fe9dd86e6 Revert most of last change.
From-SVN: r9946
1995-06-14 13:23:47 -04:00
Richard Kenner
866890d94a (fndef, nested_function, notype_nested_function): Support attributes
after function definition.

From-SVN: r9942
1995-06-14 08:06:01 -04:00
Richard Kenner
d27543a720 Objc shift/reduce conflicts now 48.
(parm): Use setspecs/restore here.
(parmlist_or_identifiers): Not here.

From-SVN: r9776
1995-05-23 07:22:29 -04:00
Richard Kenner
962a2496a0 (datadef, fndef, ivar_decl, mydecls): Restore declspec_stack since setspecs is used.
(datadef, fndef, ivar_decl, mydecls): Restore declspec_stack since
setspecs is used.
(parmlist_or_identifiers): Use setspecs before parsing parms and
restore after parsing parms.

From-SVN: r9760
1995-05-21 08:39:16 -04:00
Richard Kenner
ddd5a7c180 Fix typos in comments.
From-SVN: r9711
1995-05-16 08:14:26 -04:00
Richard Kenner
f6999fed2e (myparm): Handle attributes.
From-SVN: r9657
1995-05-12 15:53:36 -04:00
Richard Kenner
ee2897efdb Adjust number of shift/reduce conflicts.
(parm): Support attributes.

From-SVN: r9638
1995-05-12 07:08:56 -04:00
Richard Kenner
67b0763ea8 (nested_function, notype_nested_function): Allow old-style arg
definitions (use xdecls).

From-SVN: r9628
1995-05-11 19:27:13 -04:00
Richard Kenner
41ddaaa4d5 Update number of shift/reduce conflicts.
(structsp): Pass attribute arg to finish_struct.
Support attributes on enums and pass to finish_enum.

From-SVN: r9487
1995-04-26 17:24:51 -04:00
Richard Kenner
f365e8f673 (attrib): Permit null-length argument list to attributes.
From-SVN: r9458
1995-04-25 18:57:39 -04:00
Richard Kenner
99ac47b5d2 (initdcl, notype_initdcl): Pass attributes to start_decl; delete call
to decl_attributes.

From-SVN: r9442
1995-04-25 16:06:00 -04:00
Doug Evans
6353cbd59d (update expected conflict count)
From-SVN: r9377
1995-04-13 23:57:25 +00:00
Richard Kenner
af6f30c465 (structsp): Correct error in last change.
From-SVN: r9270
1995-03-31 07:26:06 -05:00
Richard Kenner
5d7a33dca4 Now have 27 shift/reduce conflicts.
(attribute_list): Just make chain of all attributes.
(attrib): Consistently put name as PURPOSE, args, if any, as VALUE.
(structsp): Allow attributes on any struct or union.

From-SVN: r9260
1995-03-30 08:58:33 -05:00
Richard Kenner
d10b562e27 (initdcl): Only call decl_attributes once.
From-SVN: r9240
1995-03-29 06:47:07 -05:00
Richard Kenner
ee7d912e9b (fndef, nested_function): Pass prefix_attributes to start_function.
(setspecs): Save prefix_attributes in declspec_stack.
(decl rules): Restore prefix_attributes along with current_declspecs.
(setattrs): Concatenate prefix_attributes to previous value.

From-SVN: r9151
1995-03-09 21:33:33 -05:00
Richard Kenner
eadaebabd3 Fix typo in last change.
From-SVN: r9111
1995-03-02 18:13:29 -05:00
Richard Kenner
fa4f1d3636 Update shift/reduce conflict documentation.
From-SVN: r9109
1995-03-02 15:51:00 -05:00
Richard Kenner
347248143d New rules to allow attributes in a prefix position.
From-SVN: r8995
1995-02-21 17:58:19 -05:00
Richard Kenner
5ed7f7b137 (ALIGN): Remove unused token.
From-SVN: r8924
1995-02-13 08:45:33 -05:00
Richard Kenner
e72260ea6f (unary_expr): If -pedantic, give error for &&.
From-SVN: r8748
1995-01-13 20:15:11 -05:00
Jason Merrill
2c5f4139a9 __attribute__ ((constructor))
From-SVN: r8747
1995-01-14 01:09:01 +00:00
Richard Kenner
aff2a12b70 (parmlist_2): Give error for function with only ELLIPSIS as an
argument.

From-SVN: r7969
1994-08-24 17:45:11 -04:00
Richard Kenner
218d0f8a84 (stmt): Don't give more than one error message if a nested `if' has an
empty body.

From-SVN: r7722
1994-07-11 18:17:57 -04:00
Richard Kenner
a78bdb8ef8 (initelt): The equal sign is optional when positioning to a single
element of an array.

From-SVN: r7637
1994-07-01 19:09:49 -04:00
Richard Kenner
9d4e73d622 (init...
(init, compstmt, stmt, all_iter_stmt_with_decl): If the lookahead
token is a constant and we need to pop the momentary obstack, don't
free it.

From-SVN: r7382
1994-05-28 22:44:55 -04:00
Richard Stallman
adc3b521ec (enumlist): Add error alternative.
From-SVN: r7316
1994-05-16 22:38:23 +00:00
Richard Kenner
660b43c865 Rewrite attribute parsing; update the expected conflicts and state
numbers.

From-SVN: r7252
1994-05-06 18:28:47 -04:00
Richard Stallman
309c23f7dd (attrib): Handle string args as expressions,
merging the two rules.  `mode' attribute now takes a string arg.
Delete the rule for an identifier as arg.

From-SVN: r6913
1994-03-28 01:27:48 +00:00
Doug Evans
423b04b06f Back out this patch:
(attrib): Use `identifier' instead of `IDENTIFIER' since names that
are (e.g.) typedef names are still OK.

From-SVN: r6912
1994-03-27 19:42:26 +00:00
Richard Kenner
c386df78f6 (primary): Remove decl of unused variable CONTEXT.
From-SVN: r6873
1994-03-25 13:56:40 -05:00
Richard Kenner
d8a6c3ebeb (attrib): Use identifier' instead of IDENTIFIER' since names that
are (e.g.) typedef names are still OK.

From-SVN: r6828
1994-03-19 18:02:29 -05:00
Doug Evans
7ffa4f13f0 (attrib): Handle attribute ((section ("string"))).
From-SVN: r6581
1994-02-17 22:48:19 +00:00
Richard Kenner
06c6bfb17b (maybe_attribute): Allow multiple __attribute__ clauses on a
declaration.

From-SVN: r6389
1994-01-13 06:14:08 -05:00
Richard Kenner
ba09c753fb (attrib): Allow expressions instead of constants.
From-SVN: r6299
1993-12-24 07:37:56 -05:00
Richard Stallman
5bb92565c0 Don't fail to set $$.
From-SVN: r6144
1993-11-23 21:54:55 +00:00
Richard Kenner
e1eb754f60 (init): Remove extraneous pop_momentary in error case.
From-SVN: r5926
1993-10-28 21:30:29 -04:00
Richard Stallman
aa2e6789a8 (initdcl, notype_initdcl): Call decl_attributes
before init as well as after.

From-SVN: r5779
1993-10-13 20:40:41 +00:00
Richard Stallman
bf0add700f (stmt): Don't call default_conversion on top-level expressions.
From-SVN: r5725
1993-10-11 03:04:47 +00:00
Richard Stallman
6126f4db33 (initdcl, notype_initdcl, init): Undo previous change.
(init): Use pop_momentary_nofree if the initializer has real data.

From-SVN: r5702
1993-10-10 05:20:15 +00:00
Richard Stallman
ea8daa3ba3 (initdcl, notype_initdcl): Call push_momentary and pop_momentary here.
(init): Not here.

From-SVN: r5679
1993-10-08 12:20:44 +00:00
Richard Stallman
d8e29a65dd (attrib): Support attribute volatile' with alias noreturn', and `const'.
(stmt): In an expr stmt, call default_conversion for arrays/functions.

From-SVN: r5083
1993-08-06 01:09:27 +00:00
Jim Wilson
7f3d4b2f75 (simple_if, if_prefix, stmt): Undo Jul 7 change.
(if_prefix): Store stmt_count in $$ not $1.
(stmt): Add comment explaining why empty-if warning is here.

From-SVN: r5029
1993-07-28 11:06:21 -07:00