varasm.c (assemble_variable): Remove call to lang_hooks.decls.prepare_assemble_variable.
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Sun, 8 Apr 2007 19:30:06 +0000 (19:30 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 8 Apr 2007 19:30:06 +0000 (12:30 -0700)
2007-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        * varasm.c (assemble_variable): Remove call to
        lang_hooks.decls.prepare_assemble_variable.
        * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
        (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
        * langhooks.h (lang_hooks_for_decls): Remove
        prepare_assemble_variable.

From-SVN: r123663

gcc/ChangeLog
gcc/langhooks-def.h
gcc/langhooks.h
gcc/varasm.c

index 64590ae..16cdc68 100644 (file)
@@ -1,3 +1,12 @@
+2007-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       * varasm.c (assemble_variable): Remove call to
+       lang_hooks.decls.prepare_assemble_variable.
+       * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
+       (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
+       * langhooks.h (lang_hooks_for_decls): Remove
+       prepare_assemble_variable.
+
 2007-04-08  Mike Stump  <mrs@apple.com>
 
        * config/i386/i386.c: Use inc/dec on Core2.
index d6d6b33..7a98a8a 100644 (file)
@@ -228,7 +228,6 @@ extern tree lhd_make_node (enum tree_code);
 #define LANG_HOOKS_GETDECLS    getdecls
 #define LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL lhd_warn_unused_global_decl
 #define LANG_HOOKS_WRITE_GLOBALS write_global_declarations
-#define LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE NULL
 #define LANG_HOOKS_DECL_OK_FOR_SIBCALL lhd_decl_ok_for_sibcall
 #define LANG_HOOKS_COMDAT_GROUP lhd_comdat_group
 #define LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE hook_bool_tree_false
@@ -247,7 +246,6 @@ extern tree lhd_make_node (enum tree_code);
   LANG_HOOKS_GETDECLS, \
   LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL, \
   LANG_HOOKS_WRITE_GLOBALS, \
-  LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE, \
   LANG_HOOKS_DECL_OK_FOR_SIBCALL, \
   LANG_HOOKS_COMDAT_GROUP, \
   LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE, \
index 3906695..f7aae18 100644 (file)
@@ -180,9 +180,6 @@ struct lang_hooks_for_decls
      of compilation */
   void (*final_write_globals) (void);
 
-  /* Do necessary preparations before assemble_variable can proceed.  */
-  void (*prepare_assemble_variable) (tree);
-
   /* True if this decl may be called via a sibcall.  */
   bool (*ok_for_sibcall) (tree);
 
index 1adc492..f8ce726 100644 (file)
@@ -2022,9 +2022,6 @@ assemble_variable (tree decl, int top_level ATTRIBUTE_UNUSED,
       decl = to;
     }
 
-  if (lang_hooks.decls.prepare_assemble_variable)
-    lang_hooks.decls.prepare_assemble_variable (decl);
-
   last_assemble_variable_decl = 0;
 
   /* Normally no need to say anything here for external references,