diff options
| author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-07 13:56:31 +0000 |
|---|---|---|
| committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-07 13:56:31 +0000 |
| commit | 841b1537fb11e78a69cdca641be22997556b84e3 (patch) | |
| tree | 5e5f9dcae84d724e81e2c968ab36af25088fd3b9 | |
| parent | 2dbdc48e8810753a291818a65ae4c1bf116648af (diff) | |
| download | ppe42-gcc-841b1537fb11e78a69cdca641be22997556b84e3.tar.gz ppe42-gcc-841b1537fb11e78a69cdca641be22997556b84e3.zip | |
* varasm.c (assemble_variable): Fix setting of DECL_IN_TEXT_SECTION.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111805 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/varasm.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fcdd12b2d55..66eea015e1c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2006-03-07 Richard Sandiford <richard@codesourcery.com> + * varasm.c (assemble_variable): Fix setting of DECL_IN_TEXT_SECTION. + +2006-03-07 Richard Sandiford <richard@codesourcery.com> + * hooks.c (hook_bool_mode_rtx_true): New function. * hooks.h (hook_bool_mode_rtx_true): Declare. * toplev.c (compile_file): Call output_shared_constant_pool. diff --git a/gcc/varasm.c b/gcc/varasm.c index b01ad1dd067..2e109d91c87 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1818,7 +1818,7 @@ assemble_variable (tree decl, int top_level ATTRIBUTE_UNUSED, output_addressed_constants (DECL_INITIAL (decl)); /* dbxout.c needs to know this. */ - if (in_section && (in_section->common.flags & SECTION_CODE) != 0) + if (sect && (sect->common.flags & SECTION_CODE) != 0) DECL_IN_TEXT_SECTION (decl) = 1; /* If the decl is part of an object_block, make sure that the decl |

