tree.h (variable_section): Delete.
authorRichard Sandiford <richard@codesourcery.com>
Wed, 22 Feb 2006 19:58:37 +0000 (19:58 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 22 Feb 2006 19:58:37 +0000 (19:58 +0000)
* tree.h (variable_section): Delete.
* varasm.c (variable_section): Delete.

From-SVN: r111369

gcc/ChangeLog
gcc/tree.h
gcc/varasm.c

index dc570fdb85f8bc3c239481c44ab58a4a85d89980..39d9c78b5ceb8acb05c8bf487dfda041a824c1ac 100644 (file)
@@ -1,3 +1,8 @@
+2006-02-22  Richard Sandiford  <richard@codesourcery.com>
+
+       * tree.h (variable_section): Delete.
+       * varasm.c (variable_section): Delete.
+
 2006-02-22  Paolo Bonzini  <bonzini@gnu.org>
 
        * install.texi: Add notes on install.texi2html.
index 61a1d470f44fdca214af66b617c70a13233ec355..76e76127a2bc895bcfbffa5249ffba68bd87cd61 100644 (file)
@@ -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);
index 4c957ba42fd60de31f7d055f975ffe652038f2f5..f07ed39c9944eabf8bcee5f925bd35bdfb463a17 100644 (file)
@@ -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 *