This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix for -fverbose-asm with ARM


> 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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]