gcc/testsuite/
* gcc.c-torture/compile/386.c: Compile with -std=gnu89.
* gcc.c-torture/compile/BUG1.c: Likewise.
* gcc.c-torture/compile/BUG11.c: Likewise.
* gcc.c-torture/compile/BUG16.c: Likewise.
* gcc.c-torture/compile/BUG2.c: Likewise.
* gcc.c-torture/compile/BUG24.c: Likewise.
* gcc.c-torture/compile/BUG25.c: Likewise.
* gcc.c-torture/compile/BUG3.c: Likewise.
* gcc.c-torture/compile/DFcmp.c: Likewise.
* gcc.c-torture/compile/HIcmp.c: Likewise.
* gcc.c-torture/compile/HIset.c: Likewise.
* gcc.c-torture/compile/QIcmp.c: Likewise.
* gcc.c-torture/compile/QIset.c: Likewise.
* gcc.c-torture/compile/SFset.c: Likewise.
* gcc.c-torture/compile/SIcmp.c: Likewise.
* gcc.c-torture/compile/SIset.c: Likewise.
* gcc.c-torture/compile/UHIcmp.c: Likewise.
* gcc.c-torture/compile/UQIcmp.c: Likewise.
* gcc.c-torture/compile/USIcmp.c: Likewise.
* gcc.c-torture/compile/a.c: Likewise.
* gcc.c-torture/compile/a1.c: Likewise.
* gcc.c-torture/compile/a3.c: Likewise.
* gcc.c-torture/compile/aa.c: Likewise.
* gcc.c-torture/compile/aaa.c: Likewise.
* gcc.c-torture/compile/abs.c: Likewise.
* gcc.c-torture/compile/ac.c: Likewise.
* gcc.c-torture/compile/acc.c: Likewise.
* gcc.c-torture/compile/add.c: Likewise.
* gcc.c-torture/compile/add386.c: Likewise.
* gcc.c-torture/compile/addcc.c: Likewise.
* gcc.c-torture/compile/andm.c: Likewise.
* gcc.c-torture/compile/andmem.c: Likewise.
* gcc.c-torture/compile/andn.c: Likewise.
* gcc.c-torture/compile/andok.c: Likewise.
* gcc.c-torture/compile/andsi.c: Likewise.
* gcc.c-torture/compile/andsparc.c: Likewise.
* gcc.c-torture/compile/aos.c: Likewise.
* gcc.c-torture/compile/arr.c: Likewise.
* gcc.c-torture/compile/as.c: Likewise.
* gcc.c-torture/compile/ase.c: Likewise.
* gcc.c-torture/compile/band.c: Likewise.
* gcc.c-torture/compile/bb0.c: Likewise.
* gcc.c-torture/compile/bb1.c: Likewise.
* gcc.c-torture/compile/bc.c: Likewise.
* gcc.c-torture/compile/bcopy.c: Likewise.
* gcc.c-torture/compile/bfx.c: Likewise.
* gcc.c-torture/compile/bge.c: Likewise.
* gcc.c-torture/compile/bit.c: Likewise.
* gcc.c-torture/compile/bitf.c: Likewise.
* gcc.c-torture/compile/bitw.c: Likewise.
* gcc.c-torture/compile/blk.c: Likewise.
* gcc.c-torture/compile/bt386.c: Likewise.
* gcc.c-torture/compile/bug.c: Likewise.
* gcc.c-torture/compile/buns.c: Likewise.
* gcc.c-torture/compile/c.c: Likewise.
* gcc.c-torture/compile/c2.c: Likewise.
* gcc.c-torture/compile/call.c: Likewise.
* gcc.c-torture/compile/callind.c: Likewise.
* gcc.c-torture/compile/calls-void.c: Likewise.
* gcc.c-torture/compile/calls.c: Likewise.
* gcc.c-torture/compile/cc.c: Likewise.
* gcc.c-torture/compile/cmb.c: Likewise.
* gcc.c-torture/compile/cmpsi386.c: Likewise.
* gcc.c-torture/compile/cmul.c: Likewise.
* gcc.c-torture/compile/comb.c: Likewise.
* gcc.c-torture/compile/consec.c: Likewise.
* gcc.c-torture/compile/const.c: Likewise.
* gcc.c-torture/compile/conv_tst.c: Likewise.
* gcc.c-torture/compile/cvt.c: Likewise.
* gcc.c-torture/compile/dbl_parm.c: Likewise.
* gcc.c-torture/compile/dblbug.c: Likewise.
* gcc.c-torture/compile/dead.c: Likewise.
* gcc.c-torture/compile/delay.c: Likewise.
* gcc.c-torture/compile/di.c: Likewise.
* gcc.c-torture/compile/div.c: Likewise.
* gcc.c-torture/compile/dm.c: Likewise.
* gcc.c-torture/compile/dshift.c: Likewise.
* gcc.c-torture/compile/e.c: Likewise.
* gcc.c-torture/compile/ex.c: Likewise.
* gcc.c-torture/compile/ext.c: Likewise.
* gcc.c-torture/compile/flo.c: Likewise.
* gcc.c-torture/compile/forgetcc.c: Likewise.
* gcc.c-torture/compile/g.c: Likewise.
* gcc.c-torture/compile/gen_tst.c: Likewise.
* gcc.c-torture/compile/gronk.c: Likewise.
* gcc.c-torture/compile/hi.c: Likewise.
* gcc.c-torture/compile/i.c: Likewise.
* gcc.c-torture/compile/icmp.c: Likewise.
* gcc.c-torture/compile/ifreg.c: Likewise.
* gcc.c-torture/compile/jumptab.c: Likewise.
* gcc.c-torture/compile/l.c: Likewise.
* gcc.c-torture/compile/layout.c: Likewise.
* gcc.c-torture/compile/lll.c: Likewise.
* gcc.c-torture/compile/load8.c: Likewise.
* gcc.c-torture/compile/loadhicc.c: Likewise.
* gcc.c-torture/compile/log2.c: Likewise.
* gcc.c-torture/compile/logic.c: Likewise.
* gcc.c-torture/compile/loop-1.c: Likewise.
* gcc.c-torture/compile/loop386.c: Likewise.
* gcc.c-torture/compile/lop.c: Likewise.
* gcc.c-torture/compile/m1.c: Likewise.
* gcc.c-torture/compile/m5.c: Likewise.
* gcc.c-torture/compile/m68.c: Likewise.
* gcc.c-torture/compile/mbyte.c: Likewise.
* gcc.c-torture/compile/mcmp.c: Likewise.
* gcc.c-torture/compile/mm.c: Likewise.
* gcc.c-torture/compile/mod.c: Likewise.
* gcc.c-torture/compile/modcc.c: Likewise.
* gcc.c-torture/compile/move.c: Likewise.
* gcc.c-torture/compile/move_qhi.c: Likewise.
* gcc.c-torture/compile/mregtst.c: Likewise.
* gcc.c-torture/compile/mu.c: Likewise.
* gcc.c-torture/compile/mword.c: Likewise.
* gcc.c-torture/compile/n.c: Likewise.
* gcc.c-torture/compile/n1.c: Likewise.
* gcc.c-torture/compile/nand.c: Likewise.
* gcc.c-torture/compile/neg.c: Likewise.
* gcc.c-torture/compile/o.c: Likewise.
* gcc.c-torture/compile/omit.c: Likewise.
* gcc.c-torture/compile/opout.c: Likewise.
* gcc.c-torture/compile/opt.c: Likewise.
* gcc.c-torture/compile/or.c: Likewise.
* gcc.c-torture/compile/or386.c: Likewise.
* gcc.c-torture/compile/p.c: Likewise.
* gcc.c-torture/compile/parms.c: Likewise.
* gcc.c-torture/compile/pass.c: Likewise.
* gcc.c-torture/compile/pp.c: Likewise.
* gcc.c-torture/compile/pret-arg.c: Likewise.
* gcc.c-torture/compile/pyr.c: Likewise.
* gcc.c-torture/compile/pyr2.c: Likewise.
* gcc.c-torture/compile/r.c: Likewise.
* gcc.c-torture/compile/r1.c: Likewise.
* gcc.c-torture/compile/rmsc.c: Likewise.
* gcc.c-torture/compile/round.c: Likewise.
* gcc.c-torture/compile/sc.c: Likewise.
* gcc.c-torture/compile/scal.c: Likewise.
* gcc.c-torture/compile/scc.c: Likewise.
* gcc.c-torture/compile/scond.c: Likewise.
* gcc.c-torture/compile/seq.c: Likewise.
* gcc.c-torture/compile/set386.c: Likewise.
* gcc.c-torture/compile/set88.c: Likewise.
* gcc.c-torture/compile/sh.c: Likewise.
* gcc.c-torture/compile/shand.c: Likewise.
* gcc.c-torture/compile/shft.c: Likewise.
* gcc.c-torture/compile/shift.c: Likewise.
* gcc.c-torture/compile/signext.c: Likewise.
* gcc.c-torture/compile/signext2.c: Likewise.
* gcc.c-torture/compile/simple.c: Likewise.
* gcc.c-torture/compile/sparcbug.c: Likewise.
* gcc.c-torture/compile/stor.c: Likewise.
* gcc.c-torture/compile/str.c: Likewise.
* gcc.c-torture/compile/structret.c: Likewise.
* gcc.c-torture/compile/sub32.c: Likewise.
* gcc.c-torture/compile/subcc.c: Likewise.
* gcc.c-torture/compile/subcse.c: Likewise.
* gcc.c-torture/compile/sym.c: Likewise.
* gcc.c-torture/compile/symconst.c: Likewise.
* gcc.c-torture/compile/t.c: Likewise.
* gcc.c-torture/compile/test-flow.c: Likewise.
* gcc.c-torture/compile/test-loop.c: Likewise.
* gcc.c-torture/compile/test.c: Likewise.
* gcc.c-torture/compile/tmp.c: Likewise.
* gcc.c-torture/compile/trivial.c: Likewise.
* gcc.c-torture/compile/trunc.c: Likewise.
* gcc.c-torture/compile/u.c: Likewise.
* gcc.c-torture/compile/uns.c: Likewise.
* gcc.c-torture/compile/uns_tst.c: Likewise.
* gcc.c-torture/compile/uuarg.c: Likewise.
* gcc.c-torture/compile/volatile-1.c: Likewise.
* gcc.c-torture/compile/ww.c: Likewise.
* gcc.c-torture/compile/x.c: Likewise.
* gcc.c-torture/compile/xb.c: Likewise.
* gcc.c-torture/compile/xc.c: Likewise.
* gcc.c-torture/compile/xdi.c: Likewise.
* gcc.c-torture/compile/xfoo.c: Likewise.
* gcc.c-torture/compile/xi.c: Likewise.
* gcc.c-torture/compile/xlop.c: Likewise.
* gcc.c-torture/compile/xneg.c: Likewise.
* gcc.c-torture/compile/xopt.c: Likewise.
* gcc.c-torture/compile/xor.c: Likewise.
* gcc.c-torture/compile/xorn.c: Likewise.
* gcc.c-torture/compile/xp.c: Likewise.
* gcc.c-torture/compile/xpp.c: Likewise.
* gcc.c-torture/compile/xs.c: Likewise.
* gcc.c-torture/compile/xsh.c: Likewise.
* gcc.c-torture/compile/xzz.c: Likewise.
* gcc.c-torture/compile/zero-strct-1.c: Likewise.
* gcc.c-torture/execute/
20000717-3.c: Likewise.
* gcc.c-torture/execute/920409-1.c: Likewise.
* gcc.c-torture/execute/920411-1.c: Likewise.
* gcc.c-torture/execute/920415-1.c: Likewise.
* gcc.c-torture/execute/920428-1.c: Likewise.
* gcc.c-torture/execute/920428-2.c: Likewise.
* gcc.c-torture/execute/920429-1.c: Likewise.
* gcc.c-torture/execute/920501-1.c: Likewise.
* gcc.c-torture/execute/920501-7.c: Likewise.
* gcc.c-torture/execute/920501-9.c: Likewise.
* gcc.c-torture/execute/920520-1.c: Likewise.
* gcc.c-torture/execute/920603-1.c: Likewise.
* gcc.c-torture/execute/920721-2.c: Likewise.
* gcc.c-torture/execute/920721-3.c: Likewise.
* gcc.c-torture/execute/920728-1.c: Likewise.
* gcc.c-torture/execute/920730-1.c: Likewise.
* gcc.c-torture/execute/920731-1.c: Likewise.
* gcc.c-torture/execute/920812-1.c: Likewise.
* gcc.c-torture/execute/920909-1.c: Likewise.
* gcc.c-torture/execute/921013-1.c: Likewise.
* gcc.c-torture/execute/921017-1.c: Likewise.
* gcc.c-torture/execute/921123-1.c: Likewise.
* gcc.c-torture/execute/921124-1.c: Likewise.
* gcc.c-torture/execute/921202-1.c: Likewise.
* gcc.c-torture/execute/921207-1.c: Likewise.
* gcc.c-torture/execute/921208-2.c: Likewise.
* gcc.c-torture/execute/921215-1.c: Likewise.
* gcc.c-torture/execute/921218-1.c: Likewise.
* gcc.c-torture/execute/921218-2.c: Likewise.
* gcc.c-torture/execute/930106-1.c: Likewise.
* gcc.c-torture/execute/930429-2.c: Likewise.
* gcc.c-torture/execute/930513-1.c: Likewise.
* gcc.c-torture/execute/930513-2.c: Likewise.
* gcc.c-torture/execute/930518-1.c: Likewise.
* gcc.c-torture/execute/930527-1.c: Likewise.
* gcc.c-torture/execute/930603-1.c: Likewise.
* gcc.c-torture/execute/930603-3.c: Likewise.
* gcc.c-torture/execute/930621-1.c: Likewise.
* gcc.c-torture/execute/930622-1.c: Likewise.
* gcc.c-torture/execute/930630-1.c: Likewise.
* gcc.c-torture/execute/930713-1.c: Likewise.
* gcc.c-torture/execute/930718-1.c: Likewise.
* gcc.c-torture/execute/930719-1.c: Likewise.
* gcc.c-torture/execute/930916-1.c: Likewise.
* gcc.c-torture/execute/930921-1.c: Likewise.
* gcc.c-torture/execute/930929-1.c: Likewise.
* gcc.c-torture/execute/930930-1.c: Likewise.
* gcc.c-torture/execute/931009-1.c: Likewise.
* gcc.c-torture/execute/931012-1.c: Likewise.
* gcc.c-torture/execute/931031-1.c: Likewise.
* gcc.c-torture/execute/931102-1.c: Likewise.
* gcc.c-torture/execute/931102-2.c: Likewise.
* gcc.c-torture/execute/931228-1.c: Likewise.
* gcc.c-torture/execute/940115-1.c: Likewise.
* gcc.c-torture/execute/940122-1.c: Likewise.
* gcc.c-torture/execute/941202-1.c: Likewise.
* gcc.c-torture/execute/950605-1.c: Likewise.
* gcc.c-torture/execute/960830-1.c: Likewise.
* gcc.c-torture/execute/961112-1.c: Likewise.
* gcc.c-torture/execute/990106-1.c: Likewise.
* gcc.c-torture/execute/cmpdi-1.c: Likewise.
* gcc.c-torture/execute/comp-goto-2.c: Likewise.
* gcc.c-torture/execute/dbra-1.c: Likewise.
* gcc.c-torture/execute/inst-check.c: Likewise.
* gcc.c-torture/execute/int-compare.c: Likewise.
* gcc.c-torture/execute/loop-2.c: Likewise.
* gcc.c-torture/execute/loop-2d.c: Likewise.
* gcc.c-torture/execute/loop-3.c: Likewise.
* gcc.c-torture/execute/loop-3b.c: Likewise.
* gcc.c-torture/execute/loop-3c.c: Likewise.
* gcc.c-torture/execute/mod-1.c: Likewise.
* gcc.c-torture/execute/strct-pack-3.c: Likewise.
* gcc.c-torture/execute/tstdi-1.c: Likewise.
/* { dg-require-effective-target untyped_assembly } */
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, p)
int *p;
{
+/* { dg-additional-options "-std=gnu89" } */
+
struct _XtTextSource {
/* ... */
void (* SetSelection)();
+/* { dg-additional-options "-std=gnu89" } */
+
#define DD 2410065408
unsigned
+/* { dg-additional-options "-std=gnu89" } */
+
setgetlen (a)
int *a;
{
+/* { dg-additional-options "-std=gnu89" } */
+
BUG2 (p) int *p;
{
int a = 0;
+/* { dg-additional-options "-std=gnu89" } */
+
struct ack {
char a, b, c;
};
+/* { dg-additional-options "-std=gnu89" } */
foo (a)
{
+/* { dg-additional-options "-std=gnu89" } */
+
BUG2 (p) char *p;
{
int a = 0;
/* { dg-require-effective-target int32plus } */
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
#define type double
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
#define type short
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
#define E0 ((type *)10000000)
#define reg0 r0
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
#define type signed char
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
#define E0 ((type *)10000000)
#define reg0 r0
/* { dg-require-effective-target int32plus } */
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
#define E0 ((type *)10000000)
#define reg0 r0
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
#define type int
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
#define E0 ((type *)10000000)
#define reg0 r0
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
#define type unsigned short
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
#define type unsigned char
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
#define type unsigned int
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
return a & 65535;
+/* { dg-additional-options "-std=gnu89" } */
+
int
foo (a, p)
int *p;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
int i;
+/* { dg-additional-options "-std=gnu89" } */
+
#define w 20
#define c 1
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
int t;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
return __builtin_abs (a);
+/* { dg-additional-options "-std=gnu89" } */
+
barfoo (a)
{
return (a << 16) & ~0xffff;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
int b = a + 1;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b, p)
int *p;
{
+/* { dg-additional-options "-std=gnu89" } */
+
main (a)
{
return a + 128;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (p, a, b)
int *p;
int a;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (p)
int *p;
{
+/* { dg-additional-options "-std=gnu89" } */
+
void p1 (p) int *p;
{ *p &= ~0xff;
}
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
int b = 0x1fff;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b, p)
int *p;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo ()
{
return (int)&foo;
+int
foo (int *p)
{
int a, b;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (p)
int *p;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b, c)
{
bar (a, b);
+/* { dg-additional-options "-std=gnu89" } */
#define S 31
#define A 17
+/* { dg-additional-options "-std=gnu89" } */
+
ase (p)
short *p;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
return (a & (1 << 31)) != 0;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
return (a & 0xfff000) != 0;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
int b = 32;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
return a % (1 << b);
/* { dg-add-options stack_size } */
/* { dg-require-stack-size "[dg-effective-target-value stack_size]*2" } */
+/* { dg-additional-options "-std=gnu89" } */
void
bcopy1 (s, d, c)
+/* { dg-additional-options "-std=gnu89" } */
+
foo (x, c)
{
return x << -c;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
double a;
{
+/* { dg-additional-options "-std=gnu89" } */
+
bar (a)
{
return (a == 0);
+/* { dg-additional-options "-std=gnu89" } */
+
#define int unsigned
struct foo
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
unsigned a;
{
+/* { dg-additional-options "-std=gnu89" } */
+
struct
{
double a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
return (a & (1 << b)) != 0;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
return a - 65536;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
int bar = 0;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
long long a, b;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
bar (a);
/* { dg-skip-if "requires untyped assembly" { ! untyped_assembly } { "-O0" } { "" } } */
+/* { dg-additional-options "-std=gnu89" } */
int foo () {}
/* { dg-require-effective-target indirect_calls } */
+/* { dg-additional-options "-std=gnu89" } */
bar (foo, a)
int (**foo) ();
/* { dg-require-effective-target ptr32plus } */
/* { dg-require-effective-target untyped_assembly } */
/* { dg-require-effective-target indirect_calls } */
+/* { dg-additional-options "-std=gnu89" } */
typedef void (*T)(void);
f1 ()
/* { dg-require-effective-target ptr32plus } */
/* { dg-require-effective-target untyped_assembly } */
/* { dg-require-effective-target indirect_calls } */
+/* { dg-additional-options "-std=gnu89" } */
typedef void *(*T)(void);
f1 ()
+/* { dg-additional-options "-std=gnu89" } */
+
cc8 (a, b)
{
if (a < 0)
+/* { dg-additional-options "-std=gnu89" } */
+
foo (p1, p2)
short p1, *p2;
{
/* { dg-require-effective-target untyped_assembly } */
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, p)
register int a;
int *p;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
return a * 84;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
int c = a & b;
/* { dg-require-effective-target untyped_assembly } */
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
int glob;
+/* { dg-additional-options "-std=gnu89" } */
+
main (a)
{
return a + (~0 - 240);
/* { dg-require-effective-target untyped_assembly } */
+/* { dg-additional-options "-std=gnu89" } */
#define ID_1 2400000000.0
#define ID_2 1.7
+/* { dg-additional-options "-std=gnu89" } */
+
foo (p)
unsigned char *p;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b, c)
double a;
int b;
+/* { dg-additional-options "-std=gnu89" } */
+
union real_extract
{
double d;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
++a;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
if (a == 1)
+/* { dg-additional-options "-std=gnu89" } */
+
long long
foo (a, b)
long long a, b;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
return a / b;
+/* { dg-additional-options "-std=gnu89" } */
+
struct dm
{
unsigned q;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (b, c)
unsigned b, c;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (short a, int *p, short *s)
{
int i;
/* { dg-require-effective-target untyped_assembly } */
+/* { dg-additional-options "-std=gnu89" } */
foo (a, b)
{
+/* { dg-additional-options "-std=gnu89" } */
+
/* The bit-field below would have a problem if __INT_MAX__ is too
small. */
#if __INT_MAX__ < 2147483647
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
double a;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (hp, p, a)
short *hp;
int *p;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
long long a, b;
/* Compiler Test Generator Program.
Copyright (C) 1989 FSF. */
+/* { dg-additional-options "-std=gnu89" } */
#define E0 ((type *)10000000)
+/* { dg-additional-options "-std=gnu89" } */
+
test_opt (a, b)
unsigned a, b;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
short a, b;
{
+/* { dg-additional-options "-std=gnu89" } */
+
ase (p)
short *p;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
b++;
+/* { dg-additional-options "-std=gnu89" } */
+
union foo
{
float f;
+/* { dg-additional-options "-std=gnu89" } */
+
jumptab (a)
{
int b;
+/* { dg-additional-options "-std=gnu89" } */
+
main (a)
{
return - 256 + a;
+/* { dg-additional-options "-std=gnu89" } */
+
struct foo
{
char a;
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
byte_match_count2 (buf, n, xm, m1, m2, m3, m4)
unsigned *buf;
+/* { dg-additional-options "-std=gnu89" } */
+
foo ()
{
return *(short *) 126;
+/* { dg-additional-options "-std=gnu89" } */
+
typedef int xtype;
foo (p, pc)
+/* { dg-additional-options "-std=gnu89" } */
+
log2 (a, b)
{
int c;
+/* { dg-additional-options "-std=gnu89" } */
+
logic (a, b)
int *a, b;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
while ((a -= 1) != -1)
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
do
+/* { dg-additional-options "-std=gnu89" } */
+
lop (a)
{
do
+/* { dg-additional-options "-std=gnu89" } */
+
foo (p)
int *p;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
return a * 5 + 12;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
return a | 12345;
+/* { dg-additional-options "-std=gnu89" } */
+
foo1 (p)
char *p;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (ip, a, x)
int a;
int *ip;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
return a * 2;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
return a % b;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
return (a % b) == 0;
+/* { dg-additional-options "-std=gnu89" } */
+
typedef char type;
type
+/* { dg-additional-options "-std=gnu89" } */
+
move (a, b)
char a, b;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, p)
int *p;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
return a * b;
+/* { dg-additional-options "-std=gnu89" } */
+
int
foo (a, b)
int *a, *b;
+/* { dg-additional-options "-std=gnu89" } */
+
char_autoincr (b1, c)
short *b1;
short c;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, p)
long long a;
int *p;
+/* { dg-additional-options "-std=gnu89" } */
+
nadn (a, b)
{
return (~a) | (~b);
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a) {return -a;}
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, p)
char a;
int *p;
+/* { dg-additional-options "-std=gnu89" } */
+
omit (a, b)
char a;
char *b;
+/* { dg-additional-options "-std=gnu89" } */
+
x ()
{}
+/* { dg-additional-options "-std=gnu89" } */
+
int
foo (a)
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
return a | 0xffff0101;
+/* { dg-additional-options "-std=gnu89" } */
+
typedef int xtype;
xtype
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b, p)
short *p;
{
/* { dg-require-effective-target alloca } */
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
#define alloca __builtin_alloca
x (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, x, y)
/* { dg-require-effective-target untyped_assembly } */
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
int
foo (a, b, c)
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
foo (a, b, c, d, e, i0, f, i1)
double a, b, c, d, e, f;
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
foo (a, b, c, d, e, f, g, h, i, j, xx)
double xx;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (char *a)
{
char b;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
return ((int *)0)[a];
+/* { dg-additional-options "-std=gnu89" } */
+
r (a, b)
{
if (a < b)
+/* { dg-additional-options "-std=gnu89" } */
+
void assert (a) {if (a != 1) abort ();}
int h1 (int *p) {return *p & 255;}
+/* { dg-additional-options "-std=gnu89" } */
cc1 (x, y)
int x, y;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
double a;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
int a, b;
{
/* { dg-require-effective-target untyped_assembly } */
+/* { dg-additional-options "-std=gnu89" } */
+
int g1, g2;
void
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
if (a < 0)
+/* { dg-additional-options "-std=gnu89" } */
+
scond (a, b, c, d)
{
return (a > b) & (c < d);
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
return a < 0;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, p)
int *p;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
return -1 << a;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
return a << b;
+/* { dg-additional-options "-std=gnu89" } */
+
int
foo (x, c)
int x;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
int a;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
if (a >= 0)
+/* { dg-additional-options "-std=gnu89" } */
+
void longprint (x)
long long x;
{
+/* { dg-additional-options "-std=gnu89" } */
+
long long
foo (a)
int a;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
return a;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
int b = a;
+/* { dg-additional-options "-std=gnu89" } */
+
#define C 1
foo (p)
+/* { dg-additional-options "-std=gnu89" } */
+
typedef struct
{
char a;
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
struct foo
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
return a + 32;
+/* { dg-additional-options "-std=gnu89" } */
+
int foo (a, c)
{
int b;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b, p)
int *p;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo ()
{
return (int) &foo;
+/* { dg-additional-options "-std=gnu89" } */
+
foo ()
{
return (int)foo;
+/* { dg-additional-options "-std=gnu89" } */
+
#define B 95
foo (a, b, p)
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b, c, d)
{
if (a < 0)
+/* { dg-additional-options "-std=gnu89" } */
+
main ()
{
int i;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
if (a & 38)
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
return (a - b) == 0;
+/* { dg-additional-options "-std=gnu89" } */
+
foo () {}
+/* { dg-additional-options "-std=gnu89" } */
+
main ()
{
printf ("%x, %x\n", (unsigned char) main, main);
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b) { return a % b; }
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
if ((unsigned) a < 234)
+/* { dg-additional-options "-std=gnu89" } */
+
a (c)
unsigned char c;
{
/* { dg-require-effective-target untyped_assembly } */
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
+/* { dg-additional-options "-std=gnu89" } */
foo (a, b, c, d, e, f, g, h, i)
{
+/* { dg-additional-options "-std=gnu89" } */
+
/* The problem here was that the statements that
loaded from exception.reason where not being
marked as having volatile behavior which
+/* { dg-additional-options "-std=gnu89" } */
+
foo (p)
short *p;
{
+/* { dg-additional-options "-std=gnu89" } */
+
f(m){int i,s=0;for(i=0;i<m;i++)s+=i;return s;}
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
unsigned x = 1;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, p)
int *p;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (long long *p, int a, int b)
{
*(p + a + b) = 876243243874343LL;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
return (a & ~0xfff) == 0;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
int r = 0;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
int b;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
double a;
{
+/* { dg-additional-options "-std=gnu89" } */
+
proc1 (a)
unsigned a;
{
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
return ~(a ^ ~123);
+/* { dg-additional-options "-std=gnu89" } */
+
int
xorn (a, b)
int a, b;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
return a & 255;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a)
{
a++;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
for (b = 0; b < 10; b++)
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
a = b + b;
+/* { dg-additional-options "-std=gnu89" } */
+
foo (a, b)
{
return a >> (char) b;
+/* { dg-additional-options "-std=gnu89" } */
+
typedef struct { } empty_t;
f ()
+/* { dg-additional-options "-std=gnu89" } */
+
int c = -1;
foo (p)
+/* { dg-additional-options "-std=gnu89" } */
+
x(){signed char c=-1;return c<0;}main(){if(x()!=1)abort();exit(0);}
+/* { dg-additional-options "-std=gnu89" } */
+
long f (w)
char *w;
{
/* { dg-require-effective-target label_values } */
+/* { dg-additional-options "-std=gnu89" } */
main(){__label__ l;void*x(){return&&l;}goto*x();abort();return;l:exit(0);}
+/* { dg-additional-options "-std=gnu89" } */
x(const char*s){char a[1];const char*ss=s;a[*s++]|=1;return(int)ss+1==(int)s;}
main(){if(x("")!=1)abort();exit(0);}
/* { dg-require-effective-target label_values } */
/* { dg-require-effective-target trampolines } */
+/* { dg-additional-options "-std=gnu89" } */
s(i){if(i>0){__label__ l1;int f(int i){if(i==2)goto l1;return 0;}return f(i);l1:;}return 1;}
x(){return s(0)==1&&s(1)==0&&s(2)==1;}
+/* { dg-additional-options "-std=gnu89" } */
typedef unsigned char t;int i,j;
t*f(t*p){t c;c=*p++;i=((c&2)?1:0);j=(c&7)+1;return p;}
main(){t*p0="ab",*p1;p1=f(p0);if(p0+1!=p1)abort();exit(0);}
/* { dg-require-effective-target untyped_assembly } */
+/* { dg-additional-options "-std=gnu89" } */
int s[2];
x(){if(!s[0]){s[1+s[1]]=s[1];return 1;}}
main(){s[0]=s[1]=0;if(x(0)!=1)abort();exit(0);}
/* { dg-require-effective-target label_values } */
/* { dg-require-effective-target trampolines } */
/* { dg-add-options stack_size } */
+/* { dg-additional-options "-std=gnu89" } */
#ifdef STACK_SIZE
#define DEPTH ((STACK_SIZE) / 512 + 1)
+/* { dg-additional-options "-std=gnu89" } */
+
#include <stdio.h>
long long proc1(){return 1LL;}
+/* { dg-additional-options "-std=gnu89" } */
+
foo(int *bar)
{
*bar = 8;
+/* { dg-additional-options "-std=gnu89" } */
f(got){if(got!=0xffff)abort();}
main(){signed char c=-1;unsigned u=(unsigned short)c;f(u);exit(0);}
/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
+/* { dg-additional-options "-std=gnu89" } */
f(){}
main(){int n=2;double x[n];f();exit(0);}
+/* { dg-additional-options "-std=gnu89" } */
static inline fu (unsigned short data)
{
return data;
+/* { dg-additional-options "-std=gnu89" } */
typedef struct {int dims[0]; } *A;
f(unsigned long obj)
/* 920730-1.c */
+/* { dg-additional-options "-std=gnu89" } */
#include <limits.h>
f1()
{
+/* { dg-additional-options "-std=gnu89" } */
f(x){int i;for(i=0;i<8&&(x&1)==0;x>>=1,i++);return i;}
main(){if(f(4)!=2)abort();exit(0);}
+/* { dg-additional-options "-std=gnu89" } */
typedef int t;
f(t y){switch(y){case 1:return 1;}return 0;}
main(){if(f((t)1)!=1)abort();exit(0);}
+/* { dg-additional-options "-std=gnu89" } */
f(a){switch(a){case 0x402:return a+1;case 0x403:return a+2;case 0x404:return a+3;case 0x405:return a+4;case 0x406:return 1;case 0x407:return 4;}return 0;}
main(){if(f(1))abort();exit(0);}
+/* { dg-additional-options "-std=gnu89" } */
f(d,x,y,n)
int*d;
float*x,*y;
/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
/* { dg-require-effective-target trampolines } */
+/* { dg-additional-options "-std=gnu89" } */
f(n)
{
+/* { dg-additional-options "-std=gnu89" } */
+
f(short *p)
{
short x = *p;
+/* { dg-additional-options "-std=gnu89" } */
+
f(x, d1, d2, d3)
double d1, d2, d3;
{
/* { dg-require-effective-target untyped_assembly } */
/* { dg-add-options stack_size } */
+/* { dg-additional-options "-std=gnu89" } */
#ifndef STACK_SIZE
#define VLEN 2055
+/* { dg-additional-options "-std=gnu89" } */
f()
{
unsigned b = 0;
/* { dg-require-effective-target untyped_assembly } */
/* { dg-require-stack-size "100000 * 4 + 1024" } */
+/* { dg-additional-options "-std=gnu89" } */
g(){}
/* { dg-require-effective-target trampolines } */
+/* { dg-additional-options "-std=gnu89" } */
main()
{
+/* { dg-additional-options "-std=gnu89" } */
+
f()
{
return (unsigned char)("\377"[0]);
+/* { dg-additional-options "-std=gnu89" } */
+
f()
{
long l2;
/* { dg-add-options stack_size } */
+/* { dg-additional-options "-std=gnu89" } */
#if defined (STACK_SIZE)
#define DUMMY_SIZE 9
+/* { dg-additional-options "-std=gnu89" } */
+
int
f (b)
{
/* { dg-additional-options "-Wl,-u,_printf_float" { target newlib_nano_io } } */
+/* { dg-additional-options "-std=gnu89" } */
#include <stdio.h>
char buf[2];
+/* { dg-additional-options "-std=gnu89" } */
+
sub3 (i)
const int *i;
{
+/* { dg-additional-options "-std=gnu89" } */
+
int bar = 0;
f (p)
+/* { dg-additional-options "-std=gnu89" } */
+
f (unsigned char x)
{
return (0x50 | (x >> 4)) ^ 0xff;
+/* { dg-additional-options "-std=gnu89" } */
+
float fx (x)
float x;
{
+/* { dg-additional-options "-std=gnu89" } */
+
f (b, c)
unsigned char *b;
int c;
+/* { dg-additional-options "-std=gnu89" } */
/* The bit-field below would have a problem if __INT_MAX__ is too
small. */
#if __INT_MAX__ < 2147483647
+/* { dg-additional-options "-std=gnu89" } */
+
int a = 1, b;
g () { return 0; }
+/* { dg-additional-options "-std=gnu89" } */
/* The bit-field below would have a problem if __INT_MAX__ is too
small. */
#if __INT_MAX__ < 2147483647
+/* { dg-additional-options "-std=gnu89" } */
typedef struct
{
char x;
+/* { dg-additional-options "-std=gnu89" } */
+
typedef struct rtx_def
{
int f1 :1;
+/* { dg-additional-options "-std=gnu89" } */
+
int
f (foo, bar, com)
{
+/* { dg-additional-options "-std=gnu89" } */
+
f (n)
unsigned n;
{
+/* { dg-additional-options "-std=gnu89" } */
+
f (x)
unsigned x;
{
+/* { dg-additional-options "-std=gnu89" } */
+
sub1 (i)
int i;
{
+/* { dg-additional-options "-std=gnu89" } */
+
__extension__ typedef __PTRDIFF_TYPE__ ptr_t;
ptr_t *wm_TR;
ptr_t *wm_HB;
+/* { dg-additional-options "-std=gnu89" } */
main ()
{
f ();
+/* { dg-additional-options "-std=gnu89" } */
f (int b, int c)
{
if (b != 0 && b != 1 && c != 0)
+/* { dg-additional-options "-std=gnu89" } */
+
/* The bit-field below would have a problem if __INT_MAX__ is too
small. */
#if __INT_MAX__ < 2147483647
+/* { dg-additional-options "-std=gnu89" } */
typedef union
{
struct
+/* { dg-additional-options "-std=gnu89" } */
+
typedef union
{
long align;
+/* { dg-additional-options "-std=gnu89" } */
f (x)
{
x &= 010000;
+/* { dg-additional-options "-std=gnu89" } */
f (cp, end)
char *cp;
char *end;
+/* { dg-additional-options "-std=gnu89" } */
+
char *a = 0;
char *b = 0;
/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
+/* { dg-additional-options "-std=gnu89" } */
g (x, y)
{
if (x != 3)
+/* { dg-additional-options "-std=gnu89" } */
+
f (c)
unsigned char c;
{
+/* { dg-additional-options "-std=gnu89" } */
+
#ifdef __i386__
f (rp)
unsigned int *rp;
+/* { dg-additional-options "-std=gnu89" } */
+
f (x)
{
if (x != 0 || x == 0)
+/* { dg-additional-options "-std=gnu89" } */
+
foo(bufp)
char *bufp;
{
+/* { dg-additional-options "-std=gnu89" } */
+
#define F 140
#define T 13
/* { dg-require-effective-target label_values } */
/* { dg-require-effective-target trampolines } */
/* { dg-add-options stack_size } */
+/* { dg-additional-options "-std=gnu89" } */
/* A slight variation of 920501-7.c. */
+/* { dg-additional-options "-std=gnu89" } */
+
f1 (a)
long a;
{
+/* { dg-additional-options "-std=gnu89" } */
+
#include <stdarg.h>
f(m)
+/* { dg-additional-options "-std=gnu89" } */
+
#include <limits.h>
gt (a, b)
+/* { dg-additional-options "-std=gnu89" } */
+
int a[2];
f (b)
+/* { dg-additional-options "-std=gnu89" } */
+
int a[2];
f (b)
+/* { dg-additional-options "-std=gnu89" } */
+
#include <limits.h>
int n = 0;
+/* { dg-additional-options "-std=gnu89" } */
+
#include <limits.h>
int n = 0;
+/* { dg-additional-options "-std=gnu89" } */
+
#include <limits.h>
void * a[255];
+/* { dg-additional-options "-std=gnu89" } */
+
f (x, y)
{
if (x % y != 0)
+/* { dg-additional-options "-std=gnu89" } */
+
typedef struct
{
short i __attribute__ ((aligned (2),packed));
+/* { dg-additional-options "-std=gnu89" } */
+
#define FALSE 140
#define TRUE 13