Commit 7c280c72 by Hariharan Sandanagobalane Committed by Hariharan Sandanagobalane

fprintf.x: Disable test for freestanding targets.

        * gcc.c-torture/execute/builtins/fprintf.x: Disable test for
        freestanding targets.
        * gcc.c-torture/execute/pr37573.x: Disable test for 16-bit targets.
        * gcc.c-torture/execute/20081117-1.x: Disable test for 16-bit targets.
        * gcc.c-torture/compile/limits-stringlit.c: Disable test for picochip.
        * gcc.dg/array-quals-1.c: Disable test for picochip.
        * lib/target-supports.exp: Add support for freestanding ports and 
        disable picochip for profiling tests.

From-SVN: r142948
parent d41d8140
2008-12-15 Hariharan Sandanagobalane <hariharan@picochip.com>
* gcc.c-torture/execute/builtins/fprintf.x: Disable test for
freestanding targets.
* gcc.c-torture/execute/pr37573.x: Disable test for 16-bit targets.
* gcc.c-torture/execute/20081117-1.x: Disable test for 16-bit targets.
* gcc.c-torture/compile/limits-stringlit.c: Disable test for picochip.
* gcc.dg/array-quals-1.c: Disable test for picochip.
* lib/target-supports.exp: Add support for freestanding ports and
disable picochip for profiling tests.
2008-12-29 Jakub Jelinek <jakub@redhat.com>
PR c++/38637
......
/* { dg-skip-if "too complex for avr" { "avr-*-*" } { "*" } { "" } } */
/* { dg-skip-if "too complex for avr and picochip" { picochip-*-* avr-*-* } { "*" } { "" } } */
#define LIM1(x) x##0, x##1, x##2, x##3, x##4, x##5, x##6, x##7, x##8, x##9,
#define LIM2(x) LIM1(x##0) LIM1(x##1) LIM1(x##2) LIM1(x##3) LIM1(x##4) \
LIM1(x##5) LIM1(x##6) LIM1(x##7) LIM1(x##8) LIM1(x##9)
......
/* { dg-skip-if "Array too big" { "avr-*-*" } { "*" } { "" } } */
/* { dg-skip-if "Array too big" { avr-*-* picochip-*-* } { "*" } { "" } } */
#define STR2 "012345678901234567890123456789012345678901234567890123456789\
0123456789012345678901234567890123456789"
......
load_lib target-supports.exp
if { [check_effective_target_int16] } {
return 1
}
return 0
load_lib target-supports.exp
if { [check_effective_target_freestanding] } {
return 1;
}
return 0;
load_lib target-supports.exp
if { [check_effective_target_int16] } {
return 1
}
return 0
......@@ -4,7 +4,7 @@
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* The MMIX port always switches to the .data section at the end of a file. */
/* { dg-final { scan-assembler-not "\\.data(?!\\.rel\\.ro)" { xfail powerpc*-*-aix* mmix-*-* x86_64-*-mingw* avr-*-*} } } */
/* { dg-final { scan-assembler-not "\\.data(?!\\.rel\\.ro)" { xfail powerpc*-*-aix* mmix-*-* x86_64-*-mingw* picochip--*-* avr-*-*} } } */
static const int a[2] = { 1, 2 };
const int a1[2] = { 1, 2 };
typedef const int ci;
......
......@@ -452,11 +452,6 @@ proc check_profiling_available { test_what } {
return 0
}
# At present, there is no profiling support on NetWare.
if { [istarget *-*-netware*] } {
return 0
}
# uClibc does not have gcrt1.o.
if { [check_effective_target_uclibc]
&& ([lindex $test_what 1] == "-p"
......@@ -470,6 +465,8 @@ proc check_profiling_available { test_what } {
# missing other needed machinery.
if { [istarget mmix-*-*]
|| [istarget arm*-*-eabi*]
|| [istarget picochip-*-*]
|| [istarget *-*-netware*]
|| [istarget arm*-*-elf]
|| [istarget arm*-*-symbianelf*]
|| [istarget avr-*-*]
......@@ -496,6 +493,17 @@ proc check_profiling_available { test_what } {
return $profiling_available_saved
}
# Check to see if a target is "freestanding". This is as per the definition
# in Section 4 of C99 standard. Effectively, it is a target which supports no
# extra headers or libraries other than what is considered essential.
proc check_effective_target_freestanding { } {
if { [istarget picochip-*-*] } then {
return 1
} else {
return 0
}
}
# Return 1 if target has packed layout of structure members by
# default, 0 otherwise. Note that this is slightly different than
# whether the target has "natural alignment": both attributes may be
......
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