C99 testsuite readiness: Compile more tests with -std=gnu89
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.
This commit is contained in:
parent
5c432b0efa
commit
adb562b670
260 changed files with 457 additions and 0 deletions
|
@ -1,4 +1,6 @@
|
|||
/* { dg-require-effective-target untyped_assembly } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, p)
|
||||
int *p;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
struct _XtTextSource {
|
||||
/* ... */
|
||||
void (* SetSelection)();
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
#define DD 2410065408
|
||||
|
||||
unsigned
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
setgetlen (a)
|
||||
int *a;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
BUG2 (p) int *p;
|
||||
{
|
||||
int a = 0;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
struct ack {
|
||||
char a, b, c;
|
||||
};
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
BUG2 (p) char *p;
|
||||
{
|
||||
int a = 0;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* { dg-require-effective-target int32plus } */
|
||||
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
#define type double
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
#define type short
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
#define E0 ((type *)10000000)
|
||||
#define reg0 r0
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
#define type signed char
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
#define E0 ((type *)10000000)
|
||||
#define reg0 r0
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* { 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
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
#define type int
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
#define E0 ((type *)10000000)
|
||||
#define reg0 r0
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
#define type unsigned short
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
#define type unsigned char
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
#define type unsigned int
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
{
|
||||
return a & 65535;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
int
|
||||
foo (a, p)
|
||||
int *p;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
{
|
||||
int i;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
#define w 20
|
||||
#define c 1
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b)
|
||||
{
|
||||
int t;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
{
|
||||
return __builtin_abs (a);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
barfoo (a)
|
||||
{
|
||||
return (a << 16) & ~0xffff;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
{
|
||||
int b = a + 1;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b, p)
|
||||
int *p;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
main (a)
|
||||
{
|
||||
return a + 128;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (p, a, b)
|
||||
int *p;
|
||||
int a;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (p)
|
||||
int *p;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
void p1 (p) int *p;
|
||||
{ *p &= ~0xff;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
{
|
||||
int b = 0x1fff;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b, p)
|
||||
int *p;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo ()
|
||||
{
|
||||
return (int)&foo;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
int
|
||||
foo (int *p)
|
||||
{
|
||||
int a, b;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (p)
|
||||
int *p;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b, c)
|
||||
{
|
||||
bar (a, b);
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
#define S 31
|
||||
#define A 17
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
ase (p)
|
||||
short *p;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
{
|
||||
return (a & (1 << 31)) != 0;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
{
|
||||
return (a & 0xfff000) != 0;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
{
|
||||
int b = 32;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b)
|
||||
{
|
||||
return a % (1 << b);
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* { 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)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (x, c)
|
||||
{
|
||||
return x << -c;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
double a;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
bar (a)
|
||||
{
|
||||
return (a == 0);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
#define int unsigned
|
||||
|
||||
struct foo
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
unsigned a;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { 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;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b)
|
||||
{
|
||||
return (a & (1 << b)) != 0;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b)
|
||||
{
|
||||
return a - 65536;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
{
|
||||
int bar = 0;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b)
|
||||
long long a, b;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
{
|
||||
bar (a);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-skip-if "requires untyped assembly" { ! untyped_assembly } { "-O0" } { "" } } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
int foo () {}
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-require-effective-target indirect_calls } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
bar (foo, a)
|
||||
int (**foo) ();
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* { 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 ()
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* { 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 ()
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
cc8 (a, b)
|
||||
{
|
||||
if (a < 0)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (p1, p2)
|
||||
short p1, *p2;
|
||||
{
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
/* { dg-require-effective-target untyped_assembly } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, p)
|
||||
register int a;
|
||||
int *p;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
{
|
||||
return a * 84;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b)
|
||||
{
|
||||
int c = a & b;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* { dg-require-effective-target untyped_assembly } */
|
||||
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
int glob;
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
main (a)
|
||||
{
|
||||
return a + (~0 - 240);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-require-effective-target untyped_assembly } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
#define ID_1 2400000000.0
|
||||
#define ID_2 1.7
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (p)
|
||||
unsigned char *p;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b, c)
|
||||
double a;
|
||||
int b;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
union real_extract
|
||||
{
|
||||
double d;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
{
|
||||
++a;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b)
|
||||
{
|
||||
if (a == 1)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
long long
|
||||
foo (a, b)
|
||||
long long a, b;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b)
|
||||
{
|
||||
return a / b;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
struct dm
|
||||
{
|
||||
unsigned q;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (b, c)
|
||||
unsigned b, c;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (short a, int *p, short *s)
|
||||
{
|
||||
int i;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-require-effective-target untyped_assembly } */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b)
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
/* The bit-field below would have a problem if __INT_MAX__ is too
|
||||
small. */
|
||||
#if __INT_MAX__ < 2147483647
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
double a;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (hp, p, a)
|
||||
short *hp;
|
||||
int *p;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b)
|
||||
long long a, b;
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Compiler Test Generator Program.
|
||||
Copyright (C) 1989 FSF. */
|
||||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
|
||||
#define E0 ((type *)10000000)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
test_opt (a, b)
|
||||
unsigned a, b;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b)
|
||||
short a, b;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
ase (p)
|
||||
short *p;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a, b)
|
||||
{
|
||||
b++;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
union foo
|
||||
{
|
||||
float f;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
jumptab (a)
|
||||
{
|
||||
int b;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
main (a)
|
||||
{
|
||||
return - 256 + a;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
struct foo
|
||||
{
|
||||
char a;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { 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;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo ()
|
||||
{
|
||||
return *(short *) 126;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
typedef int xtype;
|
||||
|
||||
foo (p, pc)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
log2 (a, b)
|
||||
{
|
||||
int c;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
logic (a, b)
|
||||
int *a, b;
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
{
|
||||
while ((a -= 1) != -1)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
foo (a)
|
||||
{
|
||||
do
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* { dg-additional-options "-std=gnu89" } */
|
||||
|
||||
lop (a)
|
||||
{
|
||||
do
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue