aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-07-19 23:10:55 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-07-19 23:10:55 +0000
commitaa4d56e2ce1d89599654d33051486cb58aadbc2e (patch)
treeafb15aed0fb2e6dea6137505fac6a2629ff0aa19 /gcc/omp-low.c
parentc35504626ec008d97b61e4bda17038333d51a8f2 (diff)
downloadgcc-aa4d56e2ce1d89599654d33051486cb58aadbc2e.zip
gcc-aa4d56e2ce1d89599654d33051486cb58aadbc2e.tar.gz
gcc-aa4d56e2ce1d89599654d33051486cb58aadbc2e.tar.bz2
compiler: don't export bodies for functions marked "go:noinline"
The current Mark_inline_candidates helper looks only at budget when deciding to mark a function or method as inline (with the proviso that IR constructs not yet supported by the inliner are given artificially high cost). This patch changes the helper to also look at whether a function has the "go:noinline" pragma; if it does have the pragma there is no point putting it into the export data (it will just make the export data bigger). Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/186923 From-SVN: r273611
Diffstat (limited to 'gcc/omp-low.c')
0 files changed, 0 insertions, 0 deletions