aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2000-11-11 18:50:20 -0500
committerJason Merrill <jason@gcc.gnu.org>2000-11-11 18:50:20 -0500
commit492cca24891e2927d0604e2297ab228950d889a6 (patch)
tree41016f949c7ab976f805d5285478ff31b3f885d3 /gcc/cp/decl.c
parent8ee322c99319bb283d6bd298a469482d9eed7004 (diff)
downloadgcc-492cca24891e2927d0604e2297ab228950d889a6.zip
gcc-492cca24891e2927d0604e2297ab228950d889a6.tar.gz
gcc-492cca24891e2927d0604e2297ab228950d889a6.tar.bz2
decl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics in inlines.
* decl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics in inlines. From-SVN: r37394
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index d23ef2f..0d677fe 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -7655,6 +7655,7 @@ maybe_commonize_var (decl)
inlining of such functions. */
current_function_cannot_inline
= "function with static variable cannot be inline";
+ DECL_UNINLINABLE (current_function_decl) = 1;
/* If flag_weak, we don't need to mess with this, as we can just
make the function weak, and let it refer to its unique local