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

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

From-SVN: r196471
This commit is contained in:
Kai Tietz 2013-03-05 18:59:38 +01:00 committed by Kai Tietz
parent e34fd5a785
commit 731aeface4
2 changed files with 6 additions and 1 deletions

View 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,

View 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))
{