gcc/gcc/go/gofrontend
Ian Lance Taylor 00b2a30fd4 libgo: update to final Go 1.8 release
Along with the update this fixes a problem that was always present but
    only showed up with the new reflect test.  When a program used a
    **unsafe.Pointer and stored the value in an interface type, the
    generated type descriptor pointed to the GC data for *unsafe.Pointer.
    It did that by name, but we were not generating a variable with the
    right name.
    
    Reviewed-on: https://go-review.googlesource.com/37144

From-SVN: r245535
2017-02-17 15:43:39 +00:00
..
LICENSE
MERGE libgo: update to final Go 1.8 release 2017-02-17 15:43:39 +00:00
PATENTS
README
ast-dump.cc
ast-dump.h
backend.h
escape.cc libgo: update to Go 1.8 release candidate 1 2017-01-14 00:05:42 +00:00
escape.h
export.cc compiler: implement type aliases 2017-01-14 01:50:31 +00:00
export.h
expressions.cc compiler: let initializers hold addresses of fields 2017-01-27 15:08:23 +00:00
expressions.h compiler: let initializers hold addresses of fields 2017-01-27 15:08:23 +00:00
go-diagnostics.cc
go-diagnostics.h
go-dump.cc
go-dump.h
go-encode-id.cc
go-encode-id.h
go-linemap.h
go-optimize.cc
go-optimize.h
go-sha1.h
go.cc
gogo.cc compiler: improvements for type alias handling 2017-01-25 05:12:26 +00:00
gogo.h
import-archive.cc
import.cc compiler: implement type aliases 2017-01-14 01:50:31 +00:00
import.h
lex.cc
lex.h
operator.h
parse.cc compiler: implement type aliases 2017-01-14 01:50:31 +00:00
parse.h
runtime.cc
runtime.def libgo: update to Go 1.8 release candidate 1 2017-01-14 00:05:42 +00:00
runtime.h
statements.cc libgo: update to Go 1.8 release candidate 1 2017-01-14 00:05:42 +00:00
statements.h libgo: update to Go 1.8 release candidate 1 2017-01-14 00:05:42 +00:00
string-dump.h
types.cc re PR go/79037 (gccgo: Binaries crash with parforsetup: pos is not aligned on m68k) 2017-01-23 18:15:22 +00:00
types.h compiler: implement type aliases 2017-01-14 01:50:31 +00:00
unsafe.cc

README

See ../README.

The frontend is written in C++.

The frontend lexes and parses the input into an IR specific to this
frontend known as gogo.  It then runs a series of passes over the
code.

Finally it converts gogo to gcc's GENERIC.  A goal is to move the gcc
support code into a gcc-interface subdirectory.  The gcc code will be
put under the GPL.  The rest of the frontend will not include any gcc
header files.

Issues to be faced in this transition:

* Representation of source locations.
  + Currently the frontend uses gcc's source_location codes, using the
    interface in libcpp/line-map.h.

* Handling of error messages.
  + Currently the frontend uses gcc's error_at and warning_at
    functions.
  + Currently the frontend uses gcc's diagnostic formatter, using
    features such as %<%> for appropriate quoting.
  + Localization may be an issue.

This compiler works, but the code is a work in progress.  Notably, the
support for garbage collection is ineffective and needs a complete
rethinking.  The frontend pays little attention to its memory usage
and rarely frees any memory.  The code could use a general cleanup
which we have not had time to do.

Contributing
=============

To contribute patches to the files in this directory, please see
http://golang.org/doc/gccgo_contribute.html .

The master copy of these files is hosted at
http://code.google.com/p/gofrontend .  Changes to these files require
signing a Google contributor license agreement.  If you are the
copyright holder, you will need to agree to the individual contributor
license agreement at
http://code.google.com/legal/individual-cla-v1.0.html.  This agreement
can be completed online.

If your organization is the copyright holder, the organization will
need to agree to the corporate contributor license agreement at
http://code.google.com/legal/corporate-cla-v1.0.html.

If the copyright holder for your code has already completed the
agreement in connection with another Google open source project, it
does not need to be completed again.