Commit 125f02ed by Senthil Kumar Selvaraj Committed by Mike Stump

Wduplicated-cond-1.c: Use smaller const literal.

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.

From-SVN: r236741
parent c6e434f5
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
......
......@@ -183,7 +183,7 @@ int
fn10 (void)
{
if (foo ())
return 1732984;
return 17329;
else if (foo ())
return 18409;
return 0;
......
/* 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" } */
......
/* PR tree-optimization/70602 */
/* { dg-require-effective-target int32plus } */
struct __attribute__((packed)) S
{
......
/* { 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];
......
/* 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);
......
......@@ -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 } } */
/* { dg-do compile { target { ! { *-*-darwin* hppa*-*-* } } } } */
/* { dg-options "-fpie" } */
/* { dg-require-effective-target pie } */
#if __PIC__ != 1
# error __PIC__ is not 1!
......
/* { dg-do compile } */
/* { dg-options "-fPIE" } */
/* { dg-require-effective-target pie } */
#if __PIC__ != 2
# error __PIC__ is not 2!
......
/* { dg-do compile } */
/* { dg-require-effective-target int32plus } */
typedef unsigned char uint8x4_t
__attribute__ ((__vector_size__ (4)));
......
......@@ -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 } } */
}
/* PR c/60114 */
/* { dg-do compile } */
/* { dg-options "-Wconversion" } */
/* { dg-require-effective-target int32plus } */
struct S { int n, u[2]; };
const signed char z[] = {
......
/* { 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, ...)
......
......@@ -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;
......
......@@ -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;
......
/* { dg-do compile } */
/* { dg-options "-Wuninitialized -O2 -Wno-implicit" } */
/* { dg-require-effective-target ptr32plus } */
extern int optind;
struct undefinfo
......
/* { dg-do compile } */
/* { dg-options "-O" } */
/* { dg-require-effective-target int32plus } */
extern long int labs (long int j);
int
......
/* { dg-do compile } */
/* { dg-options "-O2 -Waggressive-loop-optimizations" } */
/* { dg-require-effective-target int32plus } */
int *a;
......
/* PR target/69071 */
/* { dg-do compile } */
/* { dg-options "-O2 -g" } */
/* { dg-skip-if "Array too big" { "avr-*-*" } } */
void *bar (void *);
......
/* { dg-do compile } */
/* { dg-require-effective-target int32plus } */
typedef int v4si __attribute__ ((vector_size (1 << 29)));
/* 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 *, ...);
......
/* 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." } */
......
......@@ -2,6 +2,7 @@
/* { dg-do run } */
/* { dg-options "-fsso-struct=big-endian" } */
/* { dg-require-effective-target int32plus } */
struct S1
{
......
......@@ -2,6 +2,7 @@
/* { dg-do run } */
/* { dg-options "-fsso-struct=little-endian" } */
/* { dg-require-effective-target int32plus } */
struct S1
{
......
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp2" } */
/* { dg-require-effective-target int32plus } */
int Foo (int X)
{
......
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