From e8dad6f060483d690785ae954f1d9a1e2e60f914 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 22 Feb 2006 19:58:37 +0000 Subject: tree.h (variable_section): Delete. * tree.h (variable_section): Delete. * varasm.c (variable_section): Delete. From-SVN: r111369 --- gcc/ChangeLog | 5 +++++ gcc/tree.h | 1 - gcc/varasm.c | 13 ------------- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dc570fd..39d9c78 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-02-22 Richard Sandiford + + * tree.h (variable_section): Delete. + * varasm.c (variable_section): Delete. + 2006-02-22 Paolo Bonzini * install.texi: Add notes on install.texi2html. diff --git a/gcc/tree.h b/gcc/tree.h index 61a1d47..76e7612 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -4381,7 +4381,6 @@ extern unsigned int update_alignment_for_field (record_layout_info, tree, extern void make_decl_rtl (tree); extern void make_decl_one_only (tree); extern int supports_one_only (void); -extern void variable_section (tree, int); extern void resolve_unique_section (tree, int, int); extern void mark_referenced (tree); extern void mark_decl_referenced (tree); diff --git a/gcc/varasm.c b/gcc/varasm.c index 4c957ba..f07ed39 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -620,19 +620,6 @@ default_no_function_rodata_section (tree decl ATTRIBUTE_UNUSED) return readonly_data_section; } -/* Switch to section for variable DECL. RELOC is the same as the - argument to SELECT_SECTION. */ - -void -variable_section (tree decl, int reloc) -{ - if (IN_NAMED_SECTION (decl)) - switch_to_section (get_named_section (decl, NULL, reloc)); - else - switch_to_section (targetm.asm_out.select_section (decl, reloc, - DECL_ALIGN (decl))); -} - /* Return the section to use for string merging. */ static section * -- cgit v1.1