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
476e904f
Commit
476e904f
authored
14 years ago
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix append with no extra arguments.
From-SVN: r168195
parent
8211d03c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
gcc/go/gofrontend/expressions.cc
+9
-3
No files found.
gcc/go/gofrontend/expressions.cc
View file @
476e904f
...
...
@@ -7926,10 +7926,16 @@ Builtin_call_expression::do_get_tree(Translate_context* context)
if
(
arg1_tree
==
error_mark_node
||
arg2_tree
==
error_mark_node
)
return
error_mark_node
;
Array_type
*
at2
=
arg2
->
type
()
->
array_type
();
arg2_tree
=
Expression
::
convert_for_assignment
(
context
,
at
,
arg2
->
type
(),
arg2_tree
,
location
);
if
(
arg2_tree
==
error_mark_node
)
return
error_mark_node
;
arg2_tree
=
save_expr
(
arg2_tree
);
tree
arg2_val
=
at
2
->
value_pointer_tree
(
gogo
,
arg2_tree
);
tree
arg2_len
=
at
2
->
length_tree
(
gogo
,
arg2_tree
);
tree
arg2_val
=
at
->
value_pointer_tree
(
gogo
,
arg2_tree
);
tree
arg2_len
=
at
->
length_tree
(
gogo
,
arg2_tree
);
if
(
arg2_val
==
error_mark_node
||
arg2_len
==
error_mark_node
)
return
error_mark_node
;
arg2_val
=
fold_convert_loc
(
location
,
ptr_type_node
,
arg2_val
);
...
...
This diff is collapsed.
Click to expand it.
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