summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-10 00:22:11 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-10 00:22:11 +0000
commit5dd7e24d702990674ea5e56bd059bcb8f9520d3b (patch)
treecea5285063abb408a364b1d36c60e165b2e9fc15 /gcc
parent2943ce06ec3e9fad4753d65f4663c58f1dc69f88 (diff)
downloadgcc-5dd7e24d702990674ea5e56bd059bcb8f9520d3b.tar.gz
* output.h (init_section, fini_section): Delete.
* varasm.c (init_section, fini_section): Delete. (init_varasm_once): Don't initialize them. * doc/tm.texi (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Say that there are no corresponding varasm.c variables. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108338 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/doc/tm.texi6
-rw-r--r--gcc/output.h2
-rw-r--r--gcc/varasm.c12
4 files changed, 12 insertions, 16 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f6218980471..1d83c906d44 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,13 @@
2005-12-10 Richard Sandiford <richard@codesourcery.com>
+ * output.h (init_section, fini_section): Delete.
+ * varasm.c (init_section, fini_section): Delete.
+ (init_varasm_once): Don't initialize them.
+ * doc/tm.texi (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Say that
+ there are no corresponding varasm.c variables.
+
+2005-12-10 Richard Sandiford <richard@codesourcery.com>
+
* dwarf2out.c (default_eh_frame_section): Delete, moving handling
of EH_FRAME_SECTION_NAME into...
(switch_to_eh_frame_section): ...here. Try to set eh_frame_section
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 53f405b7862..64a1a22f9cb 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -5994,14 +5994,16 @@ uninitialized, writable small data.
If defined, a C expression whose value is a string, including spacing,
containing the assembler operation to identify the following data as
initialization code. If not defined, GCC will assume such a section does
-not exist.
+not exist. This section has no corresponding @code{init_section}
+variable; it is used entirely in runtime code.
@end defmac
@defmac FINI_SECTION_ASM_OP
If defined, a C expression whose value is a string, including spacing,
containing the assembler operation to identify the following data as
finalization code. If not defined, GCC will assume such a section does
-not exist.
+not exist. This section has no corresponding @code{fini_section}
+variable; it is used entirely in runtime code.
@end defmac
@defmac INIT_ARRAY_SECTION_ASM_OP
diff --git a/gcc/output.h b/gcc/output.h
index 5ea0faaf8ae..c61edce4b56 100644
--- a/gcc/output.h
+++ b/gcc/output.h
@@ -495,8 +495,6 @@ extern GTY(()) section *ctors_section;
extern GTY(()) section *dtors_section;
extern GTY(()) section *bss_section;
extern GTY(()) section *sbss_section;
-extern GTY(()) section *init_section;
-extern GTY(()) section *fini_section;
extern GTY(()) section *exception_section;
extern GTY(()) section *eh_frame_section;
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 244d6d8dfc4..fe5231476f0 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -152,8 +152,6 @@ section *ctors_section;
section *dtors_section;
section *bss_section;
section *sbss_section;
-section *init_section;
-section *fini_section;
/* The section that holds the main exception table, when known. The section
is set either by the target's init_sections hook or by the first call to
@@ -4857,16 +4855,6 @@ init_varasm_once (void)
SBSS_SECTION_ASM_OP);
#endif
-#ifdef INIT_SECTION_ASM_OP
- init_section = get_unnamed_section (SECTION_CODE, output_section_asm_op,
- INIT_SECTION_ASM_OP);
-#endif
-
-#ifdef FINI_SECTION_ASM_OP
- fini_section = get_unnamed_section (SECTION_CODE, output_section_asm_op,
- FINI_SECTION_ASM_OP);
-#endif
-
targetm.asm_out.init_sections ();
if (readonly_data_section == NULL)