This fixes PR1085 on ELF systems, darwin doesn't suffer from this problem.

Testcase here: Regression/C++Frontend/2007-01-06-ELF-Thunk-Sections.cpp

Index: method.c
===================================================================
--- method.c    (revision 122081)
+++ method.c    (working copy)
@@ -390,6 +390,12 @@
   push_to_top_level ();
 
   if (TARGET_USE_LOCAL_THUNK_ALIAS_P (function)
+      /* APPLE LOCAL begin LLVM */
+      /* PR1085 */
+#ifndef ENABLE_LLVM
+      && 0
+#endif
+      /* APPLE LOCAL end LLVM */
       && targetm.have_named_sections)
     {
       resolve_unique_section (function, 0, flag_function_sections);

-Chris
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to