From: Nick Clifton Date: Tue, 2 Apr 2002 13:51:01 +0000 (+0000) Subject: (output_return_instruction): Do not create the conditional part of the return instruc... X-Git-Tag: releases/gcc-3.3.0~5952 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36f09faa0538826482116b505a9c80cde12c124f;p=thirdparty%2Fgcc.git (output_return_instruction): Do not create the conditional part of the return instruction... (output_return_instruction): Do not create the conditional part of the return instruction, if there is no condition to be used. From-SVN: r51750 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3cb11a0e5351..f04f0640134a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-04-02 Nick Clifton + + * config/arm/arm.c (output_return_instruction): Do not create the + conditional part of the return instruction, if there is no + condition to be used. + Tue Apr 2 06:47:40 2002 Richard Kenner * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 53633dcbdfff..75dd8b2543a0 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -7210,7 +7210,10 @@ output_return_instruction (operand, really_return, reverse) abort (); /* Construct the conditional part of the instruction(s) to be emitted. */ - sprintf (conditional, "%%?%%%c0", reverse ? 'D' : 'd'); + if (operand) + sprintf (conditional, "%%?%%%c0", reverse ? 'D' : 'd'); + else + * conditional = 0; return_used_this_function = 1;