aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-01-13 10:51:39 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-01-13 10:51:39 +0000
commit0fe7abcc1ec575e19311f05dbdd650a95be27e23 (patch)
tree9be81a1c7333bfbec4fb3603f2f641dbbc0a711c
parentb85ea57f63da4cfd0a5705ea7b0682b22b58d1d5 (diff)
downloadgcc-0fe7abcc1ec575e19311f05dbdd650a95be27e23.zip
gcc-0fe7abcc1ec575e19311f05dbdd650a95be27e23.tar.gz
gcc-0fe7abcc1ec575e19311f05dbdd650a95be27e23.tar.bz2
system.h (TEXT_SECTION): Poison.
* system.h (TEXT_SECTION): Poison. * varasm.c (text_section): Don't use TEXT_SECTION. * config/sh/sh.c (sh_file_start): Fix a comment typo. * doc/tm.texi (TEXT_SECTION): Remove. From-SVN: r75797
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/sh/sh.c2
-rw-r--r--gcc/doc/tm.texi7
-rw-r--r--gcc/system.h2
-rw-r--r--gcc/varasm.c4
5 files changed, 9 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 39e9a8a..c4f3918 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
+
+ * system.h (TEXT_SECTION): Poison.
+ * varasm.c (text_section): Don't use TEXT_SECTION.
+ * config/sh/sh.c (sh_file_start): Fix a comment typo.
+ * doc/tm.texi (TEXT_SECTION): Remove.
+
2004-01-13 Ben Elliston <bje@wasabisystems.com>
* doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index 2c8c5b0..8159c5a 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -1336,7 +1336,7 @@ sh_file_start (void)
if (TARGET_ELF)
/* We need to show the text section with the proper
attributes as in TEXT_SECTION_ASM_OP, before dwarf2out
- emits it without attributes in TEXT_SECTION, else GAS
+ emits it without attributes in TEXT_SECTION_ASM_OP, else GAS
will complain. We can teach GAS specifically about the
default attributes for our choice of text section, but
then we would have to change GAS again if/when we change
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index fa0e189..ea6741d 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -5736,13 +5736,6 @@ assembler operation that should precede instructions and read-only data.
Normally @code{"\t.text"} is right.
@end defmac
-@defmac TEXT_SECTION
-A C statement that switches to the default section containing instructions.
-Normally this is not needed, as simply defining @code{TEXT_SECTION_ASM_OP}
-is enough. The MIPS port uses this to sort all functions after all data
-declarations.
-@end defmac
-
@defmac HOT_TEXT_SECTION_NAME
If defined, a C string constant for the name of the section containing most
frequently executed functions of the program. If not defined, GCC will provide
diff --git a/gcc/system.h b/gcc/system.h
index 5acbff7..82c44e8 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -622,7 +622,7 @@ typedef char _Bool;
LIBGCC_NEEDS_DOUBLE FINAL_PRESCAN_LABEL DEFAULT_CALLER_SAVES \
LOAD_ARGS_REVERSED MAX_INTEGER_COMPUTATION_MODE \
CONVERT_HARD_REGISTER_TO_SSA_P ASM_OUTPUT_MAIN_SOURCE_FILENAME \
- FIRST_INSN_ADDRESS
+ FIRST_INSN_ADDRESS TEXT_SECTION
/* Hooks that are no longer used. */
#pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 17d2d34..1efe097 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -234,11 +234,7 @@ text_section (void)
if (in_section != in_text)
{
in_section = in_text;
-#ifdef TEXT_SECTION
- TEXT_SECTION ();
-#else
fprintf (asm_out_file, "%s\n", TEXT_SECTION_ASM_OP);
-#endif
}
}