This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH ARM]Print CPU tuning information as comment in assembler file.
- From: Ramana Radhakrishnan <ramana dot gcc at googlemail dot com>
- To: Bin Cheng <bin dot cheng at arm dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 13 Mar 2015 11:53:45 +0000
- Subject: Re: [PATCH ARM]Print CPU tuning information as comment in assembler file.
- Authentication-results: sourceware.org; auth=none
- References: <000001d057e1$1e8cb3a0$5ba61ae0$ at arm dot com>
- Reply-to: ramrad01 at arm dot com
On Fri, Mar 6, 2015 at 7:42 AM, Bin Cheng <bin.cheng@arm.com> wrote:
> Hi,
> This patch is the first part fixing memset-inline-{4,5,6,8,9}.c failures on
> cortex-a9. GCC/arm doesn't generate any tuning information in assembly, it
> can't tell whether we are compiling for cortex-a9 tune if the compiler is
> configured so by default.
> This patch introduces a new (target dependent) option "-mprint-tune-info".
> It prints CPU tuning information as comment in assembler file, thus DEJAGNU
> can check it and make decisions. By default the option is disabled, so it
> won't change current behaviors. For now, pointers in tune structure are not
> printed, we should improve that and output more useful information in the
> long run.
>
> Another patch is followed adding DEJAGNU test function and adapting test
> strings.
>
> Build and test on arm-none-eabi, is it OK?
This is OK thanks.
Ramana
>
> 2015-03-06 Bin Cheng <bin.cheng@arm.com>
>
> * config/arm/arm.opt (print_tune_info): New option.
> * config/arm/arm.c (arm_print_tune_info): New function.
> (arm_file_start): Call arm_print_tune_info.
> * config/arm/arm-protos.h (struct tune_params): Add comment.
> * doc/invoke.texi (@item -mprint-tune-info): New item.
> (-mtune): mention it in ARM Option Summary.