[LLVMbugs] [Bug 182] [llvmgcc] C front-end does not compile "extern inline" into linkonce

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jan 8 08:56:25 PST 2004


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=182

sabre at nondot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From sabre at 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.



More information about the llvm-bugs mailing list