diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d7b3796ff3bccd72b4c2a057907d78b1c850c0d3..f89efd337885543fd205bb20061a2b7a58077e02 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,32 @@ +2016-05-25 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> + + * c-c++-common/Wduplicated-cond-1.c: Use smaller const literal. + * c-c++-common/pr60226.c: Require int32plus. + * gcc.c-torture/execute/pr70602.c: Likewise. + * gcc.dg/Warray-bounds-11.c: Use __SIZE_TYPE__ instead of + unsigned long for malloc arg type. + * gcc.dg/asr_div1.c: Require int32plus. + * gcc.dg/enum-mode-1.c: XFAIL for int16. + * gcc.dg/pie-1.c: Require pie. + * gcc.dg/pie-2.c: Likewise. + * gcc.dg/pr59471.c: Require int32plus. + * gcc.dg/pr59963-2.c: XFAIL for int16. + * gcc.dg/pr60114.c: Require int32plus. + * gcc.dg/pr62090-2.c: Use __SIZE_TYPE__ instead of + unsigned long for typedef of size_t. + * gcc.dg/pr63914.c: Require int32plus. + * gcc.dg/pr64536.c: Require pt32plus. + * gcc.dg/pr65658.c: Likewise. + * gcc.dg/pr67271.c: Require int32plus. + * gcc.dg/pr68112.c: Likewise. + * gcc.dg/pr69071.c: Skip for avr target. + * gcc.dg/pr69973.c: Require int32plus. + * gcc.dg/pr70169.c: Skip for avr target. + * gcc.dg/sso-6.c: Require int32plus. + * gcc.dg/sso-7.c: Likewise. + * gcc.dg/sso-8.c: Likewise. + * gcc.dg/vrp-min-max-2.c: Likewise. + 2016-05-25 H.J. Lu <hongjiu.lu@intel.com> PR target/70738 diff --git a/gcc/testsuite/c-c++-common/Wduplicated-cond-1.c b/gcc/testsuite/c-c++-common/Wduplicated-cond-1.c index 4763a84e3d322adcb19d423b7d0fef3949c556f1..179c4194da7de7abeebdb21e6b7482fd1dd65b5e 100644 --- a/gcc/testsuite/c-c++-common/Wduplicated-cond-1.c +++ b/gcc/testsuite/c-c++-common/Wduplicated-cond-1.c @@ -183,7 +183,7 @@ int fn10 (void) { if (foo ()) - return 1732984; + return 17329; else if (foo ()) return 18409; return 0; diff --git a/gcc/testsuite/c-c++-common/pr60226.c b/gcc/testsuite/c-c++-common/pr60226.c index 6a686d75f22d6e5f39311f8e2bf18c9e2ee7aa52..aeb132b849860681a770af5cf15754cb400dc6eb 100644 --- a/gcc/testsuite/c-c++-common/pr60226.c +++ b/gcc/testsuite/c-c++-common/pr60226.c @@ -1,6 +1,7 @@ /* PR c/60226 */ /* { dg-do compile } */ /* { dg-options "-Wno-c++-compat" { target c } } */ +/* { dg-require-effective-target int32plus } */ typedef int __attribute__ ((aligned (1 << 28))) int28; int28 foo[4] = {}; /* { dg-error "alignment of array elements is greater than element size" } */ diff --git a/gcc/testsuite/gcc.c-torture/execute/pr70602.c b/gcc/testsuite/gcc.c-torture/execute/pr70602.c index c6628b037b2e8acc278f5dad9d6fcf92cf53c0f8..4a931fc4b74326e30181d0a9b7d352a4ee20e238 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr70602.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr70602.c @@ -1,4 +1,5 @@ /* PR tree-optimization/70602 */ +/* { dg-require-effective-target int32plus } */ struct __attribute__((packed)) S { diff --git a/gcc/testsuite/gcc.dg/Warray-bounds-11.c b/gcc/testsuite/gcc.dg/Warray-bounds-11.c index 92e92c070ea6a114f54b91869788682b00b4f3bc..089fa00f35ade7f23e85d77c8f04e6e415c25d8e 100644 --- a/gcc/testsuite/gcc.dg/Warray-bounds-11.c +++ b/gcc/testsuite/gcc.dg/Warray-bounds-11.c @@ -1,7 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-O3 -Warray-bounds=2" } */ -extern void* malloc(unsigned long x); +typedef __SIZE_TYPE__ size_t; +extern void* malloc(size_t x); int e[3]; diff --git a/gcc/testsuite/gcc.dg/asr_div1.c b/gcc/testsuite/gcc.dg/asr_div1.c index 11b52469bcd2eefffc9cae936be38f207fdd65db..bf374b82c3fc0d3a6ee1748b4e9a2bee2b71d7d9 100644 --- a/gcc/testsuite/gcc.dg/asr_div1.c +++ b/gcc/testsuite/gcc.dg/asr_div1.c @@ -1,6 +1,7 @@ /* Test division by const int generates only one shift. */ /* { dg-do run } */ /* { dg-options "-O2 -fdump-rtl-combine-all" } */ +/* { dg-require-effective-target int32plus } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/enum-mode-1.c b/gcc/testsuite/gcc.dg/enum-mode-1.c index a701123c728b734b89aeb2930aa4637fc32b58bd..09276b7fac005fd677152d8d0caa1785432f5d26 100644 --- a/gcc/testsuite/gcc.dg/enum-mode-1.c +++ b/gcc/testsuite/gcc.dg/enum-mode-1.c @@ -6,5 +6,5 @@ enum e2 { B = 256 } __attribute__((__packed__, __mode__(__byte__))); /* { dg-err enum e3 { C = __INT_MAX__ } __attribute__((__mode__(__QI__))); /* { dg-error "specified mode too small for enumeral values" } */ enum e4 { D = __INT_MAX__ } __attribute__((__packed__, __mode__(__QI__))); /* { dg-error "specified mode too small for enumeral values" } */ -enum e5 { E = __INT_MAX__ } __attribute__((__mode__(__HI__))); /* { dg-error "specified mode too small for enumeral values" } */ -enum e6 { F = __INT_MAX__ } __attribute__((__packed__, __mode__(__HI__))); /* { dg-error "specified mode too small for enumeral values" } */ +enum e5 { E = __INT_MAX__ } __attribute__((__mode__(__HI__))); /* { dg-error "specified mode too small for enumeral values" "" { xfail int16 } } */ +enum e6 { F = __INT_MAX__ } __attribute__((__packed__, __mode__(__HI__))); /* { dg-error "specified mode too small for enumeral values" "" { xfail int16 } } */ diff --git a/gcc/testsuite/gcc.dg/pie-1.c b/gcc/testsuite/gcc.dg/pie-1.c index e64763bcd77c95736142d0d68c770b4095ff4f7a..3f6e3716682ee6a43b3c9f0a441cffc6bc2d6b9a 100644 --- a/gcc/testsuite/gcc.dg/pie-1.c +++ b/gcc/testsuite/gcc.dg/pie-1.c @@ -1,5 +1,6 @@ /* { dg-do compile { target { ! { *-*-darwin* hppa*-*-* } } } } */ /* { dg-options "-fpie" } */ +/* { dg-require-effective-target pie } */ #if __PIC__ != 1 # error __PIC__ is not 1! diff --git a/gcc/testsuite/gcc.dg/pie-2.c b/gcc/testsuite/gcc.dg/pie-2.c index e185e5156557b1b6d80bb141e76cee44d6a28cd1..7bdc4ac622dd65e70ebd9f93ef34a1c275edae85 100644 --- a/gcc/testsuite/gcc.dg/pie-2.c +++ b/gcc/testsuite/gcc.dg/pie-2.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-fPIE" } */ +/* { dg-require-effective-target pie } */ #if __PIC__ != 2 # error __PIC__ is not 2! diff --git a/gcc/testsuite/gcc.dg/pr59471.c b/gcc/testsuite/gcc.dg/pr59471.c index 7f2a7870a0e2bb386bd792fbe110ac74d0047556..bb27fbe3395bd22fe84f589aac585a8f2d977aef 100644 --- a/gcc/testsuite/gcc.dg/pr59471.c +++ b/gcc/testsuite/gcc.dg/pr59471.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target int32plus } */ typedef unsigned char uint8x4_t __attribute__ ((__vector_size__ (4))); diff --git a/gcc/testsuite/gcc.dg/pr59963-2.c b/gcc/testsuite/gcc.dg/pr59963-2.c index ea0594681a3df3e652627247cbff5f47ea4f9c2b..6e0a6d62816e7fa8fe30e02dfcc49e278a0e944e 100644 --- a/gcc/testsuite/gcc.dg/pr59963-2.c +++ b/gcc/testsuite/gcc.dg/pr59963-2.c @@ -32,5 +32,5 @@ foo (int i) -7, /* { dg-warning "8:negative integer implicitly converted to unsigned type" } */ -8); /* { dg-warning "9:negative integer implicitly converted to unsigned type" } */ bazu (i, i); /* { dg-warning "9:conversion" } */ - bazi (0x8, 0x80000000); /* { dg-warning "14:conversion of unsigned constant value to negative integer" } */ + bazi (0x8, 0x80000000); /* { dg-warning "14:conversion of unsigned constant value to negative integer" "" { xfail int16 } } */ } diff --git a/gcc/testsuite/gcc.dg/pr60114.c b/gcc/testsuite/gcc.dg/pr60114.c index c656a9586aabb3ca1676d114204c61273b8f31fa..a2db9c9480c8fa3cb473adc14b1525890c67f0a9 100644 --- a/gcc/testsuite/gcc.dg/pr60114.c +++ b/gcc/testsuite/gcc.dg/pr60114.c @@ -1,6 +1,7 @@ /* PR c/60114 */ /* { dg-do compile } */ /* { dg-options "-Wconversion" } */ +/* { dg-require-effective-target int32plus } */ struct S { int n, u[2]; }; const signed char z[] = { diff --git a/gcc/testsuite/gcc.dg/pr62090-2.c b/gcc/testsuite/gcc.dg/pr62090-2.c index 5bddc53fbe410fcfd848c878e296f15f1212425d..af82edeb4e8190b9b6d6aa3dbd844458da211929 100644 --- a/gcc/testsuite/gcc.dg/pr62090-2.c +++ b/gcc/testsuite/gcc.dg/pr62090-2.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2" } */ -typedef long unsigned int size_t; +typedef __SIZE_TYPE__ size_t; extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) int snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) diff --git a/gcc/testsuite/gcc.dg/pr63914.c b/gcc/testsuite/gcc.dg/pr63914.c index 8bf18b3df2c5bd440d0d27bf1c38853537096bb3..df8f537b29f3c0e42a40082eebb96c937f2d763c 100644 --- a/gcc/testsuite/gcc.dg/pr63914.c +++ b/gcc/testsuite/gcc.dg/pr63914.c @@ -3,6 +3,7 @@ /* { dg-prune-output "non-standard ABI extension" } */ /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ /* { dg-additional-options "-msse" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-require-effective-target int32plus } */ typedef float __m128 __attribute__ ((__vector_size__ (16))); __m128 a, d, e; diff --git a/gcc/testsuite/gcc.dg/pr64536.c b/gcc/testsuite/gcc.dg/pr64536.c index 9a7982997872820010e97e1d6eae4844eab748aa..f2728fbc938153724fb41bced97724c46c50e21f 100644 --- a/gcc/testsuite/gcc.dg/pr64536.c +++ b/gcc/testsuite/gcc.dg/pr64536.c @@ -2,6 +2,7 @@ /* { dg-do link } */ /* { dg-options "-O2" } */ /* { dg-additional-options "-fPIC" { target fpic } } */ +/* { dg-require-effective-target ptr32plus } */ struct S { long q; } *h; long a, b, g, j, k, *c, *d, *e, *f, *i; diff --git a/gcc/testsuite/gcc.dg/pr65658.c b/gcc/testsuite/gcc.dg/pr65658.c index cce0f2af491db6f10fd8c0c1645bb91f8a08e0c3..bb5c37adbe321da1eaa0ebfe92f21de1d7a394e1 100644 --- a/gcc/testsuite/gcc.dg/pr65658.c +++ b/gcc/testsuite/gcc.dg/pr65658.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-Wuninitialized -O2 -Wno-implicit" } */ +/* { dg-require-effective-target ptr32plus } */ extern int optind; struct undefinfo diff --git a/gcc/testsuite/gcc.dg/pr67271.c b/gcc/testsuite/gcc.dg/pr67271.c index b6988a39174021a41a0b478855f63e2a3a88dfa6..977e25317924aa117b4ca3739105294273f2baf0 100644 --- a/gcc/testsuite/gcc.dg/pr67271.c +++ b/gcc/testsuite/gcc.dg/pr67271.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O" } */ +/* { dg-require-effective-target int32plus } */ extern long int labs (long int j); int diff --git a/gcc/testsuite/gcc.dg/pr68112.c b/gcc/testsuite/gcc.dg/pr68112.c index 0a45b039003186c6f648fe0c425477ab6d79642f..9c7a59c650e68ecd363e3144a78686a71cc032f7 100644 --- a/gcc/testsuite/gcc.dg/pr68112.c +++ b/gcc/testsuite/gcc.dg/pr68112.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -Waggressive-loop-optimizations" } */ +/* { dg-require-effective-target int32plus } */ int *a; diff --git a/gcc/testsuite/gcc.dg/pr69071.c b/gcc/testsuite/gcc.dg/pr69071.c index 1a17a94808fb015906456a6101e2f01562cb42d0..0396bbc70e209cd87827fee152e85066c4aca437 100644 --- a/gcc/testsuite/gcc.dg/pr69071.c +++ b/gcc/testsuite/gcc.dg/pr69071.c @@ -1,6 +1,7 @@ /* PR target/69071 */ /* { dg-do compile } */ /* { dg-options "-O2 -g" } */ +/* { dg-skip-if "Array too big" { "avr-*-*" } } */ void *bar (void *); diff --git a/gcc/testsuite/gcc.dg/pr69973.c b/gcc/testsuite/gcc.dg/pr69973.c index 648bc5679e9aa6ed321485e23c4faea98d637078..86989548ed737ff53603777b62cfe7326589146e 100644 --- a/gcc/testsuite/gcc.dg/pr69973.c +++ b/gcc/testsuite/gcc.dg/pr69973.c @@ -1,2 +1,3 @@ /* { dg-do compile } */ +/* { dg-require-effective-target int32plus } */ typedef int v4si __attribute__ ((vector_size (1 << 29))); diff --git a/gcc/testsuite/gcc.dg/pr70169.c b/gcc/testsuite/gcc.dg/pr70169.c index 8d08f5c6472265ead092f5d9149777b5f933f9f7..41381e721e6f3522862965d9e22539c5536c29c6 100644 --- a/gcc/testsuite/gcc.dg/pr70169.c +++ b/gcc/testsuite/gcc.dg/pr70169.c @@ -1,6 +1,7 @@ /* PR tree-optimization/70169 */ /* { dg-do compile } */ /* { dg-options "-O2 -fno-strict-aliasing -fno-tree-dce" } */ +/* { dg-skip-if "Program and data reside in different address spaces" { "avr-*-*" } } */ int printf (const char *, ...); diff --git a/gcc/testsuite/gcc.dg/sso-6.c b/gcc/testsuite/gcc.dg/sso-6.c index 48759b41e528aaab3b8dbe9229e207e4d68f1a8a..e955fa93686f599adf625159e04fb87fc8cc89a2 100644 --- a/gcc/testsuite/gcc.dg/sso-6.c +++ b/gcc/testsuite/gcc.dg/sso-6.c @@ -1,6 +1,7 @@ /* Test support of scalar_storage_order pragma */ /* { dg-do run } */ +/* { dg-require-effective-target int32plus } */ #pragma scalar_storage_order /* { dg-warning "missing .big-endian.little-endian.default." } */ diff --git a/gcc/testsuite/gcc.dg/sso-7.c b/gcc/testsuite/gcc.dg/sso-7.c index b4d9d65c3919ba74573a818bbc41d8560f183b04..51902ab0e28d1ad72d4dd6c18e4eb8a8b0b3d17c 100644 --- a/gcc/testsuite/gcc.dg/sso-7.c +++ b/gcc/testsuite/gcc.dg/sso-7.c @@ -2,6 +2,7 @@ /* { dg-do run } */ /* { dg-options "-fsso-struct=big-endian" } */ +/* { dg-require-effective-target int32plus } */ struct S1 { diff --git a/gcc/testsuite/gcc.dg/sso-8.c b/gcc/testsuite/gcc.dg/sso-8.c index 19388358ba1bdb0067da4a42295f44ffa6781b29..5148188485fe4241eac90a422c967886d1cb3adc 100644 --- a/gcc/testsuite/gcc.dg/sso-8.c +++ b/gcc/testsuite/gcc.dg/sso-8.c @@ -2,6 +2,7 @@ /* { dg-do run } */ /* { dg-options "-fsso-struct=little-endian" } */ +/* { dg-require-effective-target int32plus } */ struct S1 { diff --git a/gcc/testsuite/gcc.dg/vrp-min-max-2.c b/gcc/testsuite/gcc.dg/vrp-min-max-2.c index a3ccc6644bfb74762a11c46b24a599ac55fac4cb..393608888230e1fd362f34d961126c039912d6fd 100644 --- a/gcc/testsuite/gcc.dg/vrp-min-max-2.c +++ b/gcc/testsuite/gcc.dg/vrp-min-max-2.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-vrp2" } */ +/* { dg-require-effective-target int32plus } */ int Foo (int X) {