~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/cmd/6g/gsubr.c

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
        p->to.offset = to->loc;
99
99
}
100
100
 
 
101
Prog*
 
102
unpatch(Prog *p)
 
103
{
 
104
        Prog *q;
 
105
 
 
106
        if(p->to.type != D_BRANCH)
 
107
                fatal("unpatch: not a branch");
 
108
        q = p->to.branch;
 
109
        p->to.branch = P;
 
110
        p->to.offset = 0;
 
111
        return q;
 
112
}
 
113
 
101
114
/*
102
115
 * start a new Prog list.
103
116
 */