aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/defaults.h4
-rw-r--r--gcc/doc/invoke.texi4
3 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7f60022..dc01a68 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -3,6 +3,10 @@
* bb-reorder.c (fix_crossing_unconditional_branches): Use Pmode
for LABEL_REFs.
+ * defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
+ (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
+ * doc/invoke.texi: Update to match.
+
2004-04-13 Ulrich Weigand <uweigand@de.ibm.com>
* reload1.c (emit_reload_insns): Set reg_has_output_reload to one
diff --git a/gcc/defaults.h b/gcc/defaults.h
index 697ed8e..5867291 100644
--- a/gcc/defaults.h
+++ b/gcc/defaults.h
@@ -620,7 +620,7 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE!
#endif
#ifndef HOT_TEXT_SECTION_NAME
-#define HOT_TEXT_SECTION_NAME "text.hot"
+#define HOT_TEXT_SECTION_NAME ".text.hot"
#endif
#ifndef NORMAL_TEXT_SECTION_NAME
@@ -628,7 +628,7 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE!
#endif
#ifndef UNLIKELY_EXECUTED_TEXT_SECTION_NAME
-#define UNLIKELY_EXECUTED_TEXT_SECTION_NAME "text.unlikely"
+#define UNLIKELY_EXECUTED_TEXT_SECTION_NAME ".text.unlikely"
#endif
#ifndef HAS_LONG_COND_BRANCH
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 83845f0..6581025 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -4217,8 +4217,8 @@ paging and cache locality performance.
@opindex freorder-functions
Reorder basic blocks in the compiled function in order to reduce number of
taken branches and improve code locality. This is implemented by using special
-subsections @code{text.hot} for most frequently executed functions and
-@code{text.unlikely} for unlikely executed functions. Reordering is done by
+subsections @code{.text.hot} for most frequently executed functions and
+@code{.text.unlikely} for unlikely executed functions. Reordering is done by
the linker so object file format must support named sections and linker must
place them in a reasonable way.