Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(493)

Issue 191970043: code review 191970043: compiler: Don't construct arrays of zero-sized values.

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 6 months ago by cmang
Modified:
9 years, 6 months ago
Reviewers:
iant
CC:
gofrontend-dev_googlegroups.com
Visibility:
Public.

Description

compiler: Don't construct arrays of zero-sized values. Fixes gcc.gnu.org/PR61265.

Patch Set 1 #

Patch Set 2 : diff -r 47792391c17a https://code.google.com/p/gofrontend #

Patch Set 3 : diff -r 47792391c17a https://code.google.com/p/gofrontend #

Total comments: 2

Patch Set 4 : code review 191970043: compiler: Don't construct arrays of zero-sized values. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+-1 lines, --1 lines) Patch
~rietveld~placeholder~ View 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 4
cmang
Hello iant@golang.org (cc: gofrontend-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/gofrontend
9 years, 6 months ago (2014-12-17 22:00:03 UTC) #1
iant
https://codereview.appspot.com/191970043/diff/40001/go/expressions.cc File go/expressions.cc (right): https://codereview.appspot.com/191970043/diff/40001/go/expressions.cc#newcode12203 go/expressions.cc:12203: (*pv)->get_backend(context); You aren't storing this anywhere, so it won't ...
9 years, 6 months ago (2014-12-19 04:07:25 UTC) #2
cmang
PTAL, this is the patch for gcc/go/go-gcc.cc that implements this: Index: gcc/go/go-gcc.cc ====================================================================== --- a/gcc/go/go-gcc.cc ...
9 years, 6 months ago (2014-12-19 15:21:22 UTC) #3
iant
9 years, 6 months ago (2014-12-19 20:18:04 UTC) #4
On Fri, Dec 19, 2014 at 7:21 AM,  <cmang@golang.org> wrote:
>
> PTAL, this is the patch for gcc/go/go-gcc.cc that implements this:

Thanks.  I adjusted the patch to use int_size_in_bytes and
append_to_statement_list, as appended.  Bootstrapped and ran Go
testsuite on x86_64-unknown-linux-gnu.  Committed to mainline.

Ian


2014-12-19  Chris Manghane  <cmang@google.com>

	* go-gcc.cc (array_constructor_expression): Don't construct arrays
	of zero-sized values.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b