OSDN Git Service

2011-01-09 Kai Tietz <kai.tietz@onevision.com>
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Jan 2011 16:20:13 +0000 (16:20 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Jan 2011 16:20:13 +0000 (16:20 +0000)
        * config/i386/winnt.c (i386_pe_start_function): Make sure
        to switch back to function's section.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168615 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/winnt.c

index 0bb8b7e..e8b28ae 100644 (file)
@@ -1,3 +1,8 @@
+2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
+
+       * config/i386/winnt.c (i386_pe_start_function): Make sure
+       to switch back to function's section.
+
 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
 
        PR gcc/46902
index 098efa3..c413bb0 100644 (file)
@@ -1101,6 +1101,9 @@ i386_pe_start_function (FILE *f, const char *name, tree decl)
   i386_pe_maybe_record_exported_symbol (decl, name, 0);
   if (write_symbols != SDB_DEBUG)
     i386_pe_declare_function_type (f, name, TREE_PUBLIC (decl));
+  /* In case section was altered by debugging output.  */
+  if (decl != NULL_TREE)
+    switch_to_section (function_section (decl));
   ASM_OUTPUT_FUNCTION_LABEL (f, name, decl);
 }