This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix for -fverbose-asm with ARM
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Nick Clifton <nickc at cambridge dot redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Richard dot Earnshaw at arm dot com
- Date: Tue, 02 Apr 2002 15:04:47 +0100
- Subject: Re: Fix for -fverbose-asm with ARM
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> Hi Guys,
>
> I am applying the patch below to fix a seg fault when an ARM
> targeted gcc is run with the -fverbose-asm option. The problem was
> that the function output_return_instruction() in arm.c was creating
> a template for conditional execution even when it wasn't needed.
> Normally this does not matter, but with -fverbose-asm the compiler
> attempts to find the codiotnal operand for this non-conditional
> return, in order to print it out, and this causes the seg fault.
Please don't. I fixed this last week.
R.
2002-03-23 Richard Earnshaw <rearnsha@arm.com>
PR java/5489
* arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
operand argument to output_return_instruction.
* arm.c (arm_print_operand, case 'd'): If the operand is
const_true_rtx then just return.
(arm_print_operand, case 'D'): If the operand is const_true_rtx
then abort.