Skip to content

Commit

Permalink
libgo: keep c0 and c1 out of runtime.inc
Browse files Browse the repository at this point in the history
    
    The constants named c0 and c1 turn up as macros in runtime.inc.  This
    reportedly breaks building on Solaris 11, where there is a system struct
    that has a field named c1.  The constants aren't needed by the runtime C
    code, so avoid the problem by grepping them out.
    
    Reviewed-on: https://go-review.googlesource.com/31730


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241432 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
ian committed Oct 21, 2016
1 parent 7021f6f commit 16c362c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gcc/go/gofrontend/MERGE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
9806c8a8e4e448eaf6810ff1acffa715745d2549
6d9929a1641b180e724c2fdcdd55f6a254f1dec0

The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
2 changes: 1 addition & 1 deletion libgo/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ runtime-go.lo:
runtime.inc: s-runtime-inc; @true
s-runtime-inc: runtime-go.lo Makefile
rm -f runtime.inc.tmp2
grep -v "#define _" runtime.inc.tmp > runtime.inc.tmp2
grep -v "#define _" runtime.inc.tmp | grep -v "#define c0 " | grep -v "#define c1 " > runtime.inc.tmp2
for pattern in '_G[a-z]' '_P[a-z]' _Max _Lock _Sig _Trace _MHeap _Num; do \
grep "#define $$pattern" runtime.inc.tmp >> runtime.inc.tmp2; \
done
Expand Down
2 changes: 1 addition & 1 deletion libgo/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3621,7 +3621,7 @@ runtime-go.lo:
runtime.inc: s-runtime-inc; @true
s-runtime-inc: runtime-go.lo Makefile
rm -f runtime.inc.tmp2
grep -v "#define _" runtime.inc.tmp > runtime.inc.tmp2
grep -v "#define _" runtime.inc.tmp | grep -v "#define c0 " | grep -v "#define c1 " > runtime.inc.tmp2
for pattern in '_G[a-z]' '_P[a-z]' _Max _Lock _Sig _Trace _MHeap _Num; do \
grep "#define $$pattern" runtime.inc.tmp >> runtime.inc.tmp2; \
done
Expand Down

0 comments on commit 16c362c

Please sign in to comment.