[prev in list] [next in list] [prev in thread] [next in thread]
List: llvm-bugs
Subject: [LLVMbugs] [Bug 182] [llvmgcc] C front-end does not compile "extern inline" into linkonce
From: bugzilla-daemon () cs ! uiuc ! edu
Date: 2004-01-08 16:56:25
Message-ID: 200401081656.KAA31425 () zion ! cs ! uiuc ! edu
[Download RAW message or body]
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=182
sabre@nondot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
------- Additional Comments From sabre@nondot.org 2004-01-08 10:56 -------
Here's a fix:
$ diff -u llvm-expand.c~ llvm-expand.c
--- llvm-expand.c~ 2003-12-14 12:25:33.000000000 -0600
+++ llvm-expand.c 2004-01-08 10:53:45.000000000 -0600
@@ -6164,7 +6164,7 @@
if (!TREE_PUBLIC(subr) || lang_hooks.llvm_is_in_anon(subr))
Fn->Linkage = L_Internal;
else if (DECL_COMDAT(subr) ||
- /* Are these two necessary?? */
+ (DECL_DECLARED_INLINE_P(subr) && DECL_EXTERNAL(subr)) ||
(DECL_DECLARED_INLINE_P(subr) && DECL_ONE_ONLY(subr))) {
Fn->Linkage = L_LinkOnce;
} else if (DECL_WEAK(subr) || DECL_DECLARED_INLINE_P(subr) ||
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic