This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: (Darwin): fix -fbranch-probabilities
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Dale Johannesen <dalej at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 11 Feb 2003 12:48:31 -0800
- Subject: Re: Patch: (Darwin): fix -fbranch-probabilities
- References: <347C9D48-3E00-11D7-BE09-000393D76DAA@apple.com>
Dale Johannesen <dalej@apple.com> writes:
> This adds section name definitions in Darwin syntax, so
> -fbranch-probabilities works.
> Bootstrapped, built Spec -fbranch-probabilities, confirmed that both
> names
> are used and work.
This is OK.
> 2003-02-11 Dale Johannesen <dalej@apple.com>
> * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME): Define.
> (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
>
> Index: darwin.h
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/config/rs6000/darwin.h,v
> retrieving revision 1.31
> diff -u -d -b -w -r1.31 darwin.h
> --- darwin.h 19 Dec 2002 23:46:49 -0000 1.31
> +++ darwin.h 11 Feb 2003 20:33:56 -0000
> @@ -87,6 +87,11 @@
> (RS6000_ALIGN (current_function_outgoing_args_size, 16)
> \
> + (STACK_POINTER_OFFSET))
>
> +/* These are used by -fbranch-probabilities */
> +#define HOT_TEXT_SECTION_NAME "__TEXT,__text,regular,pure_instructions"
> +#define UNLIKELY_EXECUTED_TEXT_SECTION_NAME \
> +
> "__TEXT,__text2,regular,pure_instructions"
> +
> /* Define cutoff for using external functions to save floating point.
> Currently on Darwin, always use inline stores. */
>
>
--
- Geoffrey Keating <geoffk@geoffk.org>