aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-04-13 16:31:10 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-04-13 16:31:10 -0700
commit3a4bdd05587f48b8a01ac160489d44188bc3a9e7 (patch)
treebac175ff0be3d3a7dfa6d668313d12c89978e6eb
parentb50b729d4d95b39ffc9beef0333c2f80f2a32260 (diff)
downloadgcc-3a4bdd05587f48b8a01ac160489d44188bc3a9e7.zip
gcc-3a4bdd05587f48b8a01ac160489d44188bc3a9e7.tar.gz
gcc-3a4bdd05587f48b8a01ac160489d44188bc3a9e7.tar.bz2
defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
* defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot. (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise. * doc/invoke.texi: Update to match. From-SVN: r80668
-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.