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
cb0a70ca
Commit
cb0a70ca
authored
Dec 06, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: Correct test for whether go/defer arg is parenthesized.
From-SVN: r194240
parent
4d901dd7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
gcc/go/gofrontend/parse.cc
+0
-0
gcc/go/gofrontend/parse.h
+5
-4
No files found.
gcc/go/gofrontend/parse.cc
View file @
cb0a70ca
This diff is collapsed.
Click to expand it.
gcc/go/gofrontend/parse.h
View file @
cb0a70ca
...
...
@@ -216,7 +216,7 @@ class Parse
Range_clause
*
,
Type_switch
*
);
void
function_decl
(
bool
saw_nointerface
);
Typed_identifier
*
receiver
();
Expression
*
operand
(
bool
may_be_sink
);
Expression
*
operand
(
bool
may_be_sink
,
bool
*
is_parenthesized
);
Expression
*
enclosing_var_reference
(
Named_object
*
,
Named_object
*
,
Location
);
Expression
*
composite_lit
(
Type
*
,
int
depth
,
Location
);
...
...
@@ -224,15 +224,16 @@ class Parse
Expression
*
create_closure
(
Named_object
*
function
,
Enclosing_vars
*
,
Location
);
Expression
*
primary_expr
(
bool
may_be_sink
,
bool
may_be_composite_lit
,
bool
*
is_type_switch
);
bool
*
is_type_switch
,
bool
*
is_parenthesized
);
Expression
*
selector
(
Expression
*
,
bool
*
is_type_switch
);
Expression
*
index
(
Expression
*
);
Expression
*
call
(
Expression
*
);
Expression
*
expression
(
Precedence
,
bool
may_be_sink
,
bool
may_be_composite_lit
,
bool
*
is_type_switch
);
bool
may_be_composite_lit
,
bool
*
is_type_switch
,
bool
*
is_parenthesized
);
bool
expression_may_start_here
();
Expression
*
unary_expr
(
bool
may_be_sink
,
bool
may_be_composite_lit
,
bool
*
is_type_switch
);
bool
*
is_type_switch
,
bool
*
is_parenthesized
);
Type
*
reassociate_chan_direction
(
Channel_type
*
,
Location
);
Expression
*
qualified_expr
(
Expression
*
,
Location
);
Expression
*
id_to_expression
(
const
std
::
string
&
,
Location
);
...
...
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