2010-10-01 Steve Ellcey <sje@cup.hp.com>
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Oct 2010 17:05:45 +0000 (17:05 +0000)
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Oct 2010 17:05:45 +0000 (17:05 +0000)
PR tree-optimization/44716
* config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
(HOT_TEXT_SECTION_NAME): Define.

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

gcc/ChangeLog
gcc/config/ia64/hpux.h

index 05fd2c2..f579ba3 100644 (file)
@@ -1,3 +1,9 @@
+2010-10-01  Steve Ellcey  <sje@cup.hp.com>
+
+       PR tree-optimization/44716
+       * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
+       (HOT_TEXT_SECTION_NAME): Define.
+
 2010-10-01  Nick Clifton  <nickc@redhat.com>
 
        * common.opt: Add -fcombine-stack-adjustments.
index 4a3a40f..47bbd1e 100644 (file)
@@ -215,3 +215,14 @@ do {                                                               \
 
 #undef HANDLE_PRAGMA_PACK_PUSH_POP
 #define HANDLE_PRAGMA_PACK_PUSH_POP
+
+/* The HP-UX linker has a bug that causes calls from functions in
+   .text.unlikely to functions in .text to cause a segfault.  Until
+   it is fixed, prevent code from being put into .text.unlikely or
+   .text.hot.  */
+
+#undef UNLIKELY_EXECUTED_TEXT_SECTION_NAME
+#define UNLIKELY_EXECUTED_TEXT_SECTION_NAME ".text"
+
+#undef HOT_TEXT_SECTION_NAME
+#define HOT_TEXT_SECTION_NAME ".text"