Commit fb64cb7c by Andy Hutchinson

pr36998.c: Frame pointer required for avr target.

* gcc.dg/pr36998.c: Frame pointer required for avr target.
* gcc.dg/debug/pr41264-1.c: Use long if int size 16bit or smaller.
* gcc.dg/pr39226.c: Use smaller bitfield if int size is 16bit.
* gcc.dg/pr41340.c: Test requires long pointer target.
* gcc.dg/profile-generate-3.c: Test requires profiling support.

From-SVN: r154467
parent 04f3ccd5
2009-11-23 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
* gcc.dg/pr36998.c: Frame pointer required for avr target.
* gcc.dg/debug/pr41264-1.c: Use long if int size 16bit or smaller.
* gcc.dg/pr39226.c: Use smaller bitfield if int size is 16bit.
* gcc.dg/pr41340.c: Test requires long pointer target.
* gcc.dg/profile-generate-3.c: Test requires profiling support.
2009-11-23 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
* gcc.dg/graphite/block-1.c: Require 32-bit or larger array support.
......
/* { dg-do compile } */
#if (__SIZEOF_INT__ <= 2)
typedef unsigned long hashval_t;
#else
typedef unsigned int hashval_t;
#endif
static hashval_t __attribute__((always_inline))
iterative_hash_host_wide_int (long val, hashval_t val2)
{
......
......@@ -2,6 +2,7 @@
/* { dg-do compile } */
/* { dg-options "-Os -fasynchronous-unwind-tables" } */
/* { dg-options "-Os -mpreferred-stack-boundary=2 -fasynchronous-unwind-tables" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
/* { dg-options "-fno-omit-frame-pointer" { target { avr-*-* } } } */
void foo (const char *, ...) __attribute__ ((noreturn));
int bar (const char *, ...);
......
......@@ -3,12 +3,21 @@
/* { dg-options "-O2" } */
/* { dg-options "-O2 -mtune=cell -mminimal-toc" { target { powerpc*-*-* && lp64 } } } */
#if (__SIZEOF_INT__ == 2)
struct A
{
char *a;
unsigned int b : 1;
unsigned int c : 15;
};
#else
struct A
{
char *a;
unsigned int b : 1;
unsigned int c : 31;
};
#endif
struct B
{
......
......@@ -2,6 +2,7 @@
/* { dg-do compile } */
/* { dg-options "-O3 -g -fcompare-debug" } */
/* { dg-options "-O3 -g -fcompare-debug -march=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
/* { dg-skip-if "no long pointers" { { ! ilp32 } && { ! lp64 } } } */
typedef struct { int t; } *T;
struct S1 { unsigned s1; };
......
/* { dg-do link } */
/* { dg-require-profiling "-fprofile-generate=." } */
/* { dg-options "-fprofile-generate=." } */
int
......
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