public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* PATCH: h8300-elf fix for gcc.c-torture/execute/20020307-2.c
@ 2002-10-17  7:34 Nitin  Gupta, Noida
  0 siblings, 0 replies; only message in thread
From: Nitin  Gupta, Noida @ 2002-10-17  7:34 UTC (permalink / raw)
  To: gcc; +Cc: gcc-patches

Hi,
	The execution of gcc.c-torture/execute/20020307-2.c 
	fails for h8300-elf-gcc when compiled with option
	-fomit-frame-pointer. The following fix the problem:

*** h8300.c.orig        Thu Oct 17 16:42:10 2002
--- h8300.c.modi        Thu Oct 17 16:41:55 2002
*************** initial_offset (from, to)
*** 1373,1379 ****
    int offset = 0;

    if (from == ARG_POINTER_REGNUM && to == FRAME_POINTER_REGNUM)
!    offset = UNITS_PER_WORD + frame_pointer_needed * UNITS_PER_WORD;
    else if (from == RETURN_ADDRESS_POINTER_REGNUM && to ==
FRAME_POINTER_REGNUM)
      offset = frame_pointer_needed * UNITS_PER_WORD;
    else
--- 1373,1379 ----
    int offset = 0;

    if (from == ARG_POINTER_REGNUM && to == FRAME_POINTER_REGNUM)
!     offset = UNITS_PER_WORD +  UNITS_PER_WORD;
    else if (from == RETURN_ADDRESS_POINTER_REGNUM && to ==
FRAME_POINTER_REGNUM)
      offset = frame_pointer_needed * UNITS_PER_WORD;
    else

Thanks and Best Regards,
Nitin.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-17 11:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-17  7:34 PATCH: h8300-elf fix for gcc.c-torture/execute/20020307-2.c Nitin  Gupta, Noida

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).