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]

[Patch ARM] Move return_using_this_insn to cfun.


Hi,

This patch is an almost mechanical replacement of the global variable
return_used_this_function by moving it into machine specific data.

Ok to commit after a round of regression testing ?



Cheers
Ramana


2009-03-31 Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        * config/arm/arm.c (return_used_this_function): Remove.
        (arm_output_function_prologue): Remove use of
return_used_this_function.
        (output_return_instruction): Replace use of
return_used_this_function
        by cfun->machine->return_used_this_function.
        (arm_output_epilogue): Likewise.
        (arm_output_function_epilogue): Likewise.
        (thumb_unexpanded_epilogue): Likewise.

        * config/arm/arm.h (struct machine_function):
return_used_this_function
        New member.

Ramana Radhakrishnan
GNU Tools Engineer
ARM Ltd. (www.arm.com)
Phone : +441223400495 (Direct || Voicemail)


Attachment: cleanup-using-return-this-insn.patch
Description: Binary data


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