From: Kai Tietz Date: Tue, 5 Mar 2013 17:59:38 +0000 (+0100) Subject: sdbout.c (sdbout_one_type): Switch to current function's section supporting cold... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=731aeface49a81a4bb3dd134d215f6f0b02be672;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0a5f843acb0..2be47af74ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-03-05 Kai Tietz + + * sdbout.c (sdbout_one_type): Switch to current function's section + supporting cold/hot. + 2013-03-05 David Holsgrove * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian, diff --git a/gcc/sdbout.c b/gcc/sdbout.c index ef513ec7e54..13c11c29682 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)) {