aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-04-11 06:21:05 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-04-10 23:21:05 -0700
commit3498229434bf8e8d7d7029eed3031377e6c8dd00 (patch)
treeab47828054759e24da4513df7c736dc1a32acd86 /gcc/varasm.c
parent0333e091f7ac72f1354ee14d2d2c219bb290e100 (diff)
downloadgcc-3498229434bf8e8d7d7029eed3031377e6c8dd00.zip
gcc-3498229434bf8e8d7d7029eed3031377e6c8dd00.tar.gz
gcc-3498229434bf8e8d7d7029eed3031377e6c8dd00.tar.bz2
varasm.c (text_section): Use TEXT_SECTION_ASM_OP and ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING...
2004-04-11 Andrew Pinski <pinskia@physics.uc.edu> * varasm.c (text_section): Use TEXT_SECTION_ASM_OP and ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING and NORMAL_TEXT_SECTION_NAME. (unlikely_text_section): Check targetm.have_named_sections instead of TARGET_ASM_NAMED_SECTION and use TEXT_SECTION_ASM_OP instead of SECTION_FORMAT_STRING. * config/mips/iris5.h (current_section_name): Add in_unlikely_executed_text case and move the abort into the switch. * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME): Remove. (NORMAL_TEXT_SECTION_NAME): Remove. (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove. (SECTION_FORMAT_STRING): Remove. * defaults.h (SECTION_FORMAT_STRING): Remove. * tm.texi (NORMAL_TEXT_SECTION_NAME): Remove. (SECTION_FORMAT_STRING): Remove. From-SVN: r80593
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index c35c9b7..780bba8 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -208,7 +208,8 @@ text_section (void)
if (in_section != in_text)
{
in_section = in_text;
- fprintf (asm_out_file, SECTION_FORMAT_STRING, NORMAL_TEXT_SECTION_NAME);
+ fprintf (asm_out_file, "%s\n", TEXT_SECTION_ASM_OP);
+ ASM_OUTPUT_ALIGN (asm_out_file, 2);
}
}
@@ -221,15 +222,15 @@ unlikely_text_section (void)
&& (in_section != in_named
|| strcmp (in_named_name, UNLIKELY_EXECUTED_TEXT_SECTION_NAME) != 0))
{
-#ifdef TARGET_ASM_NAMED_SECTION
-
- named_section (NULL_TREE, UNLIKELY_EXECUTED_TEXT_SECTION_NAME, 0);
+ if (targetm.have_named_sections)
+ named_section (NULL_TREE, UNLIKELY_EXECUTED_TEXT_SECTION_NAME, 0);
+ else
+ {
+ in_section = in_unlikely_executed_text;
+ fprintf (asm_out_file, "%s\n", TEXT_SECTION_ASM_OP);
+ ASM_OUTPUT_ALIGN (asm_out_file, 2);
+ }
-#else
- in_section = in_unlikely_executed_text;
- fprintf (asm_out_file, SECTION_FORMAT_STRING,
- UNLIKELY_EXECUTED_TEXT_SECTION_NAME);
-#endif /* ifdef TARGET_ASM_NAMED_SECTION */
if (!unlikely_section_label_printed)
{
fprintf (asm_out_file, "__%s_unlikely_section:\n",