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] | |
On Mon, Nov 04, 2002 at 05:04:03PM +0000, Richard Earnshaw wrote:
> We're getting there. However, as things stand this is incorrect for
> Thumb. arm_compute_saved_reg_mask can't be used for a thumb function[*],
> so either we need to handle Thumb specifically in arm_get_frame_size or we
> need a thumb_get_frame_size function to handle that case.
Ok, I'm currently regtesting the following... please make sure I
understood the rules right in thumb_get_frame_size()...
* config/arm/arm-protos.h (arm_get_frame_size)
(thumb_get_frame_size): New prototypes.
* config/arm/arm.c (arm_get_frame_size)
(thumb_get_frame_size): New functions.
(use_return_insn, arm_output_epilogue, arm_output_function_epilogue)
(arm_compute_initial_elimination_offset, arm_expand_prologue): Use
arm_get_frame_size.
(thumb_expand_prologue, thumb_expand_epilogue): Use
thumb_get_frame_size.
* config/arm/arm.h (PREFERRED_STACK_BOUNDARY): Define.
(THUMB_INITIAL_ELIMINATION_OFFSET): Use thumb_get_frame_size.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>
Attachment:
arm-stack-patch
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |