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

Issue 8174047: code review 8174047: cmd/gc: do not reuse bool temporaries for composite equ... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by remyoudompheng
Modified:
12 years ago
Reviewers:
DMorsing
CC:
golang-dev, DMorsing
Visibility:
Public.

Description

cmd/gc: do not reuse bool temporaries for composite equality. Reusing it when multiple comparisons occurred in the same function call led to bad overwriting. Fixes issue 5162.

Patch Set 1 #

Patch Set 2 : diff -r 833bf2ef1527 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 833bf2ef1527 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 833bf2ef1527 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 5 : diff -r 42b888d568d9 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 61d4b778498f https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -5 lines) Patch
M src/cmd/gc/walk.c View 1 2 3 4 1 chunk +13 lines, -5 lines 0 comments Download
A test/fixedbugs/issue5162.go View 1 1 chunk +88 lines, -0 lines 0 comments Download

Messages

Total messages: 7
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years ago (2013-03-31 09:21:00 UTC) #1
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years ago (2013-03-31 09:21:13 UTC) #2
DMorsing
You can do this without bloating the stack frame. If you make a temporary for ...
12 years ago (2013-03-31 10:16:00 UTC) #3
remyoudompheng
2013/3/31 <daniel.morsing@gmail.com>: > You can do this without bloating the stack frame. If you make ...
12 years ago (2013-03-31 10:25:49 UTC) #4
remyoudompheng
Hello golang-dev@googlegroups.com, daniel.morsing@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years ago (2013-03-31 19:33:17 UTC) #5
DMorsing
LGTM
12 years ago (2013-03-31 19:40:14 UTC) #6
remyoudompheng
12 years ago (2013-04-01 19:02:19 UTC) #7
*** Submitted as https://code.google.com/p/go/source/detail?r=33176241a02b ***

cmd/gc: do not reuse bool temporaries for composite equality.

Reusing it when multiple comparisons occurred in the same
function call led to bad overwriting.

Fixes issue 5162.

R=golang-dev, daniel.morsing
CC=golang-dev
https://codereview.appspot.com/8174047
Sign in to reply to this message.

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