From 36f09faa0538826482116b505a9c80cde12c124f Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 2 Apr 2002 13:51:01 +0000 Subject: (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 --- gcc/ChangeLog | 6 ++++++ gcc/config/arm/arm.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3cb11a0..f04f064 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 53633dc..75dd8b2 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; -- cgit v1.1