From 1cc2d70bee71210119a36b05de0621ac8442fd3b Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Fri, 1 Oct 2010 17:05:45 +0000 Subject: [PATCH] re PR middle-end/44716 (Bootstrap fails with partial inlining (r161382)) 2010-10-01 Steve Ellcey PR tree-optimization/44716 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define. (HOT_TEXT_SECTION_NAME): Define. From-SVN: r164891 --- gcc/ChangeLog | 6 ++++++ gcc/config/ia64/hpux.h | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 05fd2c25fcb..f579ba3a81e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-10-01 Steve Ellcey + + PR tree-optimization/44716 + * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define. + (HOT_TEXT_SECTION_NAME): Define. + 2010-10-01 Nick Clifton * common.opt: Add -fcombine-stack-adjustments. diff --git a/gcc/config/ia64/hpux.h b/gcc/config/ia64/hpux.h index 4a3a40f4bed..47bbd1e463b 100644 --- a/gcc/config/ia64/hpux.h +++ b/gcc/config/ia64/hpux.h @@ -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"