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]

Re: [patch] Disable execute/20030209-1.c on H8.


Hi Richard,

> Shouldn't the test case run if STACK_SIZE isn't defined?  Most mips
> baseboards don't define stack_size and the test case was originally
> for a mips bug.

That sounds reasonable.  How about the attached patch?

> How about #including <limits.h> and disabling the test for 16 bit
> int targets?  (Or is the array too big even for -mint32?)

Unfortunately, if you use -mint32 on H8/300, the int size becomes 32
bits, but the pointer size stays 16 bits.

Kazu Hirata

2003-02-15  Kazu Hirata  <kazu@cs.umass.edu>

	* gcc.c-torture/execute/20030209-1.c: Enable the test if
	STACK_SIZE is not defined.

Index: 20030209-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/20030209-1.c,v
retrieving revision 1.2
diff -c -r1.2 20030209-1.c
*** 20030209-1.c	12 Feb 2003 14:33:24 -0000	1.2
--- 20030209-1.c	15 Feb 2003 15:33:48 -0000
***************
*** 1,10 ****
  #ifdef STACK_SIZE
! #if STACK_SIZE >= 8*100*100
! #define OK
  #endif
  #endif
  
! #ifdef OK
  double x[100][100];
  int main ()
  {
--- 1,10 ----
  #ifdef STACK_SIZE
! #if STACK_SIZE < 8*100*100
! #define SKIP
  #endif
  #endif
  
! #ifndef SKIP
  double x[100][100];
  int main ()
  {


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