diff options
author | Nick Clifton <nickc@cambridge.redhat.com> | 2002-04-02 13:51:01 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2002-04-02 13:51:01 +0000 |
commit | 36f09faa0538826482116b505a9c80cde12c124f (patch) | |
tree | 7243c53dd41632a94e118307fd7a3331936f1e4f /gcc/config/arm/arm.c | |
parent | 3741b1abe061fd59049b502f255337537986f15d (diff) | |
download | gcc-36f09faa0538826482116b505a9c80cde12c124f.zip gcc-36f09faa0538826482116b505a9c80cde12c124f.tar.gz gcc-36f09faa0538826482116b505a9c80cde12c124f.tar.bz2 |
(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
Diffstat (limited to 'gcc/config/arm/arm.c')
-rw-r--r-- | gcc/config/arm/arm.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |