Commit 0fe7abcc by Kazu Hirata Committed by Kazu Hirata

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
parent b85ea57f
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> 2004-01-13 Ben Elliston <bje@wasabisystems.com>
* doc/rtl.texi (Vector Operations): Remove defunct vec_const item. * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
......
...@@ -1336,7 +1336,7 @@ sh_file_start (void) ...@@ -1336,7 +1336,7 @@ sh_file_start (void)
if (TARGET_ELF) if (TARGET_ELF)
/* We need to show the text section with the proper /* We need to show the text section with the proper
attributes as in TEXT_SECTION_ASM_OP, before dwarf2out 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 will complain. We can teach GAS specifically about the
default attributes for our choice of text section, but default attributes for our choice of text section, but
then we would have to change GAS again if/when we change then we would have to change GAS again if/when we change
......
...@@ -5736,13 +5736,6 @@ assembler operation that should precede instructions and read-only data. ...@@ -5736,13 +5736,6 @@ assembler operation that should precede instructions and read-only data.
Normally @code{"\t.text"} is right. Normally @code{"\t.text"} is right.
@end defmac @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 @defmac HOT_TEXT_SECTION_NAME
If defined, a C string constant for the name of the section containing most 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 frequently executed functions of the program. If not defined, GCC will provide
......
...@@ -622,7 +622,7 @@ typedef char _Bool; ...@@ -622,7 +622,7 @@ typedef char _Bool;
LIBGCC_NEEDS_DOUBLE FINAL_PRESCAN_LABEL DEFAULT_CALLER_SAVES \ LIBGCC_NEEDS_DOUBLE FINAL_PRESCAN_LABEL DEFAULT_CALLER_SAVES \
LOAD_ARGS_REVERSED MAX_INTEGER_COMPUTATION_MODE \ LOAD_ARGS_REVERSED MAX_INTEGER_COMPUTATION_MODE \
CONVERT_HARD_REGISTER_TO_SSA_P ASM_OUTPUT_MAIN_SOURCE_FILENAME \ 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. */ /* Hooks that are no longer used. */
#pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \ #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \
......
...@@ -234,11 +234,7 @@ text_section (void) ...@@ -234,11 +234,7 @@ text_section (void)
if (in_section != in_text) if (in_section != in_text)
{ {
in_section = in_text; in_section = in_text;
#ifdef TEXT_SECTION
TEXT_SECTION ();
#else
fprintf (asm_out_file, "%s\n", TEXT_SECTION_ASM_OP); fprintf (asm_out_file, "%s\n", TEXT_SECTION_ASM_OP);
#endif
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment