sdbout.c (sdbout_one_type): Switch to current function's section supporting cold...
authorKai Tietz <ktietz@redhat.com>
Tue, 5 Mar 2013 17:59:38 +0000 (18:59 +0100)
committerKai Tietz <ktietz@gcc.gnu.org>
Tue, 5 Mar 2013 17:59:38 +0000 (18:59 +0100)
* sdbout.c (sdbout_one_type): Switch to current function's section
supporting cold/hot.

From-SVN: r196471

gcc/ChangeLog
gcc/sdbout.c

index 0a5f843acb06c55bd6432feec121024641e0c97d..2be47af74ad9105459f5437146b4446f1123c0f1 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-05  Kai Tietz  <ktietz@redhat.com>
+
+       * sdbout.c (sdbout_one_type): Switch to current function's section
+       supporting cold/hot.
+
 2013-03-05  David Holsgrove <david.holsgrove@xilinx.com>
 
        * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
index ef513ec7e54386dcb5f727d57ffd6fc7d38672ec..13c11c296820307b09316de5c2a25654239ca2a9 100644 (file)
@@ -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))
     {