[Bug go/46986] Go is not supported on Darwin

2012-02-18 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #35 from Anders F Björklund 2012-02-18 14:15:28 UTC --- At least it compiles again, after adding asm prefix and ptrace/sysctl... Hacked it in for now, but needs a better patch for runtime and syscall. Still fails to actually run, but

[Bug go/46986] Go is not supported on Darwin

2012-02-18 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #34 from Anders F Björklund 2012-02-18 14:08:26 UTC --- There is the other big change needed, which is to prefix all the asm names with USER_LABEL_PREFIX (_) so that they will actually link properly later.

[Bug go/46986] Go is not supported on Darwin

2012-02-18 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #33 from Anders F Björklund 2012-02-18 14:07:03 UTC --- Created attachment 26699 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26699 gcc-darwin_libgo.patch

[Bug go/46986] Go is not supported on Darwin

2012-02-16 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #29 from Anders F Björklund 2012-02-16 19:21:45 UTC --- It still needs to generate the extra underscore for Darwin, and it still needs to fix the bug mentioned in Comment #12.

[Bug go/46986] Go is not supported on Darwin

2012-02-16 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #30 from Anders F Björklund 2012-02-16 19:22:25 UTC --- Created attachment 26682 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26682 gcc-gox_import.diff

[Bug go/46986] Go is not supported on Darwin

2012-02-16 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #31 from Anders F Björklund 2012-02-16 19:22:52 UTC --- Created attachment 26683 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26683 gcc-darwin_goc2c.patch

[Bug go/46986] Go is not supported on Darwin

2012-02-16 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #32 from Anders F Björklund 2012-02-16 19:28:22 UTC --- Then it's more about fixing library issues, like the macros used for TIOCNOTTY/TIOCSCTTY or st_atime/st_mtime/st_ctime and sysctl.

[Bug go/46986] Go is not supported on Darwin

2012-02-15 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #20 from Anders F Björklund 2012-02-15 22:10:09 UTC --- Created attachment 26668 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26668 updated patch for trunk

[Bug go/46986] Go is not supported on Darwin

2012-02-15 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #21 from Anders F Björklund 2012-02-15 22:12:24 UTC --- Created attachment 26669 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26669 gcc-go_export.diff Need to give both segment and section for export on Darwin: /var/folders/S

[Bug go/46986] Go is not supported on Darwin

2012-02-15 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #22 from Anders F Björklund 2012-02-15 22:16:41 UTC --- Created attachment 26670 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26670 gcc-ucontext.diff ucontext is deprecated on Mac OS X 10.5-10.6, including ucontext.h gives err

[Bug go/46986] Go is not supported on Darwin

2012-02-15 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #19 from Anders F Björklund 2012-02-15 22:08:59 UTC --- (In reply to comment #17) > I think that now the only thing which will need to change in the Go frontend > proper is using otool instead of objcopy in libgo/Makefile.am. The oto

[Bug go/46986] Go is not supported on Darwin

2011-09-05 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 Anders F Björklund changed: What|Removed |Added Attachment #25177|0 |1 is obsolete|

[Bug go/46986] Go is not supported on Darwin

2011-09-04 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #15 from Anders F Björklund 2011-09-04 18:14:48 UTC --- The whole patch is Darwin-centric, in that it's only applied on Darwin. You are right that it first needs to be conditionalized to go upstream. afaik, $(OTOOL) would be somethin

[Bug go/46986] Go is not supported on Darwin

2011-09-02 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #13 from Anders F Björklund 2011-09-02 11:10:51 UTC --- Created attachment 25177 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25177 import-export.diff Just the import/export changes, i.e. outside "libgo" directory.

[Bug go/46986] Go is not supported on Darwin

2011-09-02 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #12 from Anders F Björklund 2011-09-02 11:07:33 UTC --- > It doesn't include the objcopy header, > but I believe that is skipped anyway ? Or at least it was *supposed* to ignore it, but the Stream_from_file was horribly buggy. (appar

[Bug go/46986] Go is not supported on Darwin

2011-09-02 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #11 from Anders F Björklund 2011-09-02 09:06:25 UTC --- > OTOOL=${OTOOL:-otool} > $OTOOL -s __GNU_GO __go_export $1 | > grep -v "^$1:" | grep -v "Contents of (__GNU_GO,__go_export) section" | > cut -f 2- | tr -d ' ' | xxd -r -p - $2

[Bug go/46986] Go is not supported on Darwin

2011-09-02 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #10 from Anders F Björklund 2011-09-02 08:45:22 UTC --- Here's my attempt at a native version. (of that "gox-extract" shell script) Instead of the default variant: OBJCOPY=${OBJCOPY:-objcopy} $OBJCOPY -j .go_export $1 $2 The Darwin

[Bug go/46986] Go is not supported on Darwin

2011-09-01 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #9 from Anders F Björklund 2011-09-02 06:40:28 UTC --- (In reply to comment #8) > > hello world tests OK on Snow Leopard, with patch > > This patch fails on darwin11 when applied to gcc-4_6-branch... Seems like the patch worked (= d

[Bug go/46986] Go is not supported on Darwin

2011-09-01 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 Anders F Björklund changed: What|Removed |Added CC||afb at users dot

[Bug go/46986] Go is not supported on Darwin

2011-09-01 Thread afb at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 --- Comment #6 from Anders F Björklund 2011-09-01 18:09:02 UTC --- Created attachment 25168 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25168 updated patch for 4.6.1 hello world tests OK on Snow Leopard, with patch