diff options
author | Jing Yu <jingyu@google.com> | 2009-03-17 20:18:21 +0000 |
---|---|---|
committer | Doug Kwan <dougkwan@gcc.gnu.org> | 2009-03-17 20:18:21 +0000 |
commit | 3c072c6ba27f5f8c18688bd3816523ee8b2e7e16 (patch) | |
tree | 71b7bedfc8e8e84e9cc8bc7754c2684db939a9fe /gcc/varasm.c | |
parent | 9ade279bf6d2c79adaf3ffbcafeeed2712eed7d8 (diff) | |
download | gcc-3c072c6ba27f5f8c18688bd3816523ee8b2e7e16.zip gcc-3c072c6ba27f5f8c18688bd3816523ee8b2e7e16.tar.gz gcc-3c072c6ba27f5f8c18688bd3816523ee8b2e7e16.tar.bz2 |
re PR middle-end/39378 (Multiple inheritence thunk not working with -mthumb)
2009-03-12 Jing Yu <jingyu@google.com>
PR middle-end/39378
* function.h: Move is_thunk from rtl_data structure to function
structure.
* cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
* varasm.c (assemble_start_function): Change is_thunk from crtl to
cfun.
* config/alpha/alpha.c: Change is_thunk from crtl to cfun.
* config/rs6000/rs6000.c: Change is_thunk from crtl to cfun.
* config/arm/arm.h: Change is_thunk from crtl to cfun.
* testsuite/g++.dg/inherit/thunk10.C: New file.
Patch submitted by Doug Kwan <dougkwan@google.com>
From-SVN: r144918
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index c724fcd..e5b9f35 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1677,7 +1677,7 @@ assemble_start_function (tree decl, const char *fnname) /* When the function starts with a cold section, we need to explicitly align the hot section and write out the hot section label. But if the current function is a thunk, we do not have a CFG. */ - if (!crtl->is_thunk + if (!cfun->is_thunk && BB_PARTITION (ENTRY_BLOCK_PTR->next_bb) == BB_COLD_PARTITION) { switch_to_section (text_section); |