aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/406-dlang-fix-interface-visibility.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/gcc/406-dlang-fix-interface-visibility.patch')
-rw-r--r--main/gcc/406-dlang-fix-interface-visibility.patch22
1 files changed, 0 insertions, 22 deletions
diff --git a/main/gcc/406-dlang-fix-interface-visibility.patch b/main/gcc/406-dlang-fix-interface-visibility.patch
deleted file mode 100644
index b4d690e0153..00000000000
--- a/main/gcc/406-dlang-fix-interface-visibility.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-Upstream: Yes, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92216 and
-https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95184
-Reason: GDC produced errors about duplicate symbols when the same interface
-was implemented by two classes in the same project.
-diff --git a/gcc/d/decl.cc b/gcc/d/decl.cc
-index 3824060..7afb1aa 100644 (file)
---- a/gcc/d/decl.cc
-+++ b/gcc/d/decl.cc
-@@ -1803,8 +1803,11 @@ make_thunk (FuncDeclaration *decl, int offset)
-
- DECL_CONTEXT (thunk) = d_decl_context (decl);
-
-- /* Thunks inherit the public access of the function they are targetting. */
-- TREE_PUBLIC (thunk) = TREE_PUBLIC (function);
-+ /* Thunks inherit the public access of the function they are targetting.
-+ When the function is outside the current compilation unit however, then the
-+ thunk must be kept private to not conflict. */
-+ TREE_PUBLIC (thunk) = TREE_PUBLIC (function) && !DECL_EXTERNAL (function);
-+
- DECL_EXTERNAL (thunk) = 0;
-
- /* Thunks are always addressable. */