Index: lib/dg-pch.exp =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/lib/dg-pch.exp,v retrieving revision 1.4 diff -c -r1.4 dg-pch.exp *** lib/dg-pch.exp 20 Aug 2003 04:04:47 -0000 1.4 --- lib/dg-pch.exp 5 Jan 2005 13:54:03 -0000 *************** *** 18,23 **** --- 18,27 ---- proc dg-pch { subdir test options suffix } { global runtests dg-do-what-default + if [target_info exists gcc,no_pch_tests ] { + return 0; + } + # If we're only testing specific files and this isn't one of them, skip it. if ![runtest_file_p $runtests $test] { Index: lib/target-supports.exp =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/lib/target-supports.exp,v retrieving revision 1.9.4.5 diff -c -r1.9.4.5 target-supports.exp *** lib/target-supports.exp 23 Aug 2004 18:03:13 -0000 1.9.4.5 --- lib/target-supports.exp 5 Jan 2005 13:54:11 -0000 *************** *** 198,203 **** --- 198,204 ---- # missing other needed machinery. if { [istarget mmix-*-*] || [istarget arm*-*-elf] + || [istarget avr*-*] || [istarget strongarm*-*-elf] || [istarget xscale*-*-elf] || [istarget cris-*-*] Index: gcc.c-torture/compile/20001212-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/20001212-1.c,v retrieving revision 1.1 diff -c -r1.1 20001212-1.c *** gcc.c-torture/compile/20001212-1.c 13 Jan 2001 21:35:00 -0000 1.1 --- gcc.c-torture/compile/20001212-1.c 5 Jan 2005 13:54:13 -0000 *************** *** 1,3 **** --- 1,4 ---- + /* { dg-do assemble { skip avr-*-* } } */ typedef struct { long double l; Index: gcc.c-torture/compile/20010226-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/20010226-1.c,v retrieving revision 1.1 diff -c -r1.1 20010226-1.c *** gcc.c-torture/compile/20010226-1.c 9 Jan 2002 21:34:30 -0000 1.1 --- gcc.c-torture/compile/20010226-1.c 5 Jan 2005 13:54:14 -0000 *************** *** 11,21 **** --- 11,25 ---- } if (b) { + #ifndef NO_TRAMPOLINES void bar (void *c) { if (c == a) f2 (c); } + #else + extern void bar (void *c); + #endif f3 (a, bar); } return 0; Index: gcc.c-torture/compile/20010327-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/20010327-1.c,v retrieving revision 1.5 diff -c -r1.5 20010327-1.c *** gcc.c-torture/compile/20010327-1.c 3 Mar 2003 19:02:28 -0000 1.5 --- gcc.c-torture/compile/20010327-1.c 5 Jan 2005 13:54:14 -0000 *************** *** 5,9 **** --- 5,11 ---- Some rare environments might not have the required relocs to support this; they should have this test disabled in the .x file. */ + /* { dg-do assemble { xfail avr-*-* } } */ + extern void _text; static unsigned long x = (unsigned long) &_text - 0x10000000L - 1; Index: gcc.c-torture/compile/20010605-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/20010605-1.c,v retrieving revision 1.2 diff -c -r1.2 20010605-1.c *** gcc.c-torture/compile/20010605-1.c 5 Jun 2001 06:51:02 -0000 1.2 --- gcc.c-torture/compile/20010605-1.c 5 Jan 2005 13:54:15 -0000 *************** *** 1,3 **** --- 1,5 ---- + /* { dg-do assemble { xfail avr-*-* } } */ + int main (int argc, char **argv) { Index: gcc.c-torture/compile/20020604-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/20020604-1.c,v retrieving revision 1.4 diff -c -r1.4 20020604-1.c *** gcc.c-torture/compile/20020604-1.c 23 Dec 2003 20:36:59 -0000 1.4 --- gcc.c-torture/compile/20020604-1.c 5 Jan 2005 13:54:18 -0000 *************** *** 1,6 **** /* The array is too big. */ /* { dg-xfail-if "The array too big" { "h8300-*-*" } { "-mno-h" "-mn" } { "" } } */ ! /* { dg-do assemble { xfail m6811-*-* m6812-*-* } } */ /* PR c/6957 This testcase ICEd at -O2 on IA-32, because --- 1,6 ---- /* The array is too big. */ /* { dg-xfail-if "The array too big" { "h8300-*-*" } { "-mno-h" "-mn" } { "" } } */ ! /* { dg-do assemble { xfail m6811-*-* m6812-*-* avr-*-* } } */ /* PR c/6957 This testcase ICEd at -O2 on IA-32, because Index: gcc.c-torture/compile/20040130-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/20040130-1.c,v retrieving revision 1.1.2.1 diff -c -r1.1.2.1 20040130-1.c *** gcc.c-torture/compile/20040130-1.c 30 Jan 2004 07:07:30 -0000 1.1.2.1 --- gcc.c-torture/compile/20040130-1.c 5 Jan 2005 13:54:20 -0000 *************** *** 7,12 **** --- 7,13 ---- struct { + #if ( __INT_MAX__ > 32768 ) unsigned char G936:7; unsigned short G937:6; unsigned int :4; *************** *** 16,21 **** --- 17,33 ---- unsigned short :16; unsigned int :18; unsigned short G939:9; + #else + unsigned char G936:7; + unsigned short G937:6; + unsigned int :4; + unsigned int :14; + unsigned int G938:8; + unsigned long int :30; + unsigned int :16; + unsigned long int :18; + unsigned int G939:9; + #endif } G928b; void TestG928(void) Index: gcc.c-torture/compile/930621-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/930621-1.c,v retrieving revision 1.3 diff -c -r1.3 930621-1.c *** gcc.c-torture/compile/930621-1.c 21 May 2001 12:20:51 -0000 1.3 --- gcc.c-torture/compile/930621-1.c 5 Jan 2005 13:54:28 -0000 *************** *** 2,7 **** --- 2,11 ---- # define BYTEMEM_SIZE 10000L #endif + #if defined(STACK_SIZE) && (STACK_SIZE < 2048) + # define BYTEMEM_SIZE 1000L + #endif + #ifndef BYTEMEM_SIZE # define BYTEMEM_SIZE 45000L #endif Index: gcc.c-torture/compile/961203-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/961203-1.c,v retrieving revision 1.5 diff -c -r1.5 961203-1.c *** gcc.c-torture/compile/961203-1.c 23 Dec 2003 20:36:59 -0000 1.5 --- gcc.c-torture/compile/961203-1.c 5 Jan 2005 13:54:28 -0000 *************** *** 1,7 **** /* The structure is too large for the xstormy16 - won't fit in 16 bits. */ /* { dg-xfail-if "The array too big" { "h8300-*-*" } { "-mno-h" "-mn" } { "" } } */ ! /* { dg-do assemble { xfail xstormy16-*-* m6811-*-* m6812-*-* } } */ struct s { char a[0x32100000]; --- 1,7 ---- /* The structure is too large for the xstormy16 - won't fit in 16 bits. */ /* { dg-xfail-if "The array too big" { "h8300-*-*" } { "-mno-h" "-mn" } { "" } } */ ! /* { dg-do assemble { skip avr-*-* xstormy16-*-* m6811-*-* m6812-*-* } } */ struct s { char a[0x32100000]; Index: gcc.c-torture/compile/980506-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/980506-1.c,v retrieving revision 1.5 diff -c -r1.5 980506-1.c *** gcc.c-torture/compile/980506-1.c 23 Dec 2003 20:36:59 -0000 1.5 --- gcc.c-torture/compile/980506-1.c 5 Jan 2005 13:54:28 -0000 *************** *** 1,6 **** /* The arrays are too large for the xstormy16 - won't fit in 16 bits. */ /* { dg-xfail-if "The array too big" { "h8300-*-*" } { "-mno-h" "-mn" } { "" } } */ ! /* { dg-do assemble { xfail xstormy16-*-* m6811-*-* m6812-*-* } } */ unsigned char TIFFFax2DMode[20][256]; unsigned char TIFFFax2DNextState[20][256]; --- 1,6 ---- /* The arrays are too large for the xstormy16 - won't fit in 16 bits. */ /* { dg-xfail-if "The array too big" { "h8300-*-*" } { "-mno-h" "-mn" } { "" } } */ ! /* { dg-do assemble { skip avr-*-* xstormy16-*-* m6811-*-* m6812-*-* } } */ unsigned char TIFFFax2DMode[20][256]; unsigned char TIFFFax2DNextState[20][256]; Index: gcc.c-torture/execute/20020720-1.x =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/20020720-1.x,v retrieving revision 1.12.6.1 diff -c -r1.12.6.1 20020720-1.x *** gcc.c-torture/execute/20020720-1.x 16 Feb 2004 18:10:11 -0000 1.12.6.1 --- gcc.c-torture/execute/20020720-1.x 5 Jan 2005 13:54:39 -0000 *************** *** 28,34 **** global compiler_conditional_xfail_data set compiler_conditional_xfail_data { "This test fails to optimize completely on certain platforms." \ ! { "xtensa-*-*" "sh-*-*" "arm*-*-*" "strongarm*-*-*" "xscale*-*-*" \ "h8300*-*-*" "cris-*-*" "frv-*-*" } \ { "*" } \ { "-O0" } --- 28,34 ---- global compiler_conditional_xfail_data set compiler_conditional_xfail_data { "This test fails to optimize completely on certain platforms." \ ! { "avr-*-*" "xtensa-*-*" "sh-*-*" "arm*-*-*" "strongarm*-*-*" "xscale*-*-*" \ "h8300*-*-*" "cris-*-*" "frv-*-*" } \ { "*" } \ { "-O0" } Index: gcc.c-torture/execute/20040331-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/20040331-1.c,v retrieving revision 1.1.2.1 diff -c -r1.1.2.1 20040331-1.c *** gcc.c-torture/execute/20040331-1.c 1 Apr 2004 16:09:15 -0000 1.1.2.1 --- gcc.c-torture/execute/20040331-1.c 5 Jan 2005 13:54:42 -0000 *************** *** 5,11 **** int main (void) { ! struct { int count: 31; } s = { 0 }; while (s.count--) abort (); exit (0); --- 5,15 ---- int main (void) { ! #if ( __INT_MAX__ > 32768 ) ! struct { int count: 31;} s = { 0 }; ! #else ! struct { int count: 15;} s = { 0 }; ! #endif while (s.count--) abort (); exit (0); Index: gcc.c-torture/execute/920501-8.x =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/920501-8.x,v retrieving revision 1.1 diff -c -r1.1 920501-8.x *** gcc.c-torture/execute/920501-8.x 11 Jun 2001 22:26:58 -0000 1.1 --- gcc.c-torture/execute/920501-8.x 5 Jan 2005 13:54:42 -0000 *************** *** 1,5 **** # sprintf() does not support %f on m6811/m6812 target. ! if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"]} { return 1 } return 0 --- 1,5 ---- # sprintf() does not support %f on m6811/m6812 target. ! if { [istarget "avr-*-*"] || [istarget "m6811-*-*"] || [istarget "m6812-*-*"]} { return 1 } return 0 Index: gcc.c-torture/execute/930513-1.x =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/930513-1.x,v retrieving revision 1.1 diff -c -r1.1 930513-1.x *** gcc.c-torture/execute/930513-1.x 11 Jun 2001 22:26:58 -0000 1.1 --- gcc.c-torture/execute/930513-1.x 5 Jan 2005 13:54:44 -0000 *************** *** 1,5 **** # sprintf() does not support %f on m6811/m6812 target. ! if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"]} { return 1 } return 0 --- 1,5 ---- # sprintf() does not support %f on m6811/m6812 target. ! if { [istarget "avr-*-*"] || [istarget "m6811-*-*"] || [istarget "m6812-*-*"]} { return 1 } return 0 Index: gcc.c-torture/execute/960405-1.x =================================================================== RCS file: gcc.c-torture/execute/960405-1.x diff -N gcc.c-torture/execute/960405-1.x *** /dev/null 1 Jan 1970 00:00:00 -0000 --- gcc.c-torture/execute/960405-1.x 5 Jan 2005 13:54:46 -0000 *************** *** 0 **** --- 1,5 ---- + # avr does not support long doubles. + if { [istarget "avr-*-*"] } { + return 1 + } + return 0 Index: gcc.c-torture/execute/builtin-bitops-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/builtin-bitops-1.c,v retrieving revision 1.2 diff -c -r1.2 builtin-bitops-1.c *** gcc.c-torture/execute/builtin-bitops-1.c 9 Feb 2003 13:09:45 -0000 1.2 --- gcc.c-torture/execute/builtin-bitops-1.c 5 Jan 2005 13:54:53 -0000 *************** *** 1,5 **** --- 1,7 ---- #include + /* File includes assert.h but does not acctually use it #include + */ #if __INT_MAX__ > 2147483647L # if __INT_MAX__ >= 9223372036854775807L Index: gcc.c-torture/execute/ffs-1.x =================================================================== RCS file: gcc.c-torture/execute/ffs-1.x diff -N gcc.c-torture/execute/ffs-1.x *** /dev/null 1 Jan 1970 00:00:00 -0000 --- gcc.c-torture/execute/ffs-1.x 5 Jan 2005 13:54:56 -0000 *************** *** 0 **** --- 1,4 ---- + if { [istarget "avr-*-*"] } { + return 1 + } + return 0 Index: gcc.c-torture/execute/ffs-2.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/ffs-2.c,v retrieving revision 1.1 diff -c -r1.1 ffs-2.c *** gcc.c-torture/execute/ffs-2.c 30 Sep 2002 21:43:01 -0000 1.1 --- gcc.c-torture/execute/ffs-2.c 5 Jan 2005 13:54:56 -0000 *************** *** 1,3 **** --- 1,5 ---- + /* { dg-do run { xfail avr-*-* } } */ + struct { int input; Index: gcc.c-torture/execute/ffs-2.x =================================================================== RCS file: gcc.c-torture/execute/ffs-2.x diff -N gcc.c-torture/execute/ffs-2.x *** /dev/null 1 Jan 1970 00:00:00 -0000 --- gcc.c-torture/execute/ffs-2.x 5 Jan 2005 13:54:56 -0000 *************** *** 0 **** --- 1,4 ---- + if { [istarget "avr-*-*"] } { + return 1 + } + return 0 Index: gcc.c-torture/execute/va-arg-21.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/va-arg-21.c,v retrieving revision 1.2 diff -c -r1.2 va-arg-21.c *** gcc.c-torture/execute/va-arg-21.c 14 Dec 2000 15:31:26 -0000 1.2 --- gcc.c-torture/execute/va-arg-21.c 5 Jan 2005 13:55:04 -0000 *************** *** 5,10 **** --- 5,12 ---- Written by Kaveh R. Ghazi, 10/31/2000. */ + /* { dg-do run { xfail avr-*-* } } */ + #include #include #include Index: gcc.c-torture/execute/va-arg-21.x =================================================================== RCS file: gcc.c-torture/execute/va-arg-21.x diff -N gcc.c-torture/execute/va-arg-21.x *** /dev/null 1 Jan 1970 00:00:00 -0000 --- gcc.c-torture/execute/va-arg-21.x 5 Jan 2005 13:55:04 -0000 *************** *** 0 **** --- 1,4 ---- + if { [istarget "avr-*-*"] } { + return 1 + } + return 0 Index: gcc.c-torture/execute/ieee/920810-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/ieee/920810-1.c,v retrieving revision 1.2 diff -c -r1.2 920810-1.c *** gcc.c-torture/execute/ieee/920810-1.c 16 Dec 1998 22:16:42 -0000 1.2 --- gcc.c-torture/execute/ieee/920810-1.c 5 Jan 2005 13:55:07 -0000 *************** *** 1,3 **** #include ! double normalize(x)double x;{if(x==0)x=0;return x;} ! main(){char b[9];sprintf(b,"%g",normalize(-0.0));if(strcmp(b,"0"))abort();exit(0);} --- 1,13 ---- #include ! double normalize(x) ! double x; ! { if(x==0)x=0; ! return x; ! } ! main() ! {char b[9]; ! sprintf(b,"%g",normalize(-0.0)); ! if(strcmp(b,"0")) ! abort(); ! exit(0); ! } Index: gcc.c-torture/execute/ieee/920810-1.x =================================================================== RCS file: gcc.c-torture/execute/ieee/920810-1.x diff -N gcc.c-torture/execute/ieee/920810-1.x *** /dev/null 1 Jan 1970 00:00:00 -0000 --- gcc.c-torture/execute/ieee/920810-1.x 5 Jan 2005 13:55:07 -0000 *************** *** 0 **** --- 1,4 ---- + if { [istarget "avr-*-*"] } { + return 1 + } + return 0 Index: gcc.c-torture/execute/ieee/fp-cmp-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-1.c,v retrieving revision 1.4 diff -c -r1.4 fp-cmp-1.c *** gcc.c-torture/execute/ieee/fp-cmp-1.c 2 Apr 2001 23:05:14 -0000 1.4 --- gcc.c-torture/execute/ieee/fp-cmp-1.c 5 Jan 2005 13:55:07 -0000 *************** *** 1,5 **** --- 1,9 ---- + #ifndef SIGNAL_SUPPRESS + #include + #endif + double dnan = 1.0/0.0 - 1.0/0.0; double x = 1.0; Index: gcc.c-torture/execute/ieee/fp-cmp-2.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-2.c,v retrieving revision 1.3 diff -c -r1.3 fp-cmp-2.c *** gcc.c-torture/execute/ieee/fp-cmp-2.c 2 Apr 2001 23:05:14 -0000 1.3 --- gcc.c-torture/execute/ieee/fp-cmp-2.c 5 Jan 2005 13:55:07 -0000 *************** *** 1,4 **** --- 1,6 ---- + #ifndef SIGNAL_SUPPRESS #include + #endif float fnan = 1.0f/0.0f - 1.0f/0.0f; float x = 1.0f; Index: gcc.c-torture/execute/ieee/fp-cmp-3.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-3.c,v retrieving revision 1.3 diff -c -r1.3 fp-cmp-3.c *** gcc.c-torture/execute/ieee/fp-cmp-3.c 2 Apr 2001 23:05:14 -0000 1.3 --- gcc.c-torture/execute/ieee/fp-cmp-3.c 5 Jan 2005 13:55:07 -0000 *************** *** 1,5 **** --- 1,9 ---- + #ifndef SIGNAL_SUPPRESS + #include + #endif + long double dnan = 1.0l/0.0l - 1.0l/0.0l; long double x = 1.0l; Index: gcc.dg/20040625-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/20040625-1.c,v retrieving revision 1.1.16.1 diff -c -r1.1.16.1 20040625-1.c *** gcc.dg/20040625-1.c 19 Aug 2004 22:38:57 -0000 1.1.16.1 --- gcc.dg/20040625-1.c 5 Jan 2005 13:55:24 -0000 *************** *** 1,7 **** /* { dg-do run } */ /* { dg-options "-O2" } */ /* { dg-options "-mminimal-toc" { target powerpc64-*-* } } */ ! extern void abort (void); extern void exit (int); --- 1,7 ---- /* { dg-do run } */ /* { dg-options "-O2" } */ /* { dg-options "-mminimal-toc" { target powerpc64-*-* } } */ ! /* { dg-xfail-if "test assumes int to be 32 bit" "avr-*-*" "*" "" } */ extern void abort (void); extern void exit (int); Index: gcc.dg/Wpadded.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/Wpadded.c,v retrieving revision 1.1 diff -c -r1.1 Wpadded.c *** gcc.dg/Wpadded.c 9 Jun 2003 23:04:50 -0000 1.1 --- gcc.dg/Wpadded.c 5 Jan 2005 13:55:25 -0000 *************** *** 1,6 **** /* Source: EMC. */ ! /* { dg-do compile } */ /* { dg-options "-Wpadded" } */ struct foo { --- 1,6 ---- /* Source: EMC. */ ! /* { dg-do compile {skip avr-*-*} } */ /* { dg-options "-Wpadded" } */ struct foo { Index: gcc.dg/array-quals-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/array-quals-1.c,v retrieving revision 1.2 diff -c -r1.2 array-quals-1.c *** gcc.dg/array-quals-1.c 9 Jan 2004 00:28:29 -0000 1.2 --- gcc.dg/array-quals-1.c 5 Jan 2005 13:55:29 -0000 *************** *** 2,8 **** should never actually get const on the final array type, but all should end up in a read-only section. PR c/12165. */ /* Origin: Joseph Myers */ ! /* { dg-do compile } */ /* { dg-final { scan-assembler-not "\\.data(?!\\.rel\\.ro)" } } */ static const int a[2] = { 1, 2 }; const int a1[2] = { 1, 2 }; --- 2,8 ---- should never actually get const on the final array type, but all should end up in a read-only section. PR c/12165. */ /* Origin: Joseph Myers */ ! /* { dg-do compile {skip avr-*-*} } */ /* { dg-final { scan-assembler-not "\\.data(?!\\.rel\\.ro)" } } */ static const int a[2] = { 1, 2 }; const int a1[2] = { 1, 2 }; Index: gcc.dg/bitfld-3.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/bitfld-3.c,v retrieving revision 1.2 diff -c -r1.2 bitfld-3.c *** gcc.dg/bitfld-3.c 7 Aug 2002 23:20:35 -0000 1.2 --- gcc.dg/bitfld-3.c 5 Jan 2005 13:55:31 -0000 *************** *** 1,5 **** /* Test for bitfield alignment in structs and unions. */ ! /* { dg-do run } */ /* { dg-options "-O2" } */ extern void abort (void); --- 1,5 ---- /* Test for bitfield alignment in structs and unions. */ ! /* { dg-do run {skip avr-*-*} } */ /* { dg-options "-O2" } */ extern void abort (void); Index: gcc.dg/builtin-return-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/builtin-return-1.c,v retrieving revision 1.1 diff -c -r1.1 builtin-return-1.c *** gcc.dg/builtin-return-1.c 5 Dec 2003 06:46:35 -0000 1.1 --- gcc.dg/builtin-return-1.c 5 Jan 2005 13:55:31 -0000 *************** *** 1,6 **** /* PR middle-end/11151 */ /* Originator: Andrew Church */ ! /* { dg-do run } */ /* This used to fail on SPARC because the (undefined) return value of 'bar' was overwriting that of 'foo'. */ --- 1,6 ---- /* PR middle-end/11151 */ /* Originator: Andrew Church */ ! /* { dg-do run {xfail avr-*-*} } */ /* This used to fail on SPARC because the (undefined) return value of 'bar' was overwriting that of 'foo'. */ Index: gcc.dg/builtins-18.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/builtins-18.c,v retrieving revision 1.3 diff -c -r1.3 builtins-18.c *** gcc.dg/builtins-18.c 24 Dec 2003 06:52:27 -0000 1.3 --- gcc.dg/builtins-18.c 5 Jan 2005 13:55:32 -0000 *************** *** 5,11 **** Written by Roger Sayle, 1st June 2003. */ ! /* { dg-do link } */ /* { dg-options "-O2 -ffast-math" } */ #include "builtins-config.h" --- 5,11 ---- Written by Roger Sayle, 1st June 2003. */ ! /* { dg-do link {xfail avr-*-*} } */ /* { dg-options "-O2 -ffast-math" } */ #include "builtins-config.h" Index: gcc.dg/builtins-20.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/builtins-20.c,v retrieving revision 1.3 diff -c -r1.3 builtins-20.c *** gcc.dg/builtins-20.c 24 Dec 2003 06:52:27 -0000 1.3 --- gcc.dg/builtins-20.c 5 Jan 2005 13:55:33 -0000 *************** *** 5,11 **** Written by Roger Sayle, 8th June 2003. */ ! /* { dg-do link } */ /* { dg-options "-O2 -ffast-math" } */ #include "builtins-config.h" --- 5,11 ---- Written by Roger Sayle, 8th June 2003. */ ! /* { dg-do link {xfail avr-*-* } } */ /* { dg-options "-O2 -ffast-math" } */ #include "builtins-config.h" Index: gcc.dg/const-elim-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/const-elim-1.c,v retrieving revision 1.4.4.4 diff -c -r1.4.4.4 const-elim-1.c *** gcc.dg/const-elim-1.c 24 Apr 2004 00:36:09 -0000 1.4.4.4 --- gcc.dg/const-elim-1.c 5 Jan 2005 13:55:44 -0000 *************** *** 5,11 **** warning but doesn't. (Hard to fix -- the lexer is not aware of the parser's state.) */ ! /* { dg-do compile } */ /* { dg-options "-O2 -std=c99" } */ /* This test fails on all processors where we use a block move to initialize "S" in test2. The RTL optimizers are not clever enough --- 5,11 ---- warning but doesn't. (Hard to fix -- the lexer is not aware of the parser's state.) */ ! /* { dg-do compile { xfail avr-*-* } } */ /* { dg-options "-O2 -std=c99" } */ /* This test fails on all processors where we use a block move to initialize "S" in test2. The RTL optimizers are not clever enough *************** *** 13,19 **** Currently known targets with this problem: all ARM; PA32 ("hppa*.*" matches "hppa2.0w" but not "hppa64"); PPC if string instructions are enabled (notably under AIX); S/390; Xtensa. */ ! /* { dg-final { scan-assembler-not "L\\\$?C\[^A-Z\]" { xfail arm-*-* strongarm-*-* xscale-*-* hppa-*-* hppa*.*-*-* powerpc*-*-aix* s390*-*-* xtensa-*-* } } } */ #define I (__extension__ 1.0iF) --- 13,19 ---- Currently known targets with this problem: all ARM; PA32 ("hppa*.*" matches "hppa2.0w" but not "hppa64"); PPC if string instructions are enabled (notably under AIX); S/390; Xtensa. */ ! /* { dg-final { scan-assembler-not "L\\\$?C\[^A-Z\]" { xfail avr-*-* arm-*-* strongarm-*-* xscale-*-* hppa-*-* hppa*.*-*-* powerpc*-*-aix* s390*-*-* xtensa-*-* } } } */ #define I (__extension__ 1.0iF) Index: gcc.dg/ftrapv-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/ftrapv-1.c,v retrieving revision 1.1.22.1 diff -c -r1.1.22.1 ftrapv-1.c *** gcc.dg/ftrapv-1.c 26 Sep 2004 20:47:23 -0000 1.1.22.1 --- gcc.dg/ftrapv-1.c 5 Jan 2005 13:55:45 -0000 *************** *** 5,11 **** Written by Falk Hueffner, 20th May 2004. */ ! /* { dg-do run } */ /* { dg-options "-ftrapv" } */ __attribute__((noinline)) int --- 5,11 ---- Written by Falk Hueffner, 20th May 2004. */ ! /* { dg-do run {xfail avr-*-* } } */ /* { dg-options "-ftrapv" } */ __attribute__((noinline)) int Index: gcc.dg/i386-sse-8.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/i386-sse-8.c,v retrieving revision 1.1.2.1 diff -c -r1.1.2.1 i386-sse-8.c *** gcc.dg/i386-sse-8.c 6 Mar 2004 10:19:01 -0000 1.1.2.1 --- gcc.dg/i386-sse-8.c 5 Jan 2005 13:55:49 -0000 *************** *** 1,7 **** /* PR target/14313 */ /* Origin: */ ! /* { dg-do compile } */ /* { dg-options "-march=pentium3" { target i?86-*-* x86_64-*-* } } */ int main() --- 1,7 ---- /* PR target/14313 */ /* Origin: */ ! /* { dg-do compile {skip avr-*-* } } */ /* { dg-options "-march=pentium3" { target i?86-*-* x86_64-*-* } } */ int main() Index: gcc.dg/loop-3.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/loop-3.c,v retrieving revision 1.1.2.1 diff -c -r1.1.2.1 loop-3.c *** gcc.dg/loop-3.c 23 Apr 2004 22:10:47 -0000 1.1.2.1 --- gcc.dg/loop-3.c 5 Jan 2005 13:55:50 -0000 *************** *** 1,7 **** /* PR optimization/13985 */ /* Copied from gcc.c-torture/compile/930621-1.c */ ! /* { dg-do compile } */ /* { dg-options "-O3" } */ /* { dg-options "-O3 -mtune=i386" { target i?86-*-* x86_64-*-* } } */ --- 1,7 ---- /* PR optimization/13985 */ /* Copied from gcc.c-torture/compile/930621-1.c */ ! /* { dg-do compile {skip avr-*-* } } */ /* { dg-options "-O3" } */ /* { dg-options "-O3 -mtune=i386" { target i?86-*-* x86_64-*-* } } */ Index: gcc.dg/section1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/section1.c,v retrieving revision 1.1 diff -c -r1.1 section1.c *** gcc.dg/section1.c 15 Mar 2003 01:42:13 -0000 1.1 --- gcc.dg/section1.c 5 Jan 2005 13:55:56 -0000 *************** *** 1,5 **** --- 1,6 ---- /* PR optimization/6871 */ /* Constant variables belong in .rodata, not .bss. */ + /* { dg-do compile { skip avr-*-* } } */ /* { dg-final { scan-assembler-not "\.bss" } } */ const int i = 0; Index: gcc.dg/trampoline-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/trampoline-1.c,v retrieving revision 1.1 diff -c -r1.1 trampoline-1.c *** gcc.dg/trampoline-1.c 10 Nov 2003 08:11:47 -0000 1.1 --- gcc.dg/trampoline-1.c 5 Jan 2005 13:55:58 -0000 *************** *** 9,14 **** --- 9,15 ---- extern void abort(void); + #ifndef NO_TRAMPOLINES void foo (void) { const int correct[1100] = {1, 0, -2, 0, 1, 0, 1, -1, -10, -30, -67}; *************** *** 42,50 **** --- 43,56 ---- abort(); } } + #endif int main (void) { + #ifdef NO_TRAMPOLINES + exit (0); + #else foo (); return 0; + #endif } Index: gcc.dg/typeof-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/typeof-1.c,v retrieving revision 1.1 diff -c -r1.1 typeof-1.c *** gcc.dg/typeof-1.c 15 Aug 2002 21:17:14 -0000 1.1 --- gcc.dg/typeof-1.c 5 Jan 2005 13:55:58 -0000 *************** *** 1,5 **** /* Test typeof with __asm redirection. */ ! /* { dg-do compile } */ /* { dg-options "-O2" } */ extern int foo1; --- 1,5 ---- /* Test typeof with __asm redirection. */ ! /* { dg-do compile { xfail avr-*-* } } */ /* { dg-options "-O2" } */ extern int foo1; Index: gcc.dg/ultrasp4.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/ultrasp4.c,v retrieving revision 1.1.80.1 diff -c -r1.1.80.1 ultrasp4.c *** gcc.dg/ultrasp4.c 5 Apr 2004 04:15:51 -0000 1.1.80.1 --- gcc.dg/ultrasp4.c 5 Jan 2005 13:56:03 -0000 *************** *** 1,5 **** /* Simplified from PR target/5309. */ ! /* { dg-do compile } */ /* { dg-options "-O2" } */ /* { dg-options "-O2 -mcpu=ultrasparc" { target sparc64-*-* sparcv9-*-* } } */ --- 1,7 ---- /* Simplified from PR target/5309. */ ! /* Test case fails on avr because of pointers are not of type long for this ! reason we have more warning messages. Case usually compiles. */ ! /* { dg-do compile { skip avr-*-* } } */ /* { dg-options "-O2" } */ /* { dg-options "-O2 -mcpu=ultrasparc" { target sparc64-*-* sparcv9-*-* } } */ Index: gcc.dg/wchar_t-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/wchar_t-1.c,v retrieving revision 1.7 diff -c -r1.7 wchar_t-1.c *** gcc.dg/wchar_t-1.c 26 May 2003 18:10:20 -0000 1.7 --- gcc.dg/wchar_t-1.c 5 Jan 2005 13:56:05 -0000 *************** *** 1,4 **** ! /* { dg-do compile } */ /* { dg-options "-Wall" } */ /* Compile with -Wall to get a warning if built-in and system wchar_t don't --- 1,4 ---- ! /* { dg-do compile {xfail avr-*-*} } */ /* { dg-options "-Wall" } */ /* Compile with -Wall to get a warning if built-in and system wchar_t don't Index: gcc.dg/wint_t-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/wint_t-1.c,v retrieving revision 1.7 diff -c -r1.7 wint_t-1.c *** gcc.dg/wint_t-1.c 26 May 2003 18:10:20 -0000 1.7 --- gcc.dg/wint_t-1.c 5 Jan 2005 13:56:05 -0000 *************** *** 1,4 **** ! /* { dg-do compile } */ /* { dg-options "-Wall" } */ /* Compile with -Wall to get a warning if built-in and system wint_t don't --- 1,5 ---- ! /* avr does not have wide chars so far. */ ! /* { dg-do compile { skip avr-*-* } } */ /* { dg-options "-Wall" } */ /* Compile with -Wall to get a warning if built-in and system wint_t don't Index: gcc.dg/wtr-conversion-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/wtr-conversion-1.c,v retrieving revision 1.3 diff -c -r1.3 wtr-conversion-1.c *** gcc.dg/wtr-conversion-1.c 3 Jul 2002 02:41:34 -0000 1.3 --- gcc.dg/wtr-conversion-1.c 5 Jan 2005 13:56:05 -0000 *************** *** 1,7 **** /* Test for -Wtraditional warnings on conversions by prototypes. Note, gcc should omit these warnings in system header files. By Kaveh R. Ghazi 4/09/2001. */ ! /* { dg-do compile } */ /* { dg-options "-Wtraditional" } */ extern void foo_i (int); --- 1,9 ---- /* Test for -Wtraditional warnings on conversions by prototypes. Note, gcc should omit these warnings in system header files. By Kaveh R. Ghazi 4/09/2001. */ ! /* avr generates slightly different warning messages, probably since ! float == double. */ ! /* { dg-do compile { xfail avr-*-* } } */ /* { dg-options "-Wtraditional" } */ extern void foo_i (int); Index: gcc.dg/compat/struct-align-1_main.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/compat/struct-align-1_main.c,v retrieving revision 1.1 diff -c -r1.1 struct-align-1_main.c *** gcc.dg/compat/struct-align-1_main.c 3 Jul 2003 20:15:48 -0000 1.1 --- gcc.dg/compat/struct-align-1_main.c 5 Jan 2005 13:56:11 -0000 *************** *** 1,6 **** --- 1,9 ---- /* Test compatibility of structure layout and alignment for structs which contain doubles. The original structs here are from PR 10645. */ + /* This test case implicitly assumes int to be 32 bit wide. */ + /* { dg-do run { skip avr-*-* } } */ + extern void struct_align_1_x (void); extern void exit (int); int fails; Index: gcc.dg/compat/vector-1_x.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/compat/vector-1_x.c,v retrieving revision 1.3 diff -c -r1.3 vector-1_x.c *** gcc.dg/compat/vector-1_x.c 27 Nov 2003 10:43:01 -0000 1.3 --- gcc.dg/compat/vector-1_x.c 5 Jan 2005 13:56:21 -0000 *************** *** 1,5 **** --- 1,6 ---- /* { dg-options "-w" } */ /* { dg-xfail-if "PR target/12916" "sparc*-*-*" "*" "" } */ + /* { dg-xfail-if "avr has vector machine modes so far" "avr-*-*" "*" "" } */ #include "compat-common.h" #include "vector-defs.h" Index: gcc.dg/compat/vector-2_x.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/compat/vector-2_x.c,v retrieving revision 1.3 diff -c -r1.3 vector-2_x.c *** gcc.dg/compat/vector-2_x.c 27 Nov 2003 10:43:01 -0000 1.3 --- gcc.dg/compat/vector-2_x.c 5 Jan 2005 13:56:21 -0000 *************** *** 1,5 **** --- 1,6 ---- /* { dg-options "-w" } */ /* { dg-xfail-if "PR target/12916" "sparc*-*-*" "*" "" } */ + /* { dg-xfail-if "no vector machine modes for avr." "avr-*-*" "*" "" } */ #include "compat-common.h" #include "vector-defs.h" Index: gcc.dg/cpp/if-2.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/cpp/if-2.c,v retrieving revision 1.6 diff -c -r1.6 if-2.c *** gcc.dg/cpp/if-2.c 18 Jan 2001 12:00:38 -0000 1.6 --- gcc.dg/cpp/if-2.c 5 Jan 2005 13:56:27 -0000 *************** *** 19,25 **** #if 'abcd' /* { dg-warning "multi-character character constant" "multi-character charconst" } */ #endif ! #if 'abcdefghi' /* { dg-error "character constant (is )?too long" "charconst too long" } */ #endif --- 19,25 ---- #if 'abcd' /* { dg-warning "multi-character character constant" "multi-character charconst" } */ #endif ! /* { dg-xfail-if "avr int is 2 byte wide." "avr-*-*" "*" "" } */ #if 'abcdefghi' /* { dg-error "character constant (is )?too long" "charconst too long" } */ #endif Index: gcc.dg/torture/nested-fn-1.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/torture/nested-fn-1.c,v retrieving revision 1.1.2.1 diff -c -r1.1.2.1 nested-fn-1.c *** gcc.dg/torture/nested-fn-1.c 21 Jul 2004 07:37:18 -0000 1.1.2.1 --- gcc.dg/torture/nested-fn-1.c 5 Jan 2005 13:56:51 -0000 *************** *** 1,6 **** /* PR middle-end/15345, c/16450 */ /* Test whether unused nested functions aren't emitted into the assembly. */ ! /* { dg-do compile } */ /* { dg-options "-g0" } */ int --- 1,7 ---- /* PR middle-end/15345, c/16450 */ /* Test whether unused nested functions aren't emitted into the assembly. */ ! /* avr does not support trampolines and has no support for nested functions. */ ! /* { dg-do compile { xfail avr-*-* } } */ /* { dg-options "-g0" } */ int Index: gcc.dg/weak/typeof-2.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/weak/typeof-2.c,v retrieving revision 1.5 diff -c -r1.5 typeof-2.c *** gcc.dg/weak/typeof-2.c 6 Jun 2003 21:34:41 -0000 1.5 --- gcc.dg/weak/typeof-2.c 5 Jan 2005 13:56:51 -0000 *************** *** 1,5 **** /* Test typeof with __asm redirection. */ ! /* { dg-do compile } */ /* { dg-require-weak "" } */ /* { dg-options "-O2" } */ --- 1,5 ---- /* Test typeof with __asm redirection. */ ! /* { dg-do compile { xfail avr-*-* } } */ /* { dg-require-weak "" } */ /* { dg-options "-O2" } */ Index: gcc.dg/weak/weak-3.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/weak/weak-3.c,v retrieving revision 1.4 diff -c -r1.4 weak-3.c *** gcc.dg/weak/weak-3.c 12 Oct 2003 22:09:28 -0000 1.4 --- gcc.dg/weak/weak-3.c 5 Jan 2005 13:56:51 -0000 *************** *** 1,4 **** ! /* { dg-do compile } */ /* { dg-require-weak "" } */ /* { dg-options "-fno-common" } */ --- 1,4 ---- ! /* { dg-do compile {xfail avr-*-* } } */ /* { dg-require-weak "" } */ /* { dg-options "-fno-common" } */ Index: gcc.dg/weak/weak-5.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/weak/weak-5.c,v retrieving revision 1.2 diff -c -r1.2 weak-5.c *** gcc.dg/weak/weak-5.c 6 Jun 2003 21:34:41 -0000 1.2 --- gcc.dg/weak/weak-5.c 5 Jan 2005 13:56:51 -0000 *************** *** 1,4 **** ! /* { dg-do compile } */ /* { dg-require-weak "" } */ /* { dg-options "-fno-common" } */ --- 1,4 ---- ! /* { dg-do compile {xfail avr-*-* } } */ /* { dg-require-weak "" } */ /* { dg-options "-fno-common" } */ Index: gcc.dg/weak/weak-9.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.dg/weak/weak-9.c,v retrieving revision 1.2 diff -c -r1.2 weak-9.c *** gcc.dg/weak/weak-9.c 6 Jun 2003 21:34:41 -0000 1.2 --- gcc.dg/weak/weak-9.c 5 Jan 2005 13:56:51 -0000 *************** *** 1,4 **** ! /* { dg-do compile } */ /* { dg-require-weak "" } */ /* { dg-options "-fno-common" } */ --- 1,8 ---- ! /* The tests for ordinary weak symbols would pass on avr. However ! tests will be skipped since otherwise the alias cases would generate ! spurious failure messages. */ ! ! /* { dg-do compile { skip avr-*-* } } */ /* { dg-require-weak "" } */ /* { dg-options "-fno-common" } */