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 | |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 5 |
2 files changed, 10 insertions, 1 deletions
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 <nickc@cambridge.redhat.com> + + * 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 <kenner@vlsi1.ultra.nyu.edu> * 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; |