public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch sdbout]: Fix regression in sdbout.c
@ 2013-03-05 17:31 Kai Tietz
  2013-03-05 17:58 ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Kai Tietz @ 2013-03-05 17:31 UTC (permalink / raw)
  To: GCC Patches; +Cc: Richard Henderson

Hello,

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

ChangeLog

2013-03-05  Kai Tietz  <ktietz@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))
     {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch sdbout]: Fix regression in sdbout.c
  2013-03-05 17:31 [patch sdbout]: Fix regression in sdbout.c Kai Tietz
@ 2013-03-05 17:58 ` Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2013-03-05 17:58 UTC (permalink / raw)
  To: Kai Tietz; +Cc: GCC Patches

On 03/05/2013 09:31 AM, Kai Tietz wrote:
> 2013-03-05  Kai Tietz  <ktietz@redhat.com>
> 
> 	* sdbout.c (sdbout_one_type): Switch to current function's section
> 	supporting cold/hot.

Ok.


r~

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-05 17:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-05 17:31 [patch sdbout]: Fix regression in sdbout.c Kai Tietz
2013-03-05 17:58 ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).