Hello,

this patch fixes a regression in gcc.dg/debug/tls-1.c testcase for -gcoff<n>.

ChangeLog

2013-03-05  Kai Tietz  <kti...@redhat.com>

        * sdbout.c (sdbout_one_type): Switch to current function's section
        supporting cold/hot.

Tested for x86_64-w64-mingw32.  Ok for apply?

Index: sdbout.c
===================================================================
--- sdbout.c    (Revision 196451)
+++ sdbout.c    (Arbeitskopie)
@@ -1017,7 +1017,7 @@ sdbout_one_type (tree type)
       && DECL_SECTION_NAME (current_function_decl) != NULL_TREE)
     ; /* Don't change section amid function.  */
   else
-    switch_to_section (text_section);
+    switch_to_section (current_function_section ());

   switch (TREE_CODE (type))
     {

Reply via email to