This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[basic-improvements] varasm.c: Remove unused functions.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 23 Sep 2002 07:34:01 -0400 (EDT)
- Subject: [basic-improvements] varasm.c: Remove unused functions.
Hi,
Attached is a patch to remove unused function.
Bootstrapped on i386-redhat-linux. OK to apply?
Kazu Hirata
2002-09-23 Kazu Hirata <kazu@cs.umass.edu>
* varasm.c (force_data_section): Remove.
(assemble_constant_align): Likewise.
* output.h: Remove corresponding prototypes.
Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.303.2.5
diff -u -r1.303.2.5 varasm.c
--- varasm.c 17 Sep 2002 22:58:49 -0000 1.303.2.5
+++ varasm.c 23 Sep 2002 10:48:06 -0000
@@ -257,16 +257,6 @@
}
}
-/* Tell assembler to ALWAYS switch to data section, in case
- it's not sure where it is. */
-
-void
-force_data_section ()
-{
- in_section = no_section;
- data_section ();
-}
-
/* Tell assembler to switch to read-only data section. This is normally
the text section. */
@@ -975,26 +965,6 @@
MEM_VOLATILE_P (DECL_RTL (var)) = 1;
}
-/* Output alignment directive to align for constant expression EXP. */
-
-void
-assemble_constant_align (exp)
- tree exp;
-{
- int align;
-
- /* Align the location counter as required by EXP's data type. */
- align = TYPE_ALIGN (TREE_TYPE (exp));
-#ifdef CONSTANT_ALIGNMENT
- align = CONSTANT_ALIGNMENT (exp, align);
-#endif
-
- if (align > BITS_PER_UNIT)
- {
- ASM_OUTPUT_ALIGN (asm_out_file, floor_log2 (align / BITS_PER_UNIT));
- }
-}
-
/* Output a string of literal assembler code
for an `asm' keyword used between functions. */
Index: output.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/output.h,v
retrieving revision 1.109.2.4
diff -u -r1.109.2.4 output.h
--- output.h 17 Sep 2002 22:58:45 -0000 1.109.2.4
+++ output.h 23 Sep 2002 10:48:02 -0000
@@ -151,9 +151,6 @@
/* Tell assembler to switch to data section. */
extern void data_section PARAMS ((void));
-/* Tell assembler to make sure its in the data section. */
-extern void force_data_section PARAMS ((void));
-
/* Tell assembler to switch to read-only data section. This is normally
the text section. */
extern void readonly_data_section PARAMS ((void));
@@ -243,9 +240,6 @@
/* Make the rtl for variable VAR be volatile.
Use this only for static variables. */
extern void make_var_volatile PARAMS ((tree));
-
-/* Output alignment directive to align for constant expression EXP. */
-extern void assemble_constant_align PARAMS ((tree));
extern void assemble_alias PARAMS ((tree, tree));