Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
957a1c32
Commit
957a1c32
authored
Apr 20, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(typespec): Made <SomeProtocol> equivalent to (id <SomeProtocol>).
(non_empty_protocolrefs): New nonterminal. From-SVN: r11858
parent
5720c7e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
gcc/c-parse.in
+12
-2
No files found.
gcc/c-parse.in
View file @
957a1c32
...
...
@@ -224,7 +224,8 @@ ifobjc
%
type
<
ttype
>
keywordexpr
keywordarglist
keywordarg
%
type
<
ttype
>
myparms
myparm
optparmlist
reservedwords
objcselectorexpr
%
type
<
ttype
>
selectorarg
keywordnamelist
keywordname
objcencodeexpr
%
type
<
ttype
>
objc_string
protocolrefs
identifier_list
objcprotocolexpr
%
type
<
ttype
>
objc_string
non_empty_protocolrefs
protocolrefs
identifier_list
objcprotocolexpr
%
type
<
ttype
>
CLASSNAME
OBJC_STRING
OBJECTNAME
end
ifobjc
...
...
@@ -1041,6 +1042,11 @@ ifobjc
{
$$
=
get_static_reference
(
$
1
,
$
2
);
}
|
OBJECTNAME
protocolrefs
{
$$
=
get_object_reference
(
$
2
);
}
/* Make "<SomeProtocol>" equivalent to "id <SomeProtocol>"
- nisse@lysator.liu.se */
|
non_empty_protocolrefs
{
$$
=
get_object_reference
(
$
1
);
}
end
ifobjc
|
TYPEOF
'('
expr
')'
{
$$
=
TREE_TYPE
(
$
3
);
}
...
...
@@ -2440,7 +2446,11 @@ protocolrefs:
{
$$
=
NULL_TREE
;
}
|
ARITHCOMPARE
identifier_list
ARITHCOMPARE
|
non_empty_protocolrefs
;
non_empty_protocolrefs
:
ARITHCOMPARE
identifier_list
ARITHCOMPARE
{
if
(
$
1
==
LT_EXPR
&&
$
3
==
GT_EXPR
)
$$
=
$
2
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment