]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
C99 testsuite readiness: More unverified testcase un-reductions
authorFlorian Weimer <fweimer@redhat.com>
Mon, 13 Nov 2023 07:54:11 +0000 (08:54 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 13 Nov 2023 07:54:11 +0000 (08:54 +0100)
gcc/testsuite/

* gcc.c-torture/compile/BUG17.c (main): Add missing int
return type and missing void type.
* gcc.c-torture/compile/BUG18.c (main): Likewise.  Call
__builtin_printf instead of printf.
* gcc.c-torture/compile/BUG21.c (Nase): Add missing void
types.
* gcc.c-torture/compile/BUG23.c (main): Add missing int
return type and missing void type.
* gcc.c-torture/compile/BUG5.c (bar): Call
__builtin_printf instead of printf.
* gcc.c-torture/compile/BUG6.c (main): Likewise.  Add missing
int return type and missing void type.
* gcc.c-torture/compile/b.c (main): Add missing int
return type and missing void type.
* gcc.c-torture/compile/b1.c (main): Likewise.  Call
__builtin_printf instead of printf.
* gcc.c-torture/compile/b88.c (main): Add missing int
return type and missing void type.
* gcc.c-torture/compile/bbb.c (flset): Add missing void
return type and switch to prototype style.
* gcc.c-torture/compile/bf.c (clr, atoi): Declare.
(main): Add missing int return type.  Call
__builtin_printf instead of printf.
* gcc.c-torture/compile/bt.c (main): Add missing int
return type and missing void type.
* gcc.c-torture/compile/charmtst.c (foo, bar): Declare.
(c_move_tst): Add missing int return type.
* gcc.c-torture/compile/cmpdi-1.c (f, g): Add missing int
return type.
* gcc.c-torture/compile/cmphi.c (foo): Likewise.
* gcc.c-torture/compile/conv.c (main): Likewise.  Add missing
void type.  Call __builtin_printf instead of printf.
* gcc.c-torture/compile/ddd.c (main): Add missing int
return type and missing void type.
* gcc.c-torture/compile/dilayout.c (str, ll): Add missing
void return type.
* gcc.c-torture/compile/dimove.c (foo): Likewise.
* gcc.c-torture/compile/f2.c (foo): Likewise.
* gcc.c-torture/compile/flatten.c  (main): Add missing int
return type and missing void type.
* gcc.c-torture/compile/fnul.c (main): Likewise.
Call __builtin_printf instead of printf.
* gcc.c-torture/compile/fq.c (expand_to_ascii): Add missing
void return type.
* gcc.c-torture/compile/funcptr-1.c (g): Call __builtin_printf
instead of printf.
(f): Likewise.  Add missing void types.
* gcc.c-torture/compile/glob.c (foo): Add missing void types.
* gcc.c-torture/compile/goto-1.c (f): Likewise.
* gcc.c-torture/compile/i++.c (main): Call __builtin_printf
instead of printf.
* gcc.c-torture/compile/ic.c (foo): Add missing int return
type.
* gcc.c-torture/compile/iftrap-1.c (bar, baz): Declare.
(f4, f6): Call __builtin_abort instead of abort.
* gcc.c-torture/compile/iftrap-2.c (bar): Declare.
* gcc.c-torture/compile/jmp.c (foo): Add missing int types.
* gcc.c-torture/compile/labels-1.c (f): Add missing int
return type and missing void type.  Call __builtin_abort
instead of abort.
* gcc.c-torture/compile/labels-2.c (f): Likewise.
* gcc.c-torture/compile/lbug.c (main): Add missing int
return type and missing void type.
* gcc.c-torture/compile/memtst.c (memtst): Add missing void
return type.
(main): Add missing int return type and missing void type.
Call __builtin_bzero instead of bzero.
* gcc.c-torture/compile/miscomp.c (main): Add missing int
return type and missing void type.  Call __builtin_printf
instead of printf.
* gcc.c-torture/compile/msp.c (bar): Declare.
(foo): Add missing void types.
* gcc.c-torture/compile/mtst.c (foo): Add missing int return
type.
* gcc.c-torture/compile/packed-1.c (f): Add missing void
types.
* gcc.c-torture/compile/pr17119.c (func1, func2): Declare.
* gcc.c-torture/compile/pr18712.c (foo, foo1): Declare.
* gcc.c-torture/compile/pr20412.c (bar1, bar2, bar3): Declare.
* gcc.c-torture/compile/pr21532.c (foo): Declare.
* gcc.c-torture/compile/pr22398.c (main): Call __builtin_exit
instead of exit.
* gcc.c-torture/compile/pr24883.c (orec_str_list): Add missing
void return type.
* gcc.c-torture/compile/pr25311.c (use): Declare.
* gcc.c-torture/compile/pr25514.c (foo): Declare.
* gcc.c-torture/compile/pr26425.c (key_put): Declare.
* gcc.c-torture/compile/pr27087.c (g): Declare.
* gcc.c-torture/compile/pr27282.c (colrow_equal): Add missing
int return type.
* gcc.c-torture/compile/pr27907.c (fann_run): Add missing
void return type.
* gcc.c-torture/compile/pr28489.c (c_compile): Likewise.
* gcc.c-torture/compile/pr28776-1.c
(tree_contains_struct_check_failed): Declare.
* gcc.c-torture/compile/pr29128.c (process_main): Add missing
void return type.
* gcc.c-torture/compile/pr29945.c (unget_char): Declare.
(main) Add missing void return type.
* gcc.c-torture/compile/pr33382.c (show_configuration): Add
missing int types.
* gcc.c-torture/compile/pr36141.c (ffi_prep_closure_loc): Add
missing return type.
* gcc.c-torture/compile/pr36988.c (__writel): Declare.
* gcc.c-torture/compile/pr37026.c (foo): Declare.
* gcc.c-torture/compile/pr37285.c (_bfd_abort): Declare.
(_bfd_xcoff_canonicalize_dynamic_reloc): Add missing void
return type.
* gcc.c-torture/compile/pr38554.c (applyFunction): Add missing
void return type.
* gcc.c-torture/compile/pr42164.c (swp_offset, __BUG_ON):
Declare.
* gcc.c-torture/compile/pr44788.c (foo): Declare.
* gcc.c-torture/compile/pr47364-1.c (arc4_init): Add missing
void return type.
* gcc.c-torture/compile/pr48596.c (_nrrdCenter): Declare.
* gcc.c-torture/compile/rel.c (foo): Add missing int return
type.
* gcc.c-torture/compile/run.c (main): Likewise.  Add missing
void type.
* gcc.c-torture/compile/sar.c (main): Likewise.
* gcc.c-torture/compile/selfrec.c (foo): Add missing int
parameter type.
* gcc.c-torture/compile/shloop.c (main): Add missing int
return type and missing void type.
* gcc.c-torture/compile/shm.c (foo): Add missing int return
type.
* gcc.c-torture/compile/sim.c (main): Likewise.  Add missing
void type.
* gcc.c-torture/compile/simd-5.c (main): Add missing int
return type and missing void type.  Call __builtin_printf
instead of printf.
* gcc.c-torture/compile/sne.c (foo): Add missing int return
type.
* gcc.c-torture/compile/sound.c (write): Declare.
(main): Add missing int return type and missing void type.
* gcc.c-torture/compile/speed.c (main): Likewise.
* gcc.c-torture/compile/store0.c (foo): Add missing void
return type.
* gcc.c-torture/compile/storecc.c (foo): Add missing int
return type.
* gcc.c-torture/compile/strcpy-1.c (rezero): Add missing
void types.
* gcc.c-torture/compile/stru.c (foo): Add missing void return
type.
* gcc.c-torture/compile/stuct.c (main): Add missing int return
type and missing void type.
* gcc.c-torture/compile/time.c (main): Likewise.
* gcc.c-torture/compile/unalign-1.c (f): Declare.
* gcc.c-torture/compile/v.c (main): Add missing int return
type.
* gcc.c-torture/compile/xcsebug.c (foo): Add missing void
types.
* gcc.c-torture/compile/xmtst.c (p2, p3, p4): Add missing
int return type.
* gcc.c-torture/compile/xz.c (foo): Add missing void return
type.
* gcc.c-torture/execute/loop-2f.c (f): Add missing void
return type.
(main): Return instead of calling exit.  Call __builtin_abort
instead of abort.
* gcc.c-torture/execute/loop-2g.c (f): Add missing void
return type.
(main): Return instead of calling exit.  Call __builtin_abort
instead of abort.
* gcc.dg/20020206-1.c: Build without -w.
(main): Call __builtin_abort instead of abort and
__builtin_exit instead of exit.
* gcc.dg/ipa/20040703-wpa.c (main): Call __builtin_abort
instead of abort and __builtin_exit instead of exit.
* gcc.dg/torture/pr84528.c (main): Add missing int and void
types.  Call __builtin_abort instead of abort, and
__builtin_exit instead of exit.
* gcc.dg/tree-ssa/pr68619-2.c (vector_type_mode, real_inf):
Declare.
* gcc.dg/tree-ssa/pr68619-3.c (iterative_hash): Declare.
(e_hash): Call __builtin_abort instead of abort.
* gcc.dg/tree-ssa/pr68619-4.c (rhs_regno, foop, arf): Declare.
* gcc.dg/tree-ssa/pr68619-5.c (invert_tree_comparison)
(vector_type_mode): Declare.
* gcc.dg/tree-ssa/pr69270-2.c (arf, gimple_debug_bind_p)
(gimple_bb, gimple_assign_rhs_to_tree)
(is_gimple_min_invariant, unshare_expr): Declare.
* gcc.dg/tree-ssa/pr69270-3.c: (end_imm_use_stmt_p)
(next_imm_use_stmt, arf, boo, update_stmt): Declare.
* gcc.dg/tree-ssa/ranger-threader-2.c (gimple_call_arg):
Declare.
(gimple_op): Call __builtin_abort instead of abort.
* gcc.dg/tree-ssa/ranger-threader-3.c (expand_binop): Declare.
* gcc.dg/tree-ssa/ssa-dom-branch-1.c (arf, foo): Declare.
(try_combine): Add casts to rtx.
* gcc.dg/tree-ssa/split-path-3.c (vec_heap_o_reserve)
(VEC_int_base_length, bmp_iter_and_compl_init)
(bmp_iter_and_compl, bmp_iter_next, VEC_int_heap_free):
Declare.
* gcc.dg/tree-ssa/split-path-7.c (linit): Call
__builtin_strcmp instead of strcmp.
* gcc.dg/tree-ssa/ssa-dom-thread-12.c (gimple_call_arg):
Declare.
(gimple_op): Call __builtin_abort instead of abort.
* gcc.dg/tree-ssa/ssa-dom-thread-13.c (arf, error): Declare.
(convert): Call __builtin_abort instead of abort.
* gcc.dg/tree-ssa/ssa-dom-thread-14.c (exand_binop): Declare.
* gcc.dg/tree-ssa/ssa-dom-thread-15.c
(ix86_target_stack_probe, pro_epilogue_adjust_stack)
(gen_rtx_CONST_INT, fancy_abort): Declare.
* gcc.dg/tree-ssa/ssa-dse-25.c (foo): Call __builtin_memset
instead of memset.
* gcc.target/aarch64/aapcs64/va_arg-17.c
(init_data): Call __builtin_memset instead of memset.
* gcc.target/i386/pr69030.c (fn1): Call __builtin_printf instead
of printf.

110 files changed:
gcc/testsuite/gcc.c-torture/compile/BUG17.c
gcc/testsuite/gcc.c-torture/compile/BUG18.c
gcc/testsuite/gcc.c-torture/compile/BUG21.c
gcc/testsuite/gcc.c-torture/compile/BUG23.c
gcc/testsuite/gcc.c-torture/compile/BUG5.c
gcc/testsuite/gcc.c-torture/compile/BUG6.c
gcc/testsuite/gcc.c-torture/compile/b.c
gcc/testsuite/gcc.c-torture/compile/b1.c
gcc/testsuite/gcc.c-torture/compile/b88.c
gcc/testsuite/gcc.c-torture/compile/bbb.c
gcc/testsuite/gcc.c-torture/compile/bf.c
gcc/testsuite/gcc.c-torture/compile/bt.c
gcc/testsuite/gcc.c-torture/compile/charmtst.c
gcc/testsuite/gcc.c-torture/compile/cmpdi-1.c
gcc/testsuite/gcc.c-torture/compile/cmphi.c
gcc/testsuite/gcc.c-torture/compile/conv.c
gcc/testsuite/gcc.c-torture/compile/ddd.c
gcc/testsuite/gcc.c-torture/compile/dilayout.c
gcc/testsuite/gcc.c-torture/compile/dimove.c
gcc/testsuite/gcc.c-torture/compile/f2.c
gcc/testsuite/gcc.c-torture/compile/flatten.c
gcc/testsuite/gcc.c-torture/compile/fnul.c
gcc/testsuite/gcc.c-torture/compile/fq.c
gcc/testsuite/gcc.c-torture/compile/funcptr-1.c
gcc/testsuite/gcc.c-torture/compile/glob.c
gcc/testsuite/gcc.c-torture/compile/goto-1.c
gcc/testsuite/gcc.c-torture/compile/i++.c
gcc/testsuite/gcc.c-torture/compile/ic.c
gcc/testsuite/gcc.c-torture/compile/iftrap-1.c
gcc/testsuite/gcc.c-torture/compile/iftrap-2.c
gcc/testsuite/gcc.c-torture/compile/jmp.c
gcc/testsuite/gcc.c-torture/compile/labels-1.c
gcc/testsuite/gcc.c-torture/compile/labels-2.c
gcc/testsuite/gcc.c-torture/compile/lbug.c
gcc/testsuite/gcc.c-torture/compile/memtst.c
gcc/testsuite/gcc.c-torture/compile/miscomp.c
gcc/testsuite/gcc.c-torture/compile/msp.c
gcc/testsuite/gcc.c-torture/compile/mtst.c
gcc/testsuite/gcc.c-torture/compile/packed-1.c
gcc/testsuite/gcc.c-torture/compile/pr17119.c
gcc/testsuite/gcc.c-torture/compile/pr18712.c
gcc/testsuite/gcc.c-torture/compile/pr20412.c
gcc/testsuite/gcc.c-torture/compile/pr21532.c
gcc/testsuite/gcc.c-torture/compile/pr22398.c
gcc/testsuite/gcc.c-torture/compile/pr24883.c
gcc/testsuite/gcc.c-torture/compile/pr25311.c
gcc/testsuite/gcc.c-torture/compile/pr25514.c
gcc/testsuite/gcc.c-torture/compile/pr26425.c
gcc/testsuite/gcc.c-torture/compile/pr27087.c
gcc/testsuite/gcc.c-torture/compile/pr27282.c
gcc/testsuite/gcc.c-torture/compile/pr27907.c
gcc/testsuite/gcc.c-torture/compile/pr28489.c
gcc/testsuite/gcc.c-torture/compile/pr28776-1.c
gcc/testsuite/gcc.c-torture/compile/pr29128.c
gcc/testsuite/gcc.c-torture/compile/pr29945.c
gcc/testsuite/gcc.c-torture/compile/pr33382.c
gcc/testsuite/gcc.c-torture/compile/pr36141.c
gcc/testsuite/gcc.c-torture/compile/pr36988.c
gcc/testsuite/gcc.c-torture/compile/pr37026.c
gcc/testsuite/gcc.c-torture/compile/pr37285.c
gcc/testsuite/gcc.c-torture/compile/pr38554.c
gcc/testsuite/gcc.c-torture/compile/pr42164.c
gcc/testsuite/gcc.c-torture/compile/pr44788.c
gcc/testsuite/gcc.c-torture/compile/pr47364-1.c
gcc/testsuite/gcc.c-torture/compile/pr48596.c
gcc/testsuite/gcc.c-torture/compile/rel.c
gcc/testsuite/gcc.c-torture/compile/run.c
gcc/testsuite/gcc.c-torture/compile/sar.c
gcc/testsuite/gcc.c-torture/compile/selfrec.c
gcc/testsuite/gcc.c-torture/compile/shloop.c
gcc/testsuite/gcc.c-torture/compile/shm.c
gcc/testsuite/gcc.c-torture/compile/sim.c
gcc/testsuite/gcc.c-torture/compile/simd-5.c
gcc/testsuite/gcc.c-torture/compile/sne.c
gcc/testsuite/gcc.c-torture/compile/sound.c
gcc/testsuite/gcc.c-torture/compile/speed.c
gcc/testsuite/gcc.c-torture/compile/store0.c
gcc/testsuite/gcc.c-torture/compile/storecc.c
gcc/testsuite/gcc.c-torture/compile/strcpy-1.c
gcc/testsuite/gcc.c-torture/compile/stru.c
gcc/testsuite/gcc.c-torture/compile/stuct.c
gcc/testsuite/gcc.c-torture/compile/time.c
gcc/testsuite/gcc.c-torture/compile/unalign-1.c
gcc/testsuite/gcc.c-torture/compile/v.c
gcc/testsuite/gcc.c-torture/compile/xcsebug.c
gcc/testsuite/gcc.c-torture/compile/xmtst.c
gcc/testsuite/gcc.c-torture/compile/xz.c
gcc/testsuite/gcc.c-torture/execute/loop-2f.c
gcc/testsuite/gcc.c-torture/execute/loop-2g.c
gcc/testsuite/gcc.dg/20020206-1.c
gcc/testsuite/gcc.dg/ipa/20040703-wpa.c
gcc/testsuite/gcc.dg/torture/pr84528.c
gcc/testsuite/gcc.dg/tree-ssa/pr68619-2.c
gcc/testsuite/gcc.dg/tree-ssa/pr68619-3.c
gcc/testsuite/gcc.dg/tree-ssa/pr68619-4.c
gcc/testsuite/gcc.dg/tree-ssa/pr68619-5.c
gcc/testsuite/gcc.dg/tree-ssa/pr69270-2.c
gcc/testsuite/gcc.dg/tree-ssa/pr69270-3.c
gcc/testsuite/gcc.dg/tree-ssa/ranger-threader-2.c
gcc/testsuite/gcc.dg/tree-ssa/ranger-threader-3.c
gcc/testsuite/gcc.dg/tree-ssa/split-path-3.c
gcc/testsuite/gcc.dg/tree-ssa/split-path-7.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-branch-1.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-12.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-13.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-14.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-15.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-25.c
gcc/testsuite/gcc.target/aarch64/aapcs64/va_arg-17.c
gcc/testsuite/gcc.target/i386/pr69030.c

index 920587046edd3f5cc36dee408bfb00e0ac99e865..28bfb8873d4fe10749ea87fb27aa58b3a990998d 100644 (file)
@@ -1,6 +1,7 @@
 double d;
 
-main()
+int
+main(void)
 {
   int i;
 
index ed586a7f9d60d16108d7dae4c961056a36ad9417..d5f172916a936b3d27bab528f61539aec18d9f5c 100644 (file)
@@ -1,5 +1,6 @@
-main()
+int
+main(void)
 {
   if ((signed int) 1 < (signed int) -2147483648)
-    printf("true\n");
+    __builtin_printf("true\n");
 }
index c8a1157cc460bb06c299833d733f72e6150db2d6..0ce2a173dd8f36f199910c988b01aefb5364e07d 100644 (file)
@@ -7,7 +7,8 @@ typedef struct {
        FOO *b1;
 } BAR;
 
-Nase ()
+void
+Nase (void)
 {
        int i, j;
        FOO *foop;
index 1ff429ef0acf096ef69973c9689b0eb687dcca31..2424286482ccd3060183c9452a0bd09ac59beaef 100644 (file)
@@ -1,4 +1,5 @@
-main()
+int
+main(void)
 {
   static char static_char_array[1];
   static char *static_char_pointer;
index 9bed7136f59ce70d6928a93f2021d0fa98248cb0..390196b818d0f25b25d4700201ec274b846d209d 100644 (file)
@@ -12,7 +12,7 @@ void bar()
   {
     case one:
     case two:
-      printf ("one to two\n");
+      __builtin_printf ("one to two\n");
     break;
   }
 }
index b1394650964c78e24b1654fe13958e43351fd28f..4ec8ab2e3a808db7fff17be363f052bcf5639d1d 100644 (file)
@@ -1,8 +1,9 @@
-main()
+int
+main(void)
 {
   unsigned long L;
   double D;
   D = L = -3;
-  printf("L=%lu, D=%g\n", L, D);
+  __builtin_printf("L=%lu, D=%g\n", L, D);
   return 0;
 }
index 498d7552af9e89381e67c29395fd611f82d3ec69..41242d012d34f85579bf99f5090eb0f73a2a4c61 100644 (file)
@@ -1,4 +1,5 @@
-main ()
+int
+main (void)
 {
   *(short *) 25 = 123;
 }
index b6737594cb1d7f086bbd312ca3088be5e9d47f20..bab9500b7c2a80371d706e507004b11f19a71264 100644 (file)
@@ -1,3 +1,4 @@
+int
 foo (long long x)
 {
   if (x--)
@@ -5,7 +6,8 @@ foo (long long x)
   return 0;
 }
 
-main ()
+int
+main (void)
 {
-  printf ("%d\n", foo (0));
+  __builtin_printf ("%d\n", foo (0));
 }
index 971c7c76d9253bb3c8ae5680da4541a23fa744c8..9d92b20badb0a4ab0f6000da78313e88281a8340 100644 (file)
@@ -1,3 +1,4 @@
+int
 foo (double d)
 {
   d = -d;
@@ -6,7 +7,8 @@ foo (double d)
   return 2;
 }
 
-main ()
+int
+main (void)
 {
   foo (0.0);
 }
index 837dd9ecf93263bc4bd3a09b924e2ef030e30855..419ef9235e5df3a627a4175922d73d99d88ca222 100644 (file)
@@ -5,8 +5,8 @@ struct looksets
 
 struct looksets lkst[];
 
-flset( p )
-struct looksets *p;
+void
+flset( struct looksets *p )
 {
     p-- > lkst;
 }
index 821623df09c02b73422e0f46817f206137d9ec3e..365621452e76981c1bfc3b848f3424d2d4cc93dd 100644 (file)
@@ -1,5 +1,7 @@
 typedef unsigned long uint32;
 typedef signed long sint32;
+int clr (int, int, int);
+int atoi (const char *);
 
 uint32
 ext (sint32 src, unsigned o5, unsigned w5)
@@ -25,7 +27,8 @@ rot (uint32 src, unsigned o5)
   return (src >> o5) | (src << (( - o5) & 31));
 }
 
+int
 main (int argc, char **argv)
 {
-  printf ("%x\n", clr (0xffffffff, atoi (argv[2]), atoi (argv[1])));
+  __builtin_printf ("%x\n", clr (0xffffffff, atoi (argv[2]), atoi (argv[1])));
 }
index ac20c05674dd85a5c4e1ed25aaa2e05989742a66..ed86ad2db308cd147c51a78da886acfe49e045d7 100644 (file)
@@ -1,4 +1,5 @@
-main ()
+int
+main (void)
 {
   int i;
 
index 2945f198e5e2f2e4fc0e6f4789d0049a4611ddbf..897b4ccd882a01e6346cc7b494e68b10e0517952 100644 (file)
@@ -1,3 +1,7 @@
+void foo (int);
+void bar (int, int);
+
+int
 c_move_tst (char b)
 {
   char a;
index 9e1b659c7cfdc97e88120b5488b940f1cd6081e0..f2e62988b36b6ea0b83dd7a88ff294e2bd2e5fc2 100644 (file)
@@ -1,3 +1,4 @@
+int
 f (long long d)
 {
   int i = 0;
@@ -6,6 +7,7 @@ f (long long d)
   return i;
 }
 
+int
 g (long long d)
 {
   int i = 0;
index 1ffc2140fba8eaec84deeb7d84f131cd57b8b585..ebc152b5e25798187264ca119292cb47e8d8404a 100644 (file)
@@ -1,3 +1,4 @@
+int
 foo (short *p, short a)
 {
   return a < *p;
index 70fc024127c38e34af1ddf08b82c15429e557f19..92712986409e9e6bd47a6d2ea0dafcf714ed98cd 100644 (file)
@@ -22,11 +22,14 @@ d2i (double d)
   return d;
 }
 
-main ()
+int
+main (void)
 {
-  printf ("%lf, %lf, %lf\n", u2d (~0), u2d (1 << 31), u2d (1));
-  printf ("%lf, %lf, %lf\n", i2d (~0), i2d (1 << 31), i2d (1));
+  __builtin_printf ("%lf, %lf, %lf\n", u2d (~0), u2d (1 << 31), u2d (1));
+  __builtin_printf ("%lf, %lf, %lf\n", i2d (~0), i2d (1 << 31), i2d (1));
 
-  printf ("%u, %u, %u\n", d2u (u2d (~0)), d2u (u2d (1 << 31)), d2u (u2d (1)));
-  printf ("%d, %d, %d\n", d2i (i2d (~0)), d2i (i2d (1 << 31)), d2i (i2d (1)));
+  __builtin_printf ("%u, %u, %u\n",
+                   d2u (u2d (~0)), d2u (u2d (1 << 31)), d2u (u2d (1)));
+  __builtin_printf ("%d, %d, %d\n",
+                   d2i (i2d (~0)), d2i (i2d (1 << 31)), d2i (i2d (1)));
 }
index b0b6809dd698a4bb46b64455cbeb7ab1000e0396..481776f63e1fe68ee505a5da0e3673981f1d6439 100644 (file)
@@ -1,7 +1,8 @@
 int foo;
 int bar;
 
-main ()
+int
+main (void)
 {
   return foo + bar;
 }
index 4bba661c0a4b1f93dd7489840bba35058cfb0e0c..595d78dff59c23eef78b83914e730a80768fc675 100644 (file)
@@ -21,11 +21,13 @@ foo (int *p, struct foo a)
   return a.ab;
 }
 
+void
 str (struct ii ab, struct ii *p)
 {
   *p = ab;
 }
 
+void
 ll (long long ab, long long *p)
 {
   *p = ab;
index 7caf3fa468baadf42d97f776fa8727953f2788b9..bda08385838e5977d05bad82326e39a9bc0b1775 100644 (file)
@@ -1,3 +1,4 @@
+void
 foo (long long *p)
 {
   p[0] = p[1];
index 8bb384902b99cbcc1fc2160cfb9062db0880a8c3..de067fa502e1d40c8264b731fc618687cd8d6655 100644 (file)
@@ -1,3 +1,4 @@
+void
 foo (double *p)
 {
   p[0] = p[1];
index 73042bed64a1fcda713bbf78872b90d90e019572..9d1d21facb4e1e3c53ca11861d5abbe484243824 100644 (file)
@@ -1,5 +1,6 @@
 int you_shall_not_flatten_me () __attribute__ ((flatten));
-main()
+int
+main(void)
 {
   you_shall_not_flatten_me ();
 }
index b0c9816adf702dcd2e404fa4fd20d0cf875bdd4d..8a9a401757dd6e802053a54021042149062fcaae 100644 (file)
@@ -1,4 +1,5 @@
-main ()
+int
+main (void)
 {
   int i;
   int f;
@@ -9,15 +10,15 @@ main ()
 
       if ((i & (i - 1)) == 0)
        {
-         printf ("d");
+         __builtin_printf ("d");
          f = 1;
        }
       if ((i & -i) == i)
        {
-         printf ("t");
+         __builtin_printf ("t");
          f = 1;
        }
       if (f)
-       printf ("%d\n", i);
+       __builtin_printf ("%d\n", i);
     }
 }
index c4ac369609618d6835ab534239bf4d6ec0126f05..ca8b3339a4365a1a96e6301a69ae50fd788bd5d1 100644 (file)
@@ -1,3 +1,4 @@
+void
 expand_to_ascii (int *i, int *o)
 {
   unsigned x, y, out;
index 79687c9c0052d40068dd8be40fdce2ecfda9bdbc..d1f3f525a7c4a3ce7f1626b40a9ee323c2a89bd4 100644 (file)
@@ -3,17 +3,18 @@ extern int (*gp)(const char*);
 int
 g (const char* d)
 {
-  printf ("g");
+  __builtin_printf ("g");
   return 0;
 }
 
-f ()
+void
+f (void)
 {
   int errcnt=0;
 
   if (gp != g)
     {
-      printf ("f");
+      __builtin_printf ("f");
       errcnt++;
     }
 }
index e3206154fd9cab884f9e01b8f280a302c7e40f5c..c4efc8c657b4640dd6366199f0f1be5c48867b97 100644 (file)
@@ -4,7 +4,8 @@ tt a1;
 tt a2;
 tt a3;
 
-foo ()
+void
+foo (void)
 {
   a1++;
   a2++;
index caeed3aa0ba1d4992ce2ce58bb9e279300f5390d..336ff2e6ce9afe11054db8904dfc7ac833eb2cb8 100644 (file)
@@ -1,4 +1,5 @@
-f ()
+void
+f (void)
 {
   do
     {
index 01d9ca95a8a26f996c64c5c6ba296cd19ef19471..fd6a38c395c9ff6f77ce2383e123f6bfed573e4e 100644 (file)
@@ -3,5 +3,5 @@ int main ()
   int i = 2;
 
   i = i++;
-  printf ("%d\n",i);
+  __builtin_printf ("%d\n",i);
 }
index 150e1e8ed7e9e77506f8440a9c3279f73e7e62ad..05ae9722a73ae6a696696415ce4868c2bfcf3394 100644 (file)
@@ -1,3 +1,4 @@
+int
 foo (int *ip, int a)
 {
   a++;
index a0adc78cf8286387c2beecd900162ad4d2e94e8a..77aac0444f45677da8d91c936ea58a2d841775c8 100644 (file)
@@ -1,5 +1,8 @@
 /* Verify that ifcvt doesn't crash under a number of interesting conditions. */
 
+void bar (void);
+void baz (void);
+
 void f1(int p)
 {
   if (p)
@@ -39,13 +42,13 @@ void f5(int p)
   if (p)
     __builtin_trap();
   else
-    abort();
+    __builtin_abort();
 }
 
 void f6(int p)
 {
   if (p)
-    abort();
+    __builtin_abort();
   else
     __builtin_trap();
 }
index bb7bb5726b1b70d1bd235cc7343fb9dde0e860fe..e03ea74fe8becd6c442e4626784be22c697c14d0 100644 (file)
@@ -1,3 +1,5 @@
+void bar (void);
+
 void foo(int p, int q)
 {
   if (p)
index 474206a1f5e1ad0617f04fff091e541f70d853f1..814b49ea902ab74a4f5f929329a052bd84d22992 100644 (file)
@@ -1,4 +1,5 @@
-foo (a)
+int
+foo (int a)
 {
   if (a)
     goto a1;
index 7889567ffa64d4d2ea5b4496be95f2aa6af230bb..80b46b060b57e52ff2bb622b4d0fad6b51deae9e 100644 (file)
@@ -1,11 +1,12 @@
 /* { dg-require-effective-target label_values } */
 
-f ()
+int
+f (void)
 {
   void *x = &&L2;
   if (&&L3 - &&L1 > 1)
-    abort();
+    __builtin_abort();
  L1: return 1;
- L2: abort ();
+ L2: __builtin_abort ();
  L3:;
 }
index 316a380b3ce91c0eaee1f376d2f93f77e83376e4..977fc163001ece55c46f721b984b20a25030fc47 100644 (file)
@@ -1,12 +1,12 @@
 /* { dg-require-effective-target label_values } */
 
 struct bp { void *v, *b, *e; };
-f ()
+int f (void)
 {
   struct bp x = { &&L2 };
   if (&&L3 - &&L1 > 1)
-    abort ();
+    __builtin_abort ();
 L1:return 1;
-L2:abort ();
+L2:__builtin_abort ();
 L3:;
 }
index 0440a0a7a9d71742b72fe84f2e905fcb61901ddb..2db708c873306df984fc9911212c5d943f887fc4 100644 (file)
@@ -1,5 +1,6 @@
 long long x = 0;
-main()
+int
+main(void)
 {
   if (x--)
     return 255;
index 44cdaf8e83a92ff75240ab077640be5199497ec8..a8b054a84d800086d97193578821675e032e47cf 100644 (file)
@@ -6,6 +6,7 @@
 #define SIZE 65536
 #endif
 
+void
 memtst (int *p, int a)
 {
   do
@@ -16,11 +17,12 @@ memtst (int *p, int a)
   while (--a);
 }
 
-main ()
+int
+main (void)
 {
   int a[SIZE];
   int i;
-  bzero (a, SIZE * 4);
+  __builtin_bzero (a, SIZE * 4);
   for (i = 0;  i < 100;  i++)
     {
       memtst (a, SIZE);
index 0bcb568d54b03d3d0a7c2444096e34f8027f444f..f71173876fd4eb895e9854f862cb55db2df4cd0d 100644 (file)
@@ -1,12 +1,13 @@
 unsigned char foo(unsigned long);
-main()
+int
+main(void)
 {
     unsigned char AChar;
     unsigned long ALong = 0x12345678;
 
     AChar = foo(ALong);
 
-    printf("AChar = %x\n",(int)AChar);
+    __builtin_printf("AChar = %x\n",(int)AChar);
 }
 unsigned char
 foo( unsigned long TheLong)
index 263a873e26426b3a92440c77d8c56e0e7e214f79..6eeb9bcce21d5da55f4591bb487a3ee87e5b05c1 100644 (file)
@@ -1,11 +1,14 @@
 /* { dg-add-options stack_size } */
 
+void bar (int *);
+
 #ifdef STACK_SIZE
 # define A_SIZE (STACK_SIZE/sizeof(int))
 #else
 # define A_SIZE 16384
 #endif
-foo ()
+void
+foo (void)
 {
   int a[A_SIZE];
   bar (a);
index 4f43137b705a7cf884f6f7bca66db005e30c018d..f11f5f9cbb53dacbd17eb666e6c83a01be08f733 100644 (file)
@@ -1,3 +1,4 @@
+int
 foo (int *p, int c)
 {
   int a, b;
index 709fc3cb10236cb9aed1e2a57c7a47f757b47f2f..aa9cab49786d3dc99ae9aa2b95871f99a4902f38 100644 (file)
@@ -8,7 +8,8 @@ struct rbuf
   struct s *p __attribute__ ((packed));
 } *b;
 
-f ()
+void
+f (void)
 {
   b->p = &x;
 }
index 28d6ccbe0b210f48f54f8c34ea0da63d4c02e83a..eb955190fb9384945692abd8e99b1ae013594f54 100644 (file)
@@ -1,3 +1,6 @@
+void func1 (void);
+void func2 (void);
+
 void
 _mesa_DrawPixels (int width, int height, unsigned format,
                  unsigned type, const void * pixels)
index 7d53aaae877f878d806707fe527538a4556302f3..7f00e856873f53c47ecec07127ba67cab83c27c5 100644 (file)
@@ -1,3 +1,5 @@
+void foo (void);
+void foo1 (int *);
 void *eintr_source (void *arg)
 {
   int ts = 0;
index a165a921ac28a09910f9b5b03b8b0c6f725f115b..25e723062be994ad6800e45309411a3abf40b67e 100644 (file)
@@ -1,3 +1,7 @@
+int bar1(void);
+int bar2(void);
+int bar3(void);
+
 int
 foo(void)
 {
index 1b8bc22484951bf295b5940d80d754f734d8d89f..0ffe083466f2750eb4a76674cc59e589dfd7dccd 100644 (file)
@@ -1,4 +1,4 @@
-
+int foo (int);
 
 int
 bar (unsigned char key)
index 448de5712cdcc36d944f74d1839862aff583e479..193727ac8d425f3019e7aa0a0c7a020a45431a29 100644 (file)
@@ -1,5 +1,5 @@
 #if ULONG_MAX != 4294967295u && ULONG_MAX != 18446744073709551615ull
-int main(void) { exit (0); }
+int main(void) { __builtin_exit (0); }
 #else
 #if ULONG_MAX != 18446744073709551615ull
 #define NUM 0xf0000000
index b2ced75ac96e594f8f44462632e1ed2265228fc4..df6500132b9f8c1340a8d3a184ce72811b053f92 100644 (file)
@@ -2,6 +2,7 @@ typedef struct _rec_stl rec_stl;
 struct _rec_stl {
    unsigned char **strs;
 };
+void
 orec_str_list(int count) {
    rec_stl *stl;
    int i, j;
index 43ef3fd9523a1e766f5dccb39f23366d750a0dd4..a9fafb4a9ed1f8c9c9f2ab765b2c449fc4d874a2 100644 (file)
@@ -13,6 +13,8 @@ struct w
 
 extern struct w *Qnil;
 
+void use (struct w *);
+
 void
 set_size (struct w *w, int new_size, int nodelete, int set_height)
 {
index 0bf5aa9077dc0f9b8f909f43f217b009e860de36..81475921c4cec897b93dcd2e9d45ad91ea6a5da2 100644 (file)
@@ -5,6 +5,8 @@ struct node {
 
 struct node *current_node, global_list;
 
+void foo (struct node *);
+
 void
 bar (void)
 {
index 8931b401426b6ce2ecd35f29cdafd074e6c02810..c7e74bb11f51657bf18a657178aaf9aa8f419edd 100644 (file)
@@ -1,6 +1,7 @@
 struct keyring_list {
  struct key *keys[0];
 };
+void key_put(struct key *);
 void keyring_destroy(struct keyring_list *keyring, unsigned short a)
 {
  int loop;
index 3add13bcbeb36d7e8d761ccb44a41c1ff8891ba3..b8cbd7ed7d41537be94ac56711feea8dc4b78e08 100644 (file)
@@ -1,5 +1,6 @@
 extern int ptbl[4];
 extern int ctbl[4];
+void g(void);
 
 void doViews(void) {
     int  *c = ctbl, *p = ptbl;
index ab6636650645773f09672b7746a30f955ab13a23..b36e03a744ace6d5e840aab5fcc602a2d8975b8b 100644 (file)
@@ -9,6 +9,7 @@ struct _ColRowInfo
   unsigned margin_b:3;
   unsigned visible:1;
 };
+int
 colrow_equal (ColRowInfo const *a, ColRowInfo const *b)
 {
   return a->size_pts == b->size_pts && a->margin_a == b->margin_a
index 575ac6a774c778b33220505be9f1cbea23e08f64..7248dfb146cbfc25c44db485688d81d5732c839d 100644 (file)
@@ -13,6 +13,7 @@ struct fann
 {
     struct fann_layer *first_layer;
 };
+void
 fann_run (struct fann *ann, fann_type * input)
 {
   struct fann_layer *layer_it, *layer_it2, *last_layer;
index 60d23b18faa90a754421674ecf82955401ec4dad..55a3b98ddc1b2b8850c4e8b52dfdd40f2a7e76c2 100644 (file)
@@ -12,6 +12,7 @@ static union c_insn c_stack[((0x100 + 4) * 4)];
 static struct c_ident *c_funcs;
 static void (*c_op_bz) ();
 static void c_direct (union c_insn *addr);
+void
 c_compile (int (*ext_getchar) (), void (*ext_rewind) (),
           struct c_ident *externs)
 {
index a37fb6fe105efb00f1abcf690f5e8a5c08243d19..c55bd483a30cb412ed3d2bca61ccda00249799df 100644 (file)
@@ -4,6 +4,7 @@ typedef struct dw_fde_struct
 } *dw_fde_ref;
 dw_fde_ref fde_table;
 unsigned fde_table_in_use;
+void tree_contains_struct_check_failed (int);
 void output_call_frame_info (void)
 {
   unsigned int i;
index 3358b47019840f63100b41106f2e536d799ac8b9..c720395f907a6ec8c145a4dd416713a5135237a3 100644 (file)
@@ -2,6 +2,7 @@
 /* { dg-require-effective-target label_values } */
 
 typedef unsigned long Eterm;
+void
 process_main (void)
 {
   register Eterm x0;
index 775af29ef07fc9e4c415109292e1e45ab993620b..d7397c244f2706c0bf6ecff9612d3a9e02a6e8ef 100644 (file)
@@ -1,6 +1,8 @@
 /* This test used to ICE on the SPU target. */
 extern const char *__ctype_ptr;
+void unget_char (int);
 
+void
 parse_real (unsigned char c)
 {
   if ((__ctype_ptr[c]&04) && c != '.')
index c939cf7b7725a5080fea041257290e65554c3442..3a24caae4961ff26fb5c1134a556cfa0e0cfe2b4 100644 (file)
@@ -35,12 +35,12 @@ void show_configuration(char *arg)
                                       ? (__builtin_constant_p(arg)
                                          && ((size_t) (const void *) 1) ?
                                          : (__extension__( {
-                                                          __const * __s2 =
-                                                          (__const *)
+                                                          __const int * __s2 =
+                                                          (__const int *)
                                                           (arg);
-                                                          register
+                                                          register int
                                                           __result =
-                                                          (((__const
+                                                          (((__const int
                                                              *) (arglist
                                                                  [i].
                                                                  lng))[0]
index 82756199b776c69b901691ca9d6686caacc1281a..4fb22b2907265b794d2e3378c82437c98127e8d3 100644 (file)
@@ -1,4 +1,5 @@
 extern void ffi_closure_unix (void);
+void
 ffi_prep_closure_loc (void)
 {
   struct ia64_fd
index 44118d5dda3c8c95cbde0a8b33251d24bc56e39f..30e86eae9b31af4c9a42a2b89e49955daa976081 100644 (file)
@@ -1,6 +1,7 @@
 typedef struct {
     unsigned char mbxCommand;
 } MAILBOX_t;
+void __writel(unsigned int);
 void lpfc_sli_brdrestart(void)
 {
   volatile unsigned int word0;
index 694e2ca2a5f75ff317e57d21d312ed24dfe9aaf0..f59b119f4dc02cfec95be332f40fa615a46b34d8 100644 (file)
@@ -6,6 +6,7 @@ struct b {
     struct a b1;
     struct a b2;
 };
+int foo (void);
 void bar (struct b *c)
 {
   c->b1 = c->b2 = ((struct a) { foo(), 0 });
index 972478b1879f3736b38fbaae332ec378d7ff2808..ce1a02990f4e3f816d7d4a8883c47deeffe898a4 100644 (file)
@@ -1,3 +1,5 @@
+void _bfd_abort (const char *);
+void
 _bfd_xcoff_canonicalize_dynamic_reloc (unsigned long long l_symndx)
 {
   if (l_symndx < 3)
index 7d40a223be0cfc44b86ff749d1c18d0ea63df2b3..b0f9207b3f3c40f6e0dcb9649dcfe7a511ec7212 100644 (file)
@@ -19,6 +19,7 @@ struct cmdlineInfo
   }
     u;
 };
+void
 applyFunction (struct cmdlineInfo const cmdline, struct pam const inpam,
                struct pam const outpam, tuple * const inputRow,
                tuple * const outputRow)
index 7b94aefe7d83166ed22a43663afbbc4044c78533..343d7e7aa96702c862f1914b25bab36b5e019f60 100644 (file)
@@ -16,6 +16,8 @@ typedef struct
 {
   unsigned long val;
 } swp_entry_t;
+unsigned long swp_offset(swp_entry_t);
+void __BUG_ON(unsigned long);
 pte_t swp_entry_to_pte (swp_entry_t entry)
 {
   swp_entry_t arch_entry;
index b570f65ff92eaf5f5882371b555b2a38d5e7c44c..9811046eaa1e02a823bbf2f14822e31be00b05bd 100644 (file)
@@ -1,5 +1,7 @@
 /* { dg-require-stack-size "1060*4+4" } */
 
+void foo(float *);
+
 void joint_decode(float* mlt_buffer1, int t) {
     int i;
     float decode_buffer[1060];
index 0a4e82d8564e2e60ecc94c67b41efac42dd13b26..b23714d6adad169e437d019ddc86d1b6c92b8b12 100644 (file)
@@ -1,5 +1,6 @@
 static unsigned char foo[256];
 
+void
 arc4_init(void)
 {
   int n;
index 743bd82e868905d7b4af4a3f6bb4c0d26af4383e..194a023e0b9c72664cb4a3916a7e304047e82330 100644 (file)
@@ -6,6 +6,7 @@ typedef struct { int size; int center; }  NrrdAxis;
 typedef struct { int dim; NrrdAxis axis[10]; } Nrrd;
 typedef struct { } NrrdKernel;
 typedef struct { const NrrdKernel *kernel[10]; int samples[10]; } Info;
+int _nrrdCenter(int);
 
 void
 foo (Nrrd *nout, Nrrd *nin, const NrrdKernel *kernel, const double *parm,
index 54d36052ed3f470a26e273244d1410b65d7bd0d9..8774164cd7304732ba780e32552a28b2b5f1f5c3 100644 (file)
@@ -1,3 +1,4 @@
+int
 foo (int *c, int b)
 {
   int a;
index 40892f6037ffaa6483116a96998e71fe831dbcf1..8375b782c86354e004701f196b729aec722fd13d 100644 (file)
@@ -1,4 +1,5 @@
-main ()
+int
+main (void)
 {
   typedef short int xtype;
 
index 9bf9bec062569883cd6b8ff6a9f9ec4268f276b1..34e8cdf0b258a329258a66f106aa3fff7207b53e 100644 (file)
@@ -3,7 +3,8 @@ struct foo
   char a;
 } foo[100];
 
-main ()
+int
+main (void)
 {
   foo[1].a = '1';
   foo[2].a = '2';
index c7aaca552a0f6fcb24c9420eb598dc99c9669677..c79f1c092333ea49fe710991300eb8df93142577 100644 (file)
@@ -1,5 +1,5 @@
 int
-foo (a)
+foo (int a)
 {
   return foo (a - 1) * a;
 }
index f4c9366394af46b259859409619eaf0ee3ce4ecc..7bb85466653a899c847ad0f607b492513b403975 100644 (file)
@@ -1,4 +1,5 @@
-main ()
+int
+main (void)
 {
   int volatile p;
   int i;
index b667b26abe90a41640946d4363157b671de4808f..acd12fd90778bf971f62a27df91c4b5e4227bb01 100644 (file)
@@ -1,3 +1,4 @@
+int
 foo (int *p)
 {
   int a = *p;
index e8c4fb42f53352a753bba5705b7732e81a1e5dd9..93d13f87da66eb02d1b5616681f34dcf970470a3 100644 (file)
@@ -1,4 +1,5 @@
-main ()
+int
+main (void)
 {
   int i;
 
index 2d0be4fc78dcb108d114f5595664f2d8bd41bd73..784d1fd86e090dcf6c949204cbed7f2ed6233187 100644 (file)
@@ -1,6 +1,6 @@
 #define vector64 __attribute__((vector_size(8)))
 
-main(){
+int main(void){
 
  vector64 int  c;
 vector64 int a = {1, -1};
@@ -8,5 +8,5 @@ vector64 int b = {2, -2};
 c = -a + b*b*(-1LL);
 /* c is now {-5, -3} */
 
- printf("result is %llx\n", (long long)c); 
__builtin_printf("result is %llx\n", (long long)c); 
 }
index 6844a6e53b989ef07f64efe864a87073a76722b2..b0f3e1c7314ec04d99def2670ebf6497a78d3578 100644 (file)
@@ -1,3 +1,4 @@
+int
 foo (double a)
 {
   return (a != 0);
index 66e24a00f68bf62b3e3d03c1138715b6652d3b0a..899b87d3d33f4cb68841560e2bc714f9d9dc7235 100644 (file)
@@ -1,6 +1,9 @@
 /* { dg-require-stack-size "8192+4" } */
 
-main ()
+int write (int, void *, __SIZE_TYPE__);
+
+int
+main (void)
 {
   char audio[8192];
   int i;
index d61407e321d49e4c572bffb09ec17db4cd93f281..2bdb8bffe8ca1d92e77ded8e5c5a5f286a945361 100644 (file)
@@ -1,4 +1,5 @@
-main ()
+int
+main (void)
 {
   int i;
 
index 3b7b16ef3bc56540e5002a386972792473c73cb6..8c9c3b43740bbc37ac1d63b5d1e22027b7423025 100644 (file)
@@ -1,3 +1,4 @@
+void
 foo (int *p)
 {
   p[10] = 0;
index 116346910915b8cb874f8d71818fe84c2349b695..d2f4c9c229d22d40d8648f42545cbf147b9d20cd 100644 (file)
@@ -1,3 +1,4 @@
+int
 foo (char *p, int a)
 {
   *p = a;
index 2c7b16a08d810856965613e0fd24031acf55f177..992f3a1f9fe810b9c4289285e74be75525743090 100644 (file)
@@ -6,7 +6,8 @@ typedef struct
 }STACK;
 STACK stack[15];
 int level;
-rezero ()
+void
+rezero (void)
 {
   level = 0;
   __builtin_strcpy (stack[level].str, "");
index 042c522178462770517b4640de37892b251a2fd7..1f76585ef0e0eee1c2c7b2b2702203a2ed43ea9f 100644 (file)
@@ -3,6 +3,7 @@ struct foo
   int a, b, c;
 };
 
+void
 foo (struct foo *a)
 {
   a[0] = a[1];
index b70957e9891c0114dad4b2d3aecb13aee6be2854..3306188e1f5c12fcba3e20390592f4738276f366 100644 (file)
@@ -14,7 +14,8 @@ struct foo
 
 struct foo s, ss;
 
-main ()
+int
+main (void)
 {
 
   s.b = 2;
index 7e22681d98b55b93e82753e73b0f378840b92e5c..c7feb0d294c1c10f5c8b80c933f737d8782114d2 100644 (file)
@@ -1,4 +1,5 @@
-main ()
+int
+main (void)
 {
   int i;
   for (i = 3000000; --i;)
index 350111fdff4112ebe4efae15cfde634353d4c02d..e827b1e03d86e15209eb4010f42d3c69673b6584 100644 (file)
@@ -7,6 +7,7 @@ typedef struct __attribute__ ((__packed__))
     char stepsRemoved;
     ptp_tlv_t tlv[1];
 } ptp_message_announce_t;
+void f(ptp_message_announce_t *);
 int ptplib_send_announce(int sequenceId, int i)
 {
     ptp_message_announce_t tx_packet;
index 87ac00aef64cdc562607d0b2a46f08b63f68a7f8..24d47a418ce6f1ee74ec0dd6a2b1ac3c012f180e 100644 (file)
@@ -1,3 +1,4 @@
+int
 main (int *p)
 {
   int a;
index 614a6e80ebf379bc656fe2dd25fe252d08e9f5cf..43a30cce43b4df0fb2efdf9e753163ed5d9071c1 100644 (file)
@@ -1,7 +1,8 @@
 int g1;
 int g2;
 
-foo ()
+void
+foo (void)
 {
   int i = 1;
   int x;
index ca78fcaac12317e5de0918a666e7436bba698978..4e8689057ba9569f0910ab89a85e81041d1b51c9 100644 (file)
@@ -1,13 +1,16 @@
+int
 p1 (int b, int *p, int a)
 {
   p[0] = p[1];
   return p[0];
 }
+int
 p2 (int b, int *p, int a)
 {
   p[0] = p[1];
   return p[0] == 0;
 }
+int
 p3 (int b, int *p, int a)
 {
   p[0] = p[1];
@@ -16,6 +19,7 @@ p3 (int b, int *p, int a)
     return 0;
   return a;
 }
+int
 p4 (int b, int *p, int a)
 {
   a = p[1];
index 97a1d1e2cdc05bcdb5bdcbd00b02b2d47ec04fb5..109d1677c7d6fc413b96157cd85db10c2c209675 100644 (file)
@@ -1,3 +1,4 @@
+void
 foo (int *p)
 {
   *p = (unsigned short) *p;
index a857f270c3008d8670bb87c42cd9032c6cc59ded..4d053037bc7767d2f100760dc90043f60ade7687 100644 (file)
@@ -26,6 +26,7 @@
 
 #define OFFSET (MAP_LEN/2 - 2 * sizeof (char));
 
+void
 f (int s, char *p)
 {
   int i;
@@ -35,7 +36,8 @@ f (int s, char *p)
     }
 }
 
-main ()
+int
+main (void)
 {
 #ifdef MAP_ANON
   char *p;
@@ -44,7 +46,7 @@ main ()
   dev_zero = open ("/dev/zero", O_RDONLY);
   /* -1 is OK when we have MAP_ANON; else mmap will flag an error.  */
   if (INT_MAX != 0x7fffffffL || sizeof (char *) != sizeof (int))
-    exit (0);
+    return 0;
   p = mmap (MAP_START, MAP_LEN, PROT_READ|PROT_WRITE,
            MAP_ANON|MAP_FIXED|MAP_PRIVATE, dev_zero, 0);
   if (p != (char *)-1)
@@ -53,12 +55,12 @@ main ()
       p[39] = 0;
       f (0, p);
       if (p[39] != (char)-2)
-       abort ();
+       __builtin_abort ();
       p[39] = 0;
       f (-1, p);
       if (p[39] != 0)
-       abort ();
+       __builtin_abort ();
     }
 #endif
-  exit (0);
+  return 0;
 }
index 71e24096cd4224f04d82d4fed160f9be961a6799..f6401f4880a3f4160fcdafd386170bc327e37925 100644 (file)
@@ -26,6 +26,7 @@
 
 #define OFFSET (MAP_LEN/2 - 2 * sizeof (char));
 
+void
 f (int s, char *p)
 {
   int i;
@@ -35,7 +36,8 @@ f (int s, char *p)
     }
 }
 
-main ()
+int
+main (void)
 {
 #ifdef MAP_ANON
   char *p;
@@ -44,7 +46,7 @@ main ()
   dev_zero = open ("/dev/zero", O_RDONLY);
   /* -1 is OK when we have MAP_ANON; else mmap will flag an error.  */
   if (INT_MAX != 0x7fffffffL || sizeof (char *) != sizeof (int))
-    exit (0);
+    return 0;
   p = mmap (MAP_START, MAP_LEN, PROT_READ|PROT_WRITE,
            MAP_ANON|MAP_FIXED|MAP_PRIVATE, dev_zero, 0);
   if (p != (char *)-1)
@@ -53,12 +55,12 @@ main ()
       p[39] = 0;
       f (0, p);
       if (p[39] != (char)-2)
-       abort ();
+       __builtin_abort ();
       p[39] = 0;
       f (-1, p);
       if (p[39] != 0)
-       abort ();
+       __builtin_abort ();
     }
 #endif
-  exit (0);
+  return 0;
 }
index 4b3d0fc767a36d626abdf8b01347dff628f599d7..c8d8b61937a21d421c8203d14639c61b864e406a 100644 (file)
@@ -3,8 +3,8 @@
    for -O2 -fprefetch-loop-arrays for ix86 targets.  */
 
 /* { dg-do run } */
-/* { dg-options "-O2 -fprefetch-loop-arrays -w" } */
-/* { dg-options "-O2 -fprefetch-loop-arrays -mtune=pentium3 -w" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
+/* { dg-options "-O2 -fprefetch-loop-arrays" } */
+/* { dg-options "-O2 -fprefetch-loop-arrays -mtune=pentium3" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
 
 
 struct reload
@@ -40,6 +40,6 @@ main ()
   n_reloads = 4;
   rld[2].out = 2;
   if (combine_reloads () != 2)
-    abort ();
-  exit (0);
+    __builtin_abort ();
+  __builtin_exit (0);
 }
index b1a318be8865cb87cd0d1894299fc68d6fba6c17..963134cc3db0d29ecfeb41a9348a6e2c67487a06 100644 (file)
@@ -139,13 +139,13 @@ int main()
    cpp_num res = num_lshift (num, 64, n);
 
    if (res.low != 0x30000)
-     abort ();
+     __builtin_abort ();
 
    if (res.high != 0)
-     abort ();
+     __builtin_abort ();
 
    if (res.overflow != 0)
-     abort ();
+     __builtin_abort ();
 
-   exit (0);
+   __builtin_exit (0);
 }
index b56a1c47176f43200ad806269a7cd17858801332..87be6fd33975aff1915334dfe87cec572d744455 100644 (file)
@@ -3,14 +3,15 @@
 
 #define SIZE 8
 
-main()
+int
+main(void)
 {
   int a[SIZE] = {1};
   int i;
 
   for (i = 1; i < SIZE; i++)
     if (a[i] != 0)
-      abort();
+      __builtin_abort();
 
-  exit (0);
+  __builtin_exit (0);
 }
index cca706e0c4f4d81ddb2eb423ec8cf59dcd354316..827b61fe67b751ed87489df5601e51717f162b96 100644 (file)
@@ -34,6 +34,8 @@ union tree_node
   int mode;
   struct tree_type type;
 };
+int vector_type_mode (tree);
+void real_inf (struct real_value *);
 tree
 omp_reduction_init (tree clause, tree type)
 {
index 354872595fb0f1e16ab4038f8cb7c6f271d9d648..7209615f322c37af45493a8ddabf3592afd5b5df 100644 (file)
@@ -11,13 +11,15 @@ struct entry
   unsigned short len;
   const char *attrib;
 };
+hashval_t iterative_hash (const struct entry *, __SIZE_TYPE__, hashval_t);
+hashval_t
 e_hash (const void *a)
 {
   const struct entry *e = a;
   hashval_t ret = 0;
   int i;
   if (e[0].etype != ETYPE_STRUCT && e[0].etype != ETYPE_UNION)
-    abort ();
+    __builtin_abort ();
   for (i = 0; i <= e[0].len; ++i)
     {
       ret = iterative_hash (&e[i], __builtin_offsetof (struct entry, attrib), ret);
index 8ce7ad1c5cb0f244718ad56a16acb77221882558..0da549b049a33a144c02ee20ddf1dae23a1bb891 100644 (file)
@@ -56,6 +56,9 @@ struct cse_reg_info
 };
 static struct cse_reg_info *cse_reg_info_table;
 static unsigned int cse_reg_info_timestamp;
+int rhs_regno (rtx);
+void foop (void);
+void arf (void);
 
 static __inline__ struct cse_reg_info *
 get_cse_reg_info (unsigned int regno)
index 7eee1b8877ddaf70213ee4c3101350bb93e5e267..f4e742135470652a7bb4469e1634f61b0145cfce 100644 (file)
@@ -134,6 +134,8 @@ union tree_node
   struct tree_typed typed;
   struct tree_type type;
 };
+enum tree_code invert_tree_comparison (enum tree_code, int);
+int vector_type_mode (tree);
 enum tree_code
 parse_predicate (tree cond, tree * op0, tree * op1)
 {
index b617f2df30295081e2a67b65cf65b2c007021c96..88af5f550ba12e1e64c373eb76d4088ea061152e 100644 (file)
@@ -15,6 +15,12 @@ typedef struct immediate_use_iterator_d
 {
 }
 imm_use_iterator;
+int arf (void);
+int gimple_debug_bind_p (gimple);
+int gimple_bb (gimple);
+tree gimple_assign_rhs_to_tree (void);
+int is_gimple_min_invariant (tree);
+tree unshare_expr (tree);
 void
 insert_debug_temp_for_var_def (gimple stmt)
 {
index 5ffd5f71506159b865520ee0363cbc8cb8cffa95..974961cedefe3535621d17a902fb0bd8a36da18d 100644 (file)
@@ -7,6 +7,11 @@
 
 typedef long unsigned int size_t;
 typedef union gimple_statement_d *gimple;
+int end_imm_use_stmt_p (void);
+void next_imm_use_stmt (void);
+int arf (void);
+int boo (void);
+void update_stmt (void);
 unsigned char
 propagate_with_phi ()
 {
index 163d9e1cf083c321b16b6e6ad7fc1e5cfea9679f..d60fecbeb5c069a59c95f42c91700d5d264adfa5 100644 (file)
@@ -13,13 +13,14 @@ union gimple_statement_d
   unsigned num_ops;
   tree exp;
 };
+void gimple_call_arg (gimple, unsigned);
 
 unsigned int x;
 static inline tree
 gimple_op (const_gimple gs, unsigned i)
 {
   if (!(i < gs->num_ops))
-    abort ();
+    __builtin_abort ();
   return gs->exp;
 }
 
index 79ec067e68ae808b0efed05cdce90602f8057ebe..c430bc2806ecaaba9e72913bdba67662fc74a64f 100644 (file)
@@ -13,6 +13,7 @@ enum optab_methods
 };
 struct optab_d { };
 typedef struct optab_d *optab;
+void expand_binop (optab, int, enum optab_methods);
 void
 expand_shift_1 (int code, int unsignedp, int rotate,
                optab lshift_optab, optab rshift_arith_optab)
index 814504af97f132d7ad43acc640d8257b7345eb3d..f6a29f628a23c0b8348c53c315b95e9f7ef48692 100644 (file)
@@ -33,6 +33,8 @@ typedef struct VEC_int_heap
   VEC_int_base base;
 }
 VEC_int_heap;
+void *vec_heap_o_reserve (VEC_int_heap *, int, __SIZE_TYPE__, __SIZE_TYPE__);
+int VEC_int_base_length (VEC_int_base *);
 static __inline__ int
 VEC_int_heap_reserve (VEC_int_heap ** vec_, int alloc_, const char *file_,
                      unsigned line_, const char *function_)
@@ -66,6 +68,11 @@ typedef struct
 {
 }
 bitmap_iterator;
+int bmp_iter_and_compl_init (bitmap_iterator *, bitmap_head *, bitmap, int,
+                            int *);
+int bmp_iter_and_compl (bitmap_iterator *, int *);
+void bmp_iter_next (bitmap_iterator *, int *);
+void VEC_int_heap_free (VEC_int_heap **);
 bitmap
 compute_idf (bitmap_head * dfs)
 {
index a5df75c9b72fdfe253e4bd6fb2d32de12f46f732..252fe06c666ae4fa0c5271b3ade8a571abed0cfd 100644 (file)
@@ -85,8 +85,8 @@ linit ()
            }
        }
       if (!viazero && ind->numents >= 4
-         && strcmp ((char *) (entry->affix),
-                    (char *) (ind->pu.ent->affix)) != 0)
+         && __builtin_strcmp ((char *) (entry->affix),
+                              (char *) (ind->pu.ent->affix)) != 0)
        {
        }
     }
index ede3274f59d17ad061315a390b2659fe9b99ccae..8cdf15843e969143970b6788b968c70c952906ff 100644 (file)
@@ -7,14 +7,16 @@ struct rtx_def
   int code;
   rtx rt_rtx;
 };
+int arf (void);
+int foo (void);
 rtx
 try_combine (rtx i1, rtx newpat)
 {
   rtx temp;
-  if (i1 && (temp = ((((((newpat->rt_rtx, ((((temp)->code) == 42)))))))))
+  if (i1 && (temp = (rtx) ((((((newpat->rt_rtx, ((((temp)->code) == 42)))))))))
       && ((temp =
-       (((((((((((newpat)->rt_rtx),
-                ((((temp)->code) == 42) && arf ())))))))))))))
+          (rtx) (((((((((((newpat)->rt_rtx),
+                         ((((temp)->code) == 42) && arf ())))))))))))))
     ;
   else if (i1 && foo ());
 }
index e68acbbc5d9a6637b3a189089e7a067b466d3926..3f8b6ee4342211addbe1f63a507ac49d622c2de4 100644 (file)
@@ -10,13 +10,14 @@ union gimple_statement_d
   unsigned num_ops;
   tree exp;
 };
+void gimple_call_arg (gimple, unsigned);
 
 unsigned int x;
 static inline tree
 gimple_op (const_gimple gs, unsigned i)
 {
   if (!(i < gs->num_ops))
-    abort ();
+    __builtin_abort ();
   return gs->exp;
 }
 
index fd99bfbf78900c14b1746be220d5de492aff827a..67e5fbd59b1462bdc5958546f36083ea4fcca3e2 100644 (file)
@@ -23,6 +23,8 @@ union tree_node
   struct tree_typed typed;
   struct tree_type_common type_common;
 };
+tree arf (void);
+void error (const char *);
 tree
 convert (tree type, tree expr)
 {
@@ -31,7 +33,7 @@ convert (tree type, tree expr)
   const char *invalid_conv_diag;
   tree ret;
   if (tree_contains_struct[expr->base.code][(42)] != 1)
-    abort ();
+    __builtin_abort ();
   if (type->type_common.main_variant == expr->typed.type->type_common.main_variant
       && (expr->typed.type->base.code != 123
          || e->base.code == 456))
index 8497ed6b4a4ee32417aa1d33ae97efc2ac536039..2c1e2b2a0766c412f8bda73617adf05c50386ee5 100644 (file)
@@ -12,6 +12,7 @@ enum optab_methods
 };
 struct optab_d { };
 typedef struct optab_d *optab;
+void expand_binop (optab, int, enum optab_methods);
 void
 expand_shift_1 (int code, int unsignedp, int rotate,
                optab lshift_optab, optab rshift_arith_optab)
index df6a9b32eb1b3bc70417d4c62b591bb97b36be2b..f7fd0eadb09d5552f1c42ad402c13639eb044e8b 100644 (file)
@@ -40,6 +40,10 @@ struct ix86_frame
 {
   long stack_pointer_offset;
 };
+int ix86_target_stack_probe (void);
+int pro_epilogue_adjust_stack (rtx, rtx, rtx, int, int);
+rtx gen_rtx_CONST_INT (int);
+void fancy_abort (const char *, int, const char *);
 void
 ix86_expand_prologue (void)
 {
index 8b7db3a238545eded92fd97413955e31a1839c89..cc00b73565311c7c58e223f86ed069e6128d86e6 100644 (file)
@@ -7,8 +7,8 @@ char z[32];
 int
 foo(void)
 {
-  memset (z, 0, 16);
-  memset (z+8, 0, 24);
+  __builtin_memset (z, 0, 16);
+  __builtin_memset (z+8, 0, 24);
 }
 
 /* { dg-final { scan-tree-dump "memset .&z, 0, 8." "dse1" } } */
index 24895c3ab48309b601f6f22c176f1e52350c2257..59fc21750c8adcb3a309858718ae815bfde24312 100644 (file)
@@ -28,8 +28,8 @@ union S2844 a2844[5];
 #define HAS_DATA_INIT_FUNC
 void init_data ()
 {
-  memset (&s2844, '\0', sizeof (s2844));
-  memset (a2844, '\0', sizeof (a2844));
+  __builtin_memset (&s2844, '\0', sizeof (s2844));
+  __builtin_memset (a2844, '\0', sizeof (a2844));
   s2844.a = 799U;
   a2844[2].a = 586U;
 }
index 30919c72c9139f469764c9160ea3ff18cec1a66f..c3f63a43fc5dd64c324577d57b106c02ff1cb6c0 100644 (file)
@@ -13,7 +13,7 @@ static unsigned fn1() {
     j = a;
     a = (a && (g % f && i) % h) | c | ~2;
     if (b)
-      printf("", 1);
+      __builtin_printf("", 1);
   }
   c = i;
   a = j;