From 6410fb814b1aa1d01aa99919769f9079b2773c4e Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Tue, 7 Mar 2006 13:56:31 +0000 Subject: * varasm.c (assemble_variable): Fix setting of DECL_IN_TEXT_SECTION. From-SVN: r111805 --- gcc/ChangeLog | 4 ++++ gcc/varasm.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fcdd12b..66eea01 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2006-03-07 Richard Sandiford + * varasm.c (assemble_variable): Fix setting of DECL_IN_TEXT_SECTION. + +2006-03-07 Richard Sandiford + * 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 b01ad1d..2e109d9 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 -- cgit v1.1