diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2011-01-09 16:20:13 +0000 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2011-01-09 17:20:13 +0100 |
commit | 1ba6516f4c9c153b546e5e83bdfc6a10b92620b4 (patch) | |
tree | a6be0922051b814dfdb10bae7930b861af59d346 /gcc | |
parent | 32df61aee46663b8813d3e620d947c24b9f6d634 (diff) | |
download | gcc-1ba6516f4c9c153b546e5e83bdfc6a10b92620b4.zip gcc-1ba6516f4c9c153b546e5e83bdfc6a10b92620b4.tar.gz gcc-1ba6516f4c9c153b546e5e83bdfc6a10b92620b4.tar.bz2 |
winnt.c (i386_pe_start_function): Make sure to switch back to function's section.
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.
From-SVN: r168615
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/winnt.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0bb8b7e..e8b28ae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c index 098efa3..c413bb0 100644 --- a/gcc/config/i386/winnt.c +++ b/gcc/config/i386/winnt.c @@ -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); } |