OSDN Git Service

* system.h (TEXT_SECTION): Poison.
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Jan 2004 10:51:39 +0000 (10:51 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Jan 2004 10:51:39 +0000 (10:51 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75797 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sh/sh.c
gcc/doc/tm.texi
gcc/system.h
gcc/varasm.c

index 39e9a8a..c4f3918 100644 (file)
@@ -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.
index 2c8c5b0..8159c5a 100644 (file)
@@ -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
index fa0e189..ea6741d 100644 (file)
@@ -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
index 5acbff7..82c44e8 100644 (file)
@@ -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  \
index 17d2d34..1efe097 100644 (file)
@@ -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
     }
 }