diff options
author | Kai Tietz <ktietz@redhat.com> | 2013-03-05 18:59:38 +0100 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2013-03-05 18:59:38 +0100 |
commit | 731aeface49a81a4bb3dd134d215f6f0b02be672 (patch) | |
tree | 3ce72c8ce9827768e72da477e2fd7b9d5746a0d1 /gcc | |
parent | e34fd5a785fb865a5984609e2974cbc5e04a0473 (diff) | |
download | gcc-731aeface49a81a4bb3dd134d215f6f0b02be672.zip gcc-731aeface49a81a4bb3dd134d215f6f0b02be672.tar.gz gcc-731aeface49a81a4bb3dd134d215f6f0b02be672.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/sdbout.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0a5f843..2be47af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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, diff --git a/gcc/sdbout.c b/gcc/sdbout.c index ef513ec..13c11c2 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -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)) { |