target-supports.exp (check_effective_target_ucn_nocache): New function.

* lib/target-supports.exp (check_effective_target_ucn_nocache):
	New function.
	(check_effective_target_ucn): Likewise.

	* g++.dg/other/ucnid-1.C: Don't XFAIL on *-*-solaris2.*, but skip
	if !ucn.
	* gcc.dg/ucnid-2.c: Likewise.
	* gcc.dg/ucnid-3.c: Likewise.
	* gcc.dg/ucnid-4.c: Likewise.
	* gcc.dg/ucnid-11.c: Likewise.
	* gcc.dg/ucnid-12.c: Likewise.
	* gcc.dg/ucnid-6.c: Skip if !ucn.
	* gcc.dg/ucnid-9.c: Likewise.

From-SVN: r157140
This commit is contained in:
Rainer Orth 2010-03-01 12:40:38 +00:00 committed by Rainer Orth
parent 48f8763ff4
commit 72a30e3cf0
10 changed files with 58 additions and 8 deletions

View File

@ -1,3 +1,19 @@
2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* lib/target-supports.exp (check_effective_target_ucn_nocache):
New function.
(check_effective_target_ucn): Likewise.
* g++.dg/other/ucnid-1.C: Don't XFAIL on *-*-solaris2.*, but skip
if !ucn.
* gcc.dg/ucnid-2.c: Likewise.
* gcc.dg/ucnid-3.c: Likewise.
* gcc.dg/ucnid-4.c: Likewise.
* gcc.dg/ucnid-11.c: Likewise.
* gcc.dg/ucnid-12.c: Likewise.
* gcc.dg/ucnid-6.c: Skip if !ucn.
* gcc.dg/ucnid-9.c: Likewise.
2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc.target/i386/pr32000-2.c: Add missing include and exclude

View File

@ -1,6 +1,7 @@
/* { dg-do run } */
/* { dg-options "-fextended-identifiers" } */
/* { dg-xfail-if "" { powerpc-ibm-aix* *-*-solaris2.* } { "*" } { "" } } */
/* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
/* { dg-skip-if "" { ! ucn } { "*" } { "" } } */
#include <cstdlib>
int \u00C0(void) { return 1; }

View File

@ -1,5 +1,6 @@
/* { dg-do run } */
/* { dg-xfail-if "" { powerpc-ibm-aix* *-*-solaris2.* } { "*" } { "" } } */
/* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
/* { dg-skip-if "" { ! ucn } { "*" } { "" } } */
/* { dg-skip-if "-fdata-sections not supported" { { hppa*-*-hpux* } && { ! hppa*64*-*-* } } { "*" } { "" } } */
/* { dg-options "-std=c99 -fextended-identifiers -fdata-sections" } */

View File

@ -1,5 +1,6 @@
/* { dg-do run } */
/* { dg-xfail-if "" { powerpc-ibm-aix* *-*-solaris2.* } { "*" } { "" } } */
/* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
/* { dg-skip-if "" { ! ucn } { "*" } { "" } } */
/* { dg-skip-if "-ffunction-sections not supported" { { hppa*-*-hpux* } && { ! hppa*64*-*-* } } { "*" } { "" } } */
/* { dg-options "-std=c99 -fextended-identifiers -ffunction-sections" } */

View File

@ -1,5 +1,6 @@
/* { dg-do run } */
/* { dg-xfail-if "" { powerpc-ibm-aix* *-*-solaris2.* } { "*" } { "" } } */
/* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
/* { dg-skip-if "" { ! ucn } { "*" } { "" } } */
/* { dg-options "-std=c99 -fextended-identifiers" } */
void abort (void);

View File

@ -1,5 +1,6 @@
/* { dg-do run } */
/* { dg-xfail-if "" { powerpc-ibm-aix* *-*-solaris2.* } { "*" } { "" } } */
/* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
/* { dg-skip-if "" { ! ucn } { "*" } { "" } } */
/* { dg-options "-std=c99 -fextended-identifiers" } */
void abort (void);

View File

@ -1,5 +1,6 @@
/* { dg-do run } */
/* { dg-xfail-if "" { powerpc-ibm-aix* *-*-solaris2.* } { "*" } { "" } } */
/* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
/* { dg-skip-if "" { ! ucn } { "*" } { "" } } */
/* { dg-options "-std=c99 -fextended-identifiers" } */
void abort (void);

View File

@ -1,5 +1,6 @@
/* { dg-do run } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "*" } { "" } } */
/* { dg-skip-if "" { ! ucn } { "*" } { "" } } */
/* { dg-options "-std=c99 -fextended-identifiers -save-temps" } */
void abort (void);

View File

@ -2,6 +2,7 @@
conversions. */
/* { dg-do run } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "*" } { "" } } */
/* { dg-skip-if "" { ! ucn } { "*" } { "" } } */
/* { dg-options "-std=c99 -fextended-identifiers -fexec-charset=ISO-8859-1" } */
/* { dg-require-iconv "ISO-8859-1" } */

View File

@ -1,4 +1,4 @@
# Copyright (C) 1999, 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# Copyright (C) 1999, 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
# Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
@ -1336,7 +1336,7 @@ proc check_effective_target_dfp { } {
}
# Return 1 if the target supports linking and executing Decimal Floating
# Point, # 0 otherwise.
# Point, 0 otherwise.
#
# This won't change for different subtargets so cache the result.
@ -1346,6 +1346,32 @@ proc check_effective_target_dfprt { } {
}]
}
# Return 1 if the target supports compiling and assembling UCN, 0 otherwise.
proc check_effective_target_ucn_nocache { } {
# -std=c99 is only valid for C
if [check_effective_target_c] {
set ucnopts "-std=c99"
}
append ucnopts " -fextended-identifiers"
verbose "check_effective_target_ucn_nocache: compiling source" 2
set ret [check_no_compiler_messages_nocache ucn object {
int \u00C0;
} $ucnopts]
verbose "check_effective_target_ucn_nocache: returning $ret" 2
return $ret
}
# Return 1 if the target supports compiling and assembling UCN, 0 otherwise.
#
# This won't change for different subtargets, so cache the result.
proc check_effective_target_ucn { } {
return [check_cached_effective_target ucn {
check_effective_target_ucn_nocache
}]
}
# Return 1 if the target needs a command line argument to enable a SIMD
# instruction set.