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, testsuite]: Check for IBM1047 code set instead of IBM-1047.


Eric Christopher wrote:

2005-02-21 Uros Bizjak <uros@kss-loka.si>

* gcc.dg/charset/builtin1.c: Use dg-require-iconv "IBM1047".
* gcc.dg/charset/asm1.c: Check for IBM1047 code set, not IBM-1047.
* gcc.dg/charset/asm2.c: Likewise.


I think this qualifies as obvious.


Thanks, committed under obvious rule.

Attached to this message is a patch that checks for IBM1047 instead of IBM-1047 code set for g++ tests. I'll commit it to mainline after checking that tests pass without problems.

2005-02-22 Uros Bizjak <uros@kss-loka.si>

   * g++.dg/charset/asm1.c: Check for IBM1047 code set, not IBM-1047.
   * g++.dg/charset/asm2.c: Likewise.
   * g++.dg/charset/asm3.c: Likewise.
   * g++.dg/charset/asm4.c: Likewise.
   * g++.dg/charset/asm5.c: Likewise.
   * g++.dg/charset/attribute1.c: Likewise.
   * g++.dg/charset/attribute2.c: Likewise.
   * g++.dg/charset/extern1.cc: Likewise.
   * g++.dg/charset/extern2.cc: Likewise.
   * g++.dg/charset/extern3.cc: Likewise.
   * g++.dg/charset/function.cc: Likewise.
   * g++.dg/charset/string.c: Likewise.
   * g++.dg/charset/charset.exp: Likewise.

* lib/target-supports.exp (check_iconv_available): Fix comment.

Uros.
Index: g++.dg/charset/asm1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/charset/asm1.c,v
retrieving revision 1.1
diff -u -p -r1.1 asm1.c
--- g++.dg/charset/asm1.c	27 Feb 2004 02:01:09 -0000	1.1
+++ g++.dg/charset/asm1.c	22 Feb 2005 11:19:14 -0000
@@ -1,5 +1,5 @@
 /* { dg-do compile { target *-*-* } }
-   { dg-require-iconv "IBM-1047" }
+   { dg-require-iconv "IBM1047" }
    { dg-final { scan-assembler ".ascii bar" } }
    { dg-final { scan-assembler ".ascii foo" } }
  */
Index: g++.dg/charset/asm2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/charset/asm2.c,v
retrieving revision 1.2
diff -u -p -r1.2 asm2.c
--- g++.dg/charset/asm2.c	28 Feb 2004 00:28:54 -0000	1.2
+++ g++.dg/charset/asm2.c	22 Feb 2005 11:19:14 -0000
@@ -1,7 +1,7 @@
 /* Test for complex asm statements. Make sure it compiles
    then test for some of the asm statements not being translated.  */
 /* { dg-do compile { target i?86-*-* } }
-   { dg-require-iconv "IBM-1047" }
+   { dg-require-iconv "IBM1047" }
    { dg-final { scan-assembler "std" } }
    { dg-final { scan-assembler "cld" } }
    { dg-final { scan-assembler "rep" } }
Index: g++.dg/charset/asm3.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/charset/asm3.c,v
retrieving revision 1.1
diff -u -p -r1.1 asm3.c
--- g++.dg/charset/asm3.c	27 Feb 2004 02:01:09 -0000	1.1
+++ g++.dg/charset/asm3.c	22 Feb 2005 11:19:14 -0000
@@ -1,6 +1,6 @@
 /* Simple asm test.  */
 /* { dg-do compile }
-   { dg-require-iconv "IBM-1047" }
+   { dg-require-iconv "IBM1047" }
    { dg-final { scan-assembler "foo" } } */
 extern int bar;
 
Index: g++.dg/charset/asm4.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/charset/asm4.c,v
retrieving revision 1.1
diff -u -p -r1.1 asm4.c
--- g++.dg/charset/asm4.c	27 Feb 2004 02:01:09 -0000	1.1
+++ g++.dg/charset/asm4.c	22 Feb 2005 11:19:14 -0000
@@ -1,6 +1,6 @@
 /* Test for string translation.  */
 /* { dg-do compile }
-   { dg-require-iconv "IBM-1047" }
+   { dg-require-iconv "IBM1047" }
    { dg-final { scan-assembler-not "translate" } } */
 void foo (void)
 {
Index: g++.dg/charset/asm5.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/charset/asm5.c,v
retrieving revision 1.1
diff -u -p -r1.1 asm5.c
--- g++.dg/charset/asm5.c	15 Jun 2004 23:09:24 -0000	1.1
+++ g++.dg/charset/asm5.c	22 Feb 2005 11:19:14 -0000
@@ -1,6 +1,6 @@
 /* Test for string translation.  */
 /* { dg-do compile }
-   { dg-require-iconv "IBM-1047" } 
+   { dg-require-iconv "IBM1047" } 
    { dg-final { scan-assembler "foo" } } */
 int main()
 {
Index: g++.dg/charset/attribute1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/charset/attribute1.c,v
retrieving revision 1.1
diff -u -p -r1.1 attribute1.c
--- g++.dg/charset/attribute1.c	27 Feb 2004 02:01:09 -0000	1.1
+++ g++.dg/charset/attribute1.c	22 Feb 2005 11:19:14 -0000
@@ -1,6 +1,6 @@
 /* Test for attribute non-translation.  */
 /* { dg-do compile }
-   { dg-require-iconv "IBM-1047" }
+   { dg-require-iconv "IBM1047" }
    { dg-final { scan-assembler "foo" } } */
 int walrus __attribute__ ((section (".foo")));
 
Index: g++.dg/charset/attribute2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/charset/attribute2.c,v
retrieving revision 1.1
diff -u -p -r1.1 attribute2.c
--- g++.dg/charset/attribute2.c	27 Feb 2004 02:01:09 -0000	1.1
+++ g++.dg/charset/attribute2.c	22 Feb 2005 11:19:14 -0000
@@ -2,7 +2,7 @@
    If error recovery is ever testable then "foobar" should be
    translated.  */
 /* { dg-do compile }
-   { dg-require-iconv "IBM-1047" }
+   { dg-require-iconv "IBM1047" }
 */
 int foo __attribute__ ((walrus)); /* { dg-error "walrus" "ignored" } */
 char x[] = "foobar";
Index: g++.dg/charset/charset.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/charset/charset.exp,v
retrieving revision 1.3
diff -u -p -r1.3 charset.exp
--- g++.dg/charset/charset.exp	15 Apr 2004 01:40:08 -0000	1.3
+++ g++.dg/charset/charset.exp	22 Feb 2005 11:19:14 -0000
@@ -30,7 +30,7 @@ load_lib target-supports.exp
 # If a testcase doesn't have special options, use these.
 global DEFAULT_CHARSETCFLAGS
 if ![info exists DEFAULT_CHARSETCFLAGS] then {
-    set DEFAULT_CHARSETCFLAGS "-fexec-charset=IBM-1047"
+    set DEFAULT_CHARSETCFLAGS "-fexec-charset=IBM1047"
 }
 
 # Initialize `dg'.
Index: g++.dg/charset/extern1.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/charset/extern1.cc,v
retrieving revision 1.1
diff -u -p -r1.1 extern1.cc
--- g++.dg/charset/extern1.cc	27 Feb 2004 02:01:09 -0000	1.1
+++ g++.dg/charset/extern1.cc	22 Feb 2005 11:19:14 -0000
@@ -1,6 +1,6 @@
 /* Test extern statments not being translated. */
 /* { dg-do compile }
-   { dg-require-iconv "IBM-1047" }
+   { dg-require-iconv "IBM1047" }
 */
 
 extern  "C" {
Index: g++.dg/charset/extern2.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/charset/extern2.cc,v
retrieving revision 1.1
diff -u -p -r1.1 extern2.cc
--- g++.dg/charset/extern2.cc	27 Feb 2004 02:01:09 -0000	1.1
+++ g++.dg/charset/extern2.cc	22 Feb 2005 11:19:14 -0000
@@ -1,5 +1,5 @@
 /* Check that we push the declaration and then continue translation.  */
 /* { dg-do compile }
-   { dg-require-iconv "IBM-1047" }
+   { dg-require-iconv "IBM1047" }
    { dg-final { scan-assembler-not "foobar" } } */
 extern "C" { char *foo = "foobar"; }
Index: g++.dg/charset/extern3.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/charset/extern3.cc,v
retrieving revision 1.1
diff -u -p -r1.1 extern3.cc
--- g++.dg/charset/extern3.cc	20 Apr 2004 21:50:12 -0000	1.1
+++ g++.dg/charset/extern3.cc	22 Feb 2005 11:19:14 -0000
@@ -1,5 +1,5 @@
 /* { dg-do compile }
-   { dg-require-iconv "IBM-1047" }
+   { dg-require-iconv "IBM1047" }
    { dg-final { scan-assembler-not "abcdefghijklmnopqrstuvwxyz" } } */
 
 extern char *bar;
Index: g++.dg/charset/function.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/charset/function.cc,v
retrieving revision 1.1
diff -u -p -r1.1 function.cc
--- g++.dg/charset/function.cc	28 May 2004 21:56:59 -0000	1.1
+++ g++.dg/charset/function.cc	22 Feb 2005 11:19:14 -0000
@@ -1,5 +1,5 @@
 /* { dg-do compile }
-   { dg-require-iconv "IBM-1047" }
+   { dg-require-iconv "IBM1047" }
    { dg-final { scan-assembler-not "\"foobar\"" } } */
 
 const char *str;
Index: g++.dg/charset/string.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/charset/string.c,v
retrieving revision 1.1
diff -u -p -r1.1 string.c
--- g++.dg/charset/string.c	27 Feb 2004 02:01:09 -0000	1.1
+++ g++.dg/charset/string.c	22 Feb 2005 11:19:14 -0000
@@ -1,5 +1,5 @@
 /* Simple character translation test.  */
 /* { dg-do compile }
-   { dg-require-iconv "IBM-1047" }
+   { dg-require-iconv "IBM1047" }
    { dg-final { scan-assembler-not "string foobar" } } */
 char *foo = "string foobar";
Index: lib/target-supports.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/lib/target-supports.exp,v
retrieving revision 1.40
diff -u -p -r1.40 target-supports.exp
--- lib/target-supports.exp	11 Feb 2005 22:34:57 -0000	1.40
+++ lib/target-supports.exp	22 Feb 2005 11:19:17 -0000
@@ -276,7 +276,7 @@ proc check_profiling_available { test_wh
     return $profiling_available_saved
 }
 
-# Return true if iconv is supported on the target. In particular IBM-1047.
+# Return true if iconv is supported on the target. In particular IBM1047.
 
 proc check_iconv_available { test_what } {
     global tool

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