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]

IA-64 sibcall unwind testcases


I created a new gcc.target/ia64 directory, and added new testcases for
the sibcall unwind info problems reported in PRs 13158 and 18987.  Here
are the 3 new files I checked in.

This was tested on ia64-linux with a make check-gcc, on both mainline
and the gcc-3.4 branch.  These testcases don't work as is on the gcc-3.3
branch as scan-assembler-times is not present, but I tested them by hand
and got the correct result.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com

Attachment: ia64.exp
Description: Text document

/* PR 13158.  Emit ".restore sp" for a sibcall.  */
/* { dg-do compile } */
/* { dg-options "-O2 -w" } */
/* { dg-final { scan-assembler-times "\\.restore sp" 1 } } */

static void do_date (char *);  
void rfc822_date (char *date)  
{  
  do_date (date);
}
/* PR 18987.  This caused an assembler error because we emitted ".restore sp"
   twice.  */
/* { dg-do compile } */
/* { dg-options "-O2 -fno-omit-frame-pointer -w" } */
/* { dg-final { scan-assembler-times "\\.restore sp" 1 } } */

static void do_date (char *);  
void rfc822_date (char *date)  
{  
  do_date (date);
}

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