* [PATCH,TESTSUITE]Skip wchar tests for avr target
@ 2009-11-16 17:29 Andy H
2009-11-18 17:56 ` Janis Johnson
0 siblings, 1 reply; 3+ messages in thread
From: Andy H @ 2009-11-16 17:29 UTC (permalink / raw)
To: gcc-patches, janis187; +Cc: Weddington, Eric
[-- Attachment #1: Type: text/plain, Size: 396 bytes --]
The following patch skips tests for avr target where include file
wchar.h is needed. This is not available for AVR target and unlikely to
ever be created.
2009-11-16 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
* gcc-dg/raw-string-1.c: Skip test for avr target.
* gcc-dg/utf-array-short-wchar.c: Ditto.
* gcc-dg/utf-array.c: Ditto.
* gcc-dg/utf8-2.c: Ditto.
Ok for 4.5 head?
[-- Attachment #2: wchar.patch --]
[-- Type: text/plain, Size: 1572 bytes --]
Index: raw-string-1.c
===================================================================
--- raw-string-1.c (revision 154187)
+++ raw-string-1.c (working copy)
@@ -1,4 +1,5 @@
/* { dg-do run } */
+/* { dg-skip-if "No wchar.h" { "avr-*-*" } { "*" } { "" } } */
/* { dg-options "-std=gnu99" } */
#include <wchar.h>
Index: utf-array-short-wchar.c
===================================================================
--- utf-array-short-wchar.c (revision 154187)
+++ utf-array-short-wchar.c (working copy)
@@ -1,6 +1,7 @@
/* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
/* Expected errors for char16_t/char32_t string literals. */
/* { dg-do compile } */
+/* { dg-skip-if "No wchar.h" { "avr-*-*" } { "*" } { "" } } */
/* { dg-options "-std=gnu99 -fshort-wchar" } */
#include <wchar.h>
Index: utf-array.c
===================================================================
--- utf-array.c (revision 154187)
+++ utf-array.c (working copy)
@@ -1,6 +1,7 @@
/* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
/* Expected errors for char16_t/char32_t string literals. */
/* { dg-do compile } */
+/* { dg-skip-if "No wchar.h" { "avr-*-*" } { "*" } { "" } } */
/* { dg-options "-std=gnu99" } */
#include <wchar.h>
Index: utf8-2.c
===================================================================
--- utf8-2.c (revision 154187)
+++ utf8-2.c (working copy)
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-skip-if "No wchar.h" { "avr-*-*" } { "*" } { "" } } */
/* { dg-options "-std=gnu99" } */
#include <wchar.h>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH,TESTSUITE]Skip wchar tests for avr target
2009-11-16 17:29 [PATCH,TESTSUITE]Skip wchar tests for avr target Andy H
@ 2009-11-18 17:56 ` Janis Johnson
2009-11-21 5:31 ` [PATCH,TESTSUITE]Require effective target wchar Andy H
0 siblings, 1 reply; 3+ messages in thread
From: Janis Johnson @ 2009-11-18 17:56 UTC (permalink / raw)
To: Andy H; +Cc: gcc-patches, Weddington, Eric
On Mon, 2009-11-16 at 12:27 -0500, Andy H wrote:
> The following patch skips tests for avr target where include file
> wchar.h is needed. This is not available for AVR target and unlikely to
> ever be created.
>
> 2009-11-16 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
>
> * gcc-dg/raw-string-1.c: Skip test for avr target.
> * gcc-dg/utf-array-short-wchar.c: Ditto.
> * gcc-dg/utf-array.c: Ditto.
> * gcc-dg/utf8-2.c: Ditto.
>
> Ok for 4.5 head?
OK.
Janis
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH,TESTSUITE]Require effective target wchar
2009-11-18 17:56 ` Janis Johnson
@ 2009-11-21 5:31 ` Andy H
0 siblings, 0 replies; 3+ messages in thread
From: Andy H @ 2009-11-21 5:31 UTC (permalink / raw)
To: janis187; +Cc: gcc-patches, Weddington, Eric
[-- Attachment #1: Type: text/plain, Size: 544 bytes --]
This patches adds /* { dg-require-effective-target wchar } */ to tests
that include wchar.h
(The wchar target test keyword is determined by presence of wchar.h)
It also removes some of the skip for avr target recently added - since
these now becomes superfluous.
Ok for 4.5 head?
2009-11-20 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
* gcc-dg/raw-string-1.c: Require-effective-target wchar
* gcc-dg/raw-string-2.c: Ditto.
* gcc-dg/utf-array-short-wchar.c: Ditto.
* gcc-dg/utf-array.c: Ditto.
* gcc-dg/utf8-2.c: Ditto.
[-- Attachment #2: wchar2.patch --]
[-- Type: text/plain, Size: 2172 bytes --]
Index: gcc.dg/raw-string-1.c
===================================================================
--- gcc.dg/raw-string-1.c (revision 154399)
+++ gcc.dg/raw-string-1.c (working copy)
@@ -1,6 +1,6 @@
/* { dg-do run } */
-/* { dg-skip-if "No wchar.h" { "avr-*-*" } { "*" } { "" } } */
/* { dg-options "-std=gnu99" } */
+/* { dg-require-effective-target wchar } */
#include <wchar.h>
Index: gcc.dg/raw-string-2.c
===================================================================
--- gcc.dg/raw-string-2.c (revision 154399)
+++ gcc.dg/raw-string-2.c (working copy)
@@ -1,5 +1,6 @@
/* { dg-do run } */
/* { dg-options "-std=gnu99" } */
+/* { dg-require-effective-target wchar } */
#include <wchar.h>
Index: gcc.dg/utf-array-short-wchar.c
===================================================================
--- gcc.dg/utf-array-short-wchar.c (revision 154399)
+++ gcc.dg/utf-array-short-wchar.c (working copy)
@@ -1,8 +1,8 @@
/* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
/* Expected errors for char16_t/char32_t string literals. */
/* { dg-do compile } */
-/* { dg-skip-if "No wchar.h" { "avr-*-*" } { "*" } { "" } } */
/* { dg-options "-std=gnu99 -fshort-wchar" } */
+/* { dg-require-effective-target wchar } */
#include <wchar.h>
Index: gcc.dg/utf-array.c
===================================================================
--- gcc.dg/utf-array.c (revision 154399)
+++ gcc.dg/utf-array.c (working copy)
@@ -1,8 +1,8 @@
/* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
/* Expected errors for char16_t/char32_t string literals. */
/* { dg-do compile } */
-/* { dg-skip-if "No wchar.h" { "avr-*-*" } { "*" } { "" } } */
/* { dg-options "-std=gnu99" } */
+/* { dg-require-effective-target wchar } */
#include <wchar.h>
Index: gcc.dg/utf8-2.c
===================================================================
--- gcc.dg/utf8-2.c (revision 154399)
+++ gcc.dg/utf8-2.c (working copy)
@@ -1,6 +1,6 @@
/* { dg-do compile } */
-/* { dg-skip-if "No wchar.h" { "avr-*-*" } { "*" } { "" } } */
/* { dg-options "-std=gnu99" } */
+/* { dg-require-effective-target wchar } */
#include <wchar.h>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-21 5:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-16 17:29 [PATCH,TESTSUITE]Skip wchar tests for avr target Andy H
2009-11-18 17:56 ` Janis Johnson
2009-11-21 5:31 ` [PATCH,TESTSUITE]Require effective target wchar Andy H
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).