r266573 - in /trunk/gcc/go/gofrontend: MERGE ex...

ian@gcc.gnu.org ian@gcc.gnu.org
Wed Nov 28 18:08:00 GMT 2018


Author: ian
Date: Wed Nov 28 18:08:21 2018
New Revision: 266573

URL: https://gcc.gnu.org/viewcvs?rev=266573&root=gcc&view=rev
Log:
    compiler: inline functions with assignments and return statements
    
    Support inlining functions that contain only assignments and return
    statements, with expressions of either constants or parameters.
    Functions that contain other kinds of statements or expressions are
    not yet inlined.  With this change, about 100 functions in the
    standard library are inlinable.
    
    Reviewed-on: https://go-review.googlesource.com/c/150073

Modified:
    trunk/gcc/go/gofrontend/MERGE
    trunk/gcc/go/gofrontend/expressions.cc
    trunk/gcc/go/gofrontend/expressions.h
    trunk/gcc/go/gofrontend/statements.cc
    trunk/gcc/go/gofrontend/statements.h



More information about the Gcc-cvs mailing list