RFA: Only test wide character system include files on native targets

Nick Clifton nickc@cambridge.redhat.com
Tue Nov 6 01:38:00 GMT 2001


Hi Guys,

  I would like permission to apply the following patch.  It changes
  the wide character system include tests in the gcc.dg directory so
  that they are only run for native targets.  Cross compilers do not
  always have the <wchar.h> system header file available to them,
  and so this test typically fails with:

    wchar_t-1.c:8:19: wchar.h: No such file or directory


  OK to apply ?

Cheers
        Nick


2001-11-06  Nick Clifton  <nickc@cambridge.redhat.com>

	* gcc.dg/wchar_t-1.c: Only run test for native targets.
	* gcc.dg/wint_t-1.c:  Only run test for native targets.

Index: gcc/testsuite/gcc.dg/wchar_t-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/wchar_t-1.c,v
retrieving revision 1.2
diff -c -p -r1.2 wchar_t-1.c
*** wchar_t-1.c	2001/06/11 20:36:56	1.2
--- wchar_t-1.c	2001/11/06 09:32:52
***************
*** 1,4 ****
! /* { dg-do compile } */
  /* { dg-options "-Wall" } */
  
  /* Compile with -Wall to get a warning if built-in and system wchar_t don't
--- 1,4 ----
! /* { dg-do compile { target native } } */
  /* { dg-options "-Wall" } */
  
  /* Compile with -Wall to get a warning if built-in and system wchar_t don't

Index: gcc/testsuite/gcc.dg/wint_t-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/wint_t-1.c,v
retrieving revision 1.2
diff -c -p -r1.2 wint_t-1.c
*** wint_t-1.c	2001/06/11 20:36:56	1.2
--- wint_t-1.c	2001/11/06 09:33:58
***************
*** 1,4 ****
! /* { dg-do compile } */
  /* { dg-options "-Wall" } */
  
  /* Compile with -Wall to get a warning if built-in and system wint_t don't
--- 1,4 ----
! /* { dg-do compile { target native } } */
  /* { dg-options "-Wall" } */
  
  /* Compile with -Wall to get a warning if built-in and system wint_t don't



More information about the Gcc-patches mailing list