Commit ac675201 by Uros Bizjak Committed by Uros Bizjak

builtin1.c: Use dg-require-iconv "IBM1047".

	* 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.
	* gcc.dg/charset/asm3.c: Likewise.
	* gcc.dg/charset/asm4.c: Likewise.
	* gcc.dg/charset/asm5.c: Likewise.
	* gcc.dg/charset/asm6.c: Likewise.
	* gcc.dg/charset/attribute1.c: Likewise.
	* gcc.dg/charset/attribute2.c: Likewise.
	* gcc.dg/charset/builtin1.c: Likewise.
	* gcc.dg/charset/extern.c: Likewise.
	* gcc.dg/charset/function.c: Likewise.
	* gcc.dg/charset/string.c: Likewise.
	* gcc.dg/charset/charset.exp:Likewise.

From-SVN: r95385
parent d5d74adf
2005-02-22 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.
* gcc.dg/charset/asm3.c: Likewise.
* gcc.dg/charset/asm4.c: Likewise.
* gcc.dg/charset/asm5.c: Likewise.
* gcc.dg/charset/asm6.c: Likewise.
* gcc.dg/charset/attribute1.c: Likewise.
* gcc.dg/charset/attribute2.c: Likewise.
* gcc.dg/charset/builtin1.c: Likewise.
* gcc.dg/charset/extern.c: Likewise.
* gcc.dg/charset/function.c: Likewise.
* gcc.dg/charset/string.c: Likewise.
* gcc.dg/charset/charset.exp:Likewise.
2005-02-21 Bud Davis <bdavis9659@comcast.net> 2005-02-21 Bud Davis <bdavis9659@comcast.net>
PR fortran/20086 PR fortran/20086
......
/* { dg-do compile } /* { dg-do compile }
{ dg-require-iconv "IBM-1047" } { dg-require-iconv "IBM1047" }
{ dg-final { scan-assembler ".ascii bar" } } { dg-final { scan-assembler ".ascii bar" } }
{ dg-final { scan-assembler ".ascii foo" } } { dg-final { scan-assembler ".ascii foo" } }
*/ */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
If we ever get a good way to test error recovery If we ever get a good way to test error recovery
the string "foobar" should be translated. */ the string "foobar" should be translated. */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-iconv "IBM-1047" } */ /* { dg-require-iconv "IBM1047" } */
asm (not_a_string); /* { dg-error "(parse error|syntax error|expected string literal) before" "not_a_string" } */ asm (not_a_string); /* { dg-error "(parse error|syntax error|expected string literal) before" "not_a_string" } */
char x[] = "foobar"; char x[] = "foobar";
......
/* Test for complex asm statements. Make sure it compiles /* Test for complex asm statements. Make sure it compiles
then test for some of the asm statements not being translated. */ then test for some of the asm statements not being translated. */
/* { dg-do compile { target i?86-*-* } } /* { dg-do compile { target i?86-*-* } }
{ dg-require-iconv "IBM-1047" } { dg-require-iconv "IBM1047" }
{ dg-final { scan-assembler "std" } } { dg-final { scan-assembler "std" } }
{ dg-final { scan-assembler "cld" } } { dg-final { scan-assembler "cld" } }
{ dg-final { scan-assembler "rep" } } { dg-final { scan-assembler "rep" } }
......
/* Simple asm test. */ /* Simple asm test. */
/* { dg-do compile } /* { dg-do compile }
{ dg-require-iconv "IBM-1047" } { dg-require-iconv "IBM1047" }
{ dg-final { scan-assembler "foo" } } */ { dg-final { scan-assembler "foo" } } */
extern int bar; extern int bar;
......
/* Test for string translation. */ /* Test for string translation. */
/* { dg-do compile } /* { dg-do compile }
{ dg-require-iconv "IBM-1047" } { dg-require-iconv "IBM1047" }
{ dg-final { scan-assembler-not "translate" } } */ { dg-final { scan-assembler-not "translate" } } */
void foo (void) void foo (void)
{ {
......
/* Test for string translation. */ /* Test for string translation. */
/* { dg-do compile } /* { dg-do compile }
{ dg-require-iconv "IBM-1047" } { dg-require-iconv "IBM1047" }
{ dg-final { scan-assembler "foo" } } */ { dg-final { scan-assembler "foo" } } */
int main() int main()
{ {
......
/* Test for attribute non-translation. */ /* Test for attribute non-translation. */
/* { dg-do compile } /* { dg-do compile }
{ dg-require-iconv "IBM-1047" } { dg-require-iconv "IBM1047" }
{ dg-final { scan-assembler "foo" } } */ { dg-final { scan-assembler "foo" } } */
int walrus __attribute__ ((section (".foo"))); int walrus __attribute__ ((section (".foo")));
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
If error recovery is ever testable then "foobar" should be If error recovery is ever testable then "foobar" should be
translated. */ translated. */
/* { dg-do compile } /* { dg-do compile }
{ dg-require-iconv "IBM-1047" } { dg-require-iconv "IBM1047" }
*/ */
int foo __attribute__ ((walrus)); /* { dg-error "walrus" "ignored" } */ int foo __attribute__ ((walrus)); /* { dg-error "walrus" "ignored" } */
char x[] = "foobar"; char x[] = "foobar";
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
we know the correct value of '0'. PR 18785. */ we know the correct value of '0'. PR 18785. */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-O2 -fno-inline -fexec-charset=IBM-1047" } */ /* { dg-require-iconv "IBM1047" } */
/* { dg-options "-O2 -fno-inline -fexec-charset=IBM1047" } */
extern int isdigit(int); extern int isdigit(int);
extern void abort(void); extern void abort(void);
......
...@@ -30,7 +30,7 @@ load_lib target-supports.exp ...@@ -30,7 +30,7 @@ load_lib target-supports.exp
# If a testcase doesn't have special options, use these. # If a testcase doesn't have special options, use these.
global DEFAULT_CHARSETCFLAGS global DEFAULT_CHARSETCFLAGS
if ![info exists DEFAULT_CHARSETCFLAGS] then { if ![info exists DEFAULT_CHARSETCFLAGS] then {
set DEFAULT_CHARSETCFLAGS "-fexec-charset=IBM-1047" set DEFAULT_CHARSETCFLAGS "-fexec-charset=IBM1047"
} }
# Initialize `dg'. # Initialize `dg'.
......
/* { dg-do compile } /* { dg-do compile }
{ dg-require-iconv "IBM-1047" } { dg-require-iconv "IBM1047" }
{ dg-final { scan-assembler-not "abcdefghijklmnopqrstuvwxyz" } } */ { dg-final { scan-assembler-not "abcdefghijklmnopqrstuvwxyz" } } */
extern char *bar; extern char *bar;
......
/* { dg-do compile } /* { dg-do compile }
{ dg-require-iconv "IBM-1047" } { dg-require-iconv "IBM1047" }
{ dg-final { scan-assembler-not "\"foobar\"" } } */ { dg-final { scan-assembler-not "\"foobar\"" } } */
const char *str; const char *str;
......
/* Simple character translation test. */ /* Simple character translation test. */
/* { dg-do compile } /* { dg-do compile }
{ dg-require-iconv "IBM-1047" } { dg-require-iconv "IBM1047" }
{ dg-final { scan-assembler-not "string foobar" } } */ { dg-final { scan-assembler-not "string foobar" } } */
char *foo = "string foobar"; char *foo = "string foobar";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment