aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-alias.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-06-03 23:04:23 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-06-03 23:04:23 +0000
commit3e6f8fe1bc4c60859113bca7970b0b8db56eb442 (patch)
tree1686da7767547bc1f870d738b861f924b8e50645 /gcc/tree-ssa-alias.c
parenta920eb0cb08da30f4d7d4345f42067fdf8ce7b9b (diff)
downloadgcc-3e6f8fe1bc4c60859113bca7970b0b8db56eb442.zip
gcc-3e6f8fe1bc4c60859113bca7970b0b8db56eb442.tar.gz
gcc-3e6f8fe1bc4c60859113bca7970b0b8db56eb442.tar.bz2
compiler: permit inlining references to global variables
This requires tracking all references to unexported variables, so that we can make them global symbols in the object file, and can export them so that other compilations can see the right definition for their own inline bodies. This introduces a syntax for referencing names defined in other packages: a <pNN> prefix, where NN is the package index. This will need to be added to gccgoimporter, but I didn't do it yet since it isn't yet possible to create an object for which gccgoimporter will see a <pNN> prefix. This increases the number of inlinable functions in the standard library from 181 to 215, adding functions like context.Background. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/177920 From-SVN: r271891
Diffstat (limited to 'gcc/tree-ssa-alias.c')
0 files changed, 0 insertions, 0 deletions