This patch is a cleanup of tests in gcc.dg/torture directory. See https://gcc.gnu.org/ml/gcc-patches/2014-09/msg02656.html for more info.
Tested on x86_64-linux: vanilla results == results with this patch == results with this patch and gnu11 as a default. Ok? 2014-10-02 Marek Polacek <pola...@redhat.com> * gcc.dg/torture/pr24626-2.c: Add function declarations. Fix defaulting to int. * gcc.dg/torture/pr28814.c: Likewise. * gcc.dg/torture/pr57036-1.c: Likewise. * gcc.dg/torture/inline-1.c: Add function declarations. * gcc.dg/torture/pr24626-1.c: Likewise. * gcc.dg/torture/pr24626-3.c: Likewise. * gcc.dg/torture/pr25947-1.c: Likewise. * gcc.dg/torture/pr27409.c: Likewise. * gcc.dg/torture/pr38948.c: Likewise. * gcc.dg/torture/pr44807.c: Likewise. * gcc.dg/torture/pr49603.c: Likewise. * gcc.dg/torture/pr45865.c: Likewise. * gcc.dg/torture/pr51071-2.c: Likewise. * gcc.dg/torture/pr51801.c: Likewise. * gcc.dg/torture/pr52720.c: Likewise. * gcc.dg/torture/pr55124.c: Likewise. * gcc.dg/torture/pr55238.c: Likewise. * gcc.dg/torture/pr55687.c: Likewise. * gcc.dg/torture/pr55888.c: Likewise. * gcc.dg/torture/pr57036-2.c: Likewise. * gcc.dg/torture/pr57147-3.c: Likewise. * gcc.dg/torture/pr57584.c: Likewise. * gcc.dg/torture/pr59993.c: Likewise. * gcc.dg/torture/pr58079.c: Likewise. * gcc.dg/torture/va-arg-25.c: Likewise. * gcc.dg/torture/vector-2.c: Likewise. * gcc.dg/torture/stackalign/nested-3.c: Likewise. * gcc.dg/torture/pr31254.c: Fix defaulting to int. * gcc.dg/torture/pr43781.c: Likewise. * gcc.dg/torture/pr52912.c: Likewise. * gcc.dg/torture/pr59139.c: Likewise. * gcc.dg/torture/pr55890-1.c: Likewise. * gcc.dg/torture/pr55890-2.c: Likewise. * gcc.dg/torture/pr59164.c: Likewise. * gcc.dg/torture/pr57393-2.c: Likewise. * gcc.dg/torture/stackalign/comp-goto-1.c: Likewise. * gcc.dg/torture/stackalign/non-local-goto-4.c: Likewise. * gcc.dg/torture/stackalign/non-local-goto-5.c: Likewise. * gcc.dg/torture/pr35227.c: Use -std=gnu89. Fix defaulting to int. * gcc.dg/torture/stackalign/builtin-apply-4.c: Use -fgnu89-inline. diff --git gcc/gcc/testsuite/gcc.dg/torture/inline-1.c gcc/gcc/testsuite/gcc.dg/torture/inline-1.c index c7144ca..30bf91e 100644 --- gcc/gcc/testsuite/gcc.dg/torture/inline-1.c +++ gcc/gcc/testsuite/gcc.dg/torture/inline-1.c @@ -4,6 +4,7 @@ and the eh info. */ /* PR tree-opt/30385 */ +int f (void); static inline void g(int t) { int a; diff --git gcc/gcc/testsuite/gcc.dg/torture/pr24626-1.c gcc/gcc/testsuite/gcc.dg/torture/pr24626-1.c index 331c55e..eb04795 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr24626-1.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr24626-1.c @@ -2,6 +2,8 @@ typedef long (*bla)(int *node); +void T(int *); +long F3(void *); static long F2(void *tree, long blk, bla after_node_func) { diff --git gcc/gcc/testsuite/gcc.dg/torture/pr24626-2.c gcc/gcc/testsuite/gcc.dg/torture/pr24626-2.c index e48d3b3..541c8c5 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr24626-2.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr24626-2.c @@ -22,7 +22,12 @@ typedef enum { MU_REMOVE, MU_RENAME, MU_OPEN } mu_action; typedef struct __dbpginfo { u_int8_t type; } PAGE; +int __db_cursor (); +int __memp_fget (); +int __db_free (); +int __db_c_close (); int __db_master_update(mdbp, sdbp, txn, subdb, type, action, newname, flags) + int txn, subdb, type, action, newname, flags; DB *mdbp, *sdbp; { DB_ENV *dbenv; diff --git gcc/gcc/testsuite/gcc.dg/torture/pr24626-3.c gcc/gcc/testsuite/gcc.dg/torture/pr24626-3.c index 7780682..41decab 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr24626-3.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr24626-3.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ long fff(int*); +void T(int*); long F2(int *node) { diff --git gcc/gcc/testsuite/gcc.dg/torture/pr25947-1.c gcc/gcc/testsuite/gcc.dg/torture/pr25947-1.c index 8af6f8d..89d1ed0 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr25947-1.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr25947-1.c @@ -6,6 +6,7 @@ extern char *rl_line_buffer; extern int rl_point; extern int rl_end; static const char *vi_motion = " hl^$0ftFT;,%wbeWBE|"; +void rl_vi_end_word (int, int); void rl_vi_complete (int ignore, int key) { diff --git gcc/gcc/testsuite/gcc.dg/torture/pr27409.c gcc/gcc/testsuite/gcc.dg/torture/pr27409.c index 430e6c8..4bfae43 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr27409.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr27409.c @@ -10,6 +10,7 @@ struct { int g; } my_struct; +void foo (thang_t *); void function(int blaz) { thang_t *fp = &my_struct.f; diff --git gcc/gcc/testsuite/gcc.dg/torture/pr28814.c gcc/gcc/testsuite/gcc.dg/torture/pr28814.c index cc3c9f6..d896b43 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr28814.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr28814.c @@ -7,6 +7,8 @@ struct w49 } value; }; +void backtrace (const char *, int, int); +void f9887 (struct w49 a23040) { unsigned long r9887; diff --git gcc/gcc/testsuite/gcc.dg/torture/pr31254.c gcc/gcc/testsuite/gcc.dg/torture/pr31254.c index cec3012..7b56026 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr31254.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr31254.c @@ -19,6 +19,7 @@ static inline { return &vnode->vfs_inode; }; +void afs_inode_map_status (struct afs_vnode *vnode) { struct inode *inode = AFS_VNODE_TO_I (vnode); diff --git gcc/gcc/testsuite/gcc.dg/torture/pr35227.c gcc/gcc/testsuite/gcc.dg/torture/pr35227.c index d951d25..37c2d10 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr35227.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr35227.c @@ -1,5 +1,7 @@ /* { dg-do compile } */ +/* { dg-options "-std=gnu89" } */ +int mandel(double _Complex C) { int py; diff --git gcc/gcc/testsuite/gcc.dg/torture/pr38948.c gcc/gcc/testsuite/gcc.dg/torture/pr38948.c index 98ed493..90906ee 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr38948.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr38948.c @@ -24,6 +24,7 @@ typedef struct gs_matrix_fixed_s int x; } gs_matrix_fixed; +int gx_path_add_curve_notes (); static int append_simple (const byte * glyph, const gs_matrix_fixed * pmat, void * ppath) { @@ -78,6 +79,7 @@ append_simple (const byte * glyph, const gs_matrix_fixed * pmat, void * ppath) } } } +void gs_matrix_multiply (gs_matrix *, const gs_matrix *, gs_matrix *); int append_outline (uint glyph_index, const gs_matrix_fixed *pmat, void *ppath) { diff --git gcc/gcc/testsuite/gcc.dg/torture/pr43781.c gcc/gcc/testsuite/gcc.dg/torture/pr43781.c index 37fe5a3..e4ef338 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr43781.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr43781.c @@ -25,7 +25,7 @@ struct S2 g_320[2] = { }; void -int32func (uint64p_34) +int32func (int uint64p_34) { for (g_22.f3 = 0; g_22.f3 <= 0; g_22.f3) { diff --git gcc/gcc/testsuite/gcc.dg/torture/pr44807.c gcc/gcc/testsuite/gcc.dg/torture/pr44807.c index aa24a4c..918333e 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr44807.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr44807.c @@ -1,5 +1,8 @@ /* { dg-do compile } */ +int sigemptyset (int *); +int sigaddset(int, int); +int sigprocmask (); struct jobstats { int j_jobslots; diff --git gcc/gcc/testsuite/gcc.dg/torture/pr45865.c gcc/gcc/testsuite/gcc.dg/torture/pr45865.c index f2e31db..9974896 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr45865.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr45865.c @@ -25,6 +25,7 @@ struct rtx_def { unsigned int mode : 8; }; extern enum rtx_code reverse_condition (enum rtx_code); +extern enum rtx_code reverse_condition_maybe_unordered (enum rtx_code); enum rtx_code reversed_comparison_code_parts (enum rtx_code code, rtx insn, rtx arg0, rtx arg1) diff --git gcc/gcc/testsuite/gcc.dg/torture/pr49603.c gcc/gcc/testsuite/gcc.dg/torture/pr49603.c index 90f51e5..9bde989 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr49603.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr49603.c @@ -6,6 +6,7 @@ struct gl_visual { struct gl_context { struct gl_visual *Visual; }; +void foo (char *); void quickdraw_rgb( struct gl_context * ctx, int width, int height) { diff --git gcc/gcc/testsuite/gcc.dg/torture/pr51071-2.c gcc/gcc/testsuite/gcc.dg/torture/pr51071-2.c index b67879c..ccf3d81 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr51071-2.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr51071-2.c @@ -7,6 +7,7 @@ extern struct module __this_module; static inline void trace_module_get (struct module *mod, uintptr_t ip) { } struct module; +int module_is_live (struct module *); static inline __attribute__((no_instrument_function)) int try_module_get(struct module *module) { @@ -29,6 +30,7 @@ struct net_device; struct net_device_ops { int (*ndo_open)(struct net_device *dev); }; +int hdlc_open (struct net_device *); int t3e3_open(struct net_device *dev) { int ret = hdlc_open(dev); diff --git gcc/gcc/testsuite/gcc.dg/torture/pr51801.c gcc/gcc/testsuite/gcc.dg/torture/pr51801.c index c36cee3..d5617d5 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr51801.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr51801.c @@ -4,6 +4,8 @@ typedef struct { char Vshow; } TScreen; typedef struct _Misc { char Tshow; } Misc; typedef struct _XtermWidgetRec { TScreen screen; Misc misc; } XtermWidgetRec, *XtermWidget; extern XtermWidget term; +void Bell (XtermWidget, int, int); +void set_tek_visibility (int); void handle_tekshow (void *gw, int allowswitch) diff --git gcc/gcc/testsuite/gcc.dg/torture/pr52720.c gcc/gcc/testsuite/gcc.dg/torture/pr52720.c index 528aa16..ac0bfb6 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr52720.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr52720.c @@ -5,6 +5,7 @@ struct alu_bank_swizzle { int hw_gpr[3][4]; int hw_cfile_addr[4]; }; +void check_vector (struct alu_bank_swizzle *); static void init_bank_swizzle(struct alu_bank_swizzle *bs) { int i, cycle, component; diff --git gcc/gcc/testsuite/gcc.dg/torture/pr52912.c gcc/gcc/testsuite/gcc.dg/torture/pr52912.c index 3ae5758..1aa38c3 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr52912.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr52912.c @@ -2,7 +2,7 @@ int a, b, c; static int -fn1 (p1) +fn1 (int p1) { lbl_549: if (p1) diff --git gcc/gcc/testsuite/gcc.dg/torture/pr55124.c gcc/gcc/testsuite/gcc.dg/torture/pr55124.c index a8eec98..7ab1724 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr55124.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr55124.c @@ -2,6 +2,7 @@ int a, b; long c; +void foo(int); void f2(void) { diff --git gcc/gcc/testsuite/gcc.dg/torture/pr55238.c gcc/gcc/testsuite/gcc.dg/torture/pr55238.c index 0ace058..489d03e 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr55238.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr55238.c @@ -12,6 +12,8 @@ typedef struct gz_state; void gz_error (gz_state *state, int err, char *msg); +void foo (char *); +void bar (char *, char *); static void gz_reset (gz_state *state) diff --git gcc/gcc/testsuite/gcc.dg/torture/pr55687.c gcc/gcc/testsuite/gcc.dg/torture/pr55687.c index 1eab1a4..502ddd4 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr55687.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr55687.c @@ -5,6 +5,7 @@ typedef short gshort; typedef struct _GString GString; extern char *fgets(char *, int, FILE *); +extern void g_string_append_c_inline (GString *, char); void verbose_text_loop (void *data) { diff --git gcc/gcc/testsuite/gcc.dg/torture/pr55888.c gcc/gcc/testsuite/gcc.dg/torture/pr55888.c index e75adcd..e7f4260 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr55888.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr55888.c @@ -55,6 +55,8 @@ typedef enum PROTOBUF_C_WIRE_TYPE_END_GROUP, PROTOBUF_C_WIRE_TYPE_32BIT } ProtobufCWireType; +size_t tag_pack (uint32_t, uint8_t *); +size_t prefixed_message_pack (ProtobufCMessage *, uint8_t *); static inline size_t uint32_pack (uint32_t value, uint8_t * out) { diff --git gcc/gcc/testsuite/gcc.dg/torture/pr55890-1.c gcc/gcc/testsuite/gcc.dg/torture/pr55890-1.c index 9fd558e..1113ab5 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr55890-1.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr55890-1.c @@ -3,4 +3,4 @@ extern void *memmove(void *, void *, __SIZE_TYPE__); typedef int (*_TEST_fun_) (); static _TEST_fun_ i = (_TEST_fun_) memmove; -main() { i(); } +int main() { i(); } diff --git gcc/gcc/testsuite/gcc.dg/torture/pr55890-2.c gcc/gcc/testsuite/gcc.dg/torture/pr55890-2.c index a753e57..1cf71d7 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr55890-2.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr55890-2.c @@ -1,4 +1,4 @@ /* { dg-do compile } */ extern void *memcpy(); -main() { memcpy(); } +int main() { memcpy(); } diff --git gcc/gcc/testsuite/gcc.dg/torture/pr57036-1.c gcc/gcc/testsuite/gcc.dg/torture/pr57036-1.c index 5aa63bd..abd87c9 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr57036-1.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr57036-1.c @@ -1,7 +1,10 @@ /* { dg-do compile } */ extern void g (void); +int _setjmp(); +int read_buf_open (void); extern __inline __attribute__ ((__always_inline__,__leaf__)) +void f () { g (); diff --git gcc/gcc/testsuite/gcc.dg/torture/pr57036-2.c gcc/gcc/testsuite/gcc.dg/torture/pr57036-2.c index 25de5cd..ceb4787 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr57036-2.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr57036-2.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ int j_; +void g (void); int jpgDecode_convert (unsigned i) { __label__ label; diff --git gcc/gcc/testsuite/gcc.dg/torture/pr57147-3.c gcc/gcc/testsuite/gcc.dg/torture/pr57147-3.c index c64e5ad..7a5926a 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr57147-3.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr57147-3.c @@ -5,6 +5,8 @@ struct __jmp_buf_tag { }; typedef struct __jmp_buf_tag sigjmp_buf[1]; sigjmp_buf GC_jmp_buf; +int __sigsetjmp (sigjmp_buf, int); +void GC_set_and_save_fault_handler (void (*)(int)); void GC_fault_handler(int sig) { } diff --git gcc/gcc/testsuite/gcc.dg/torture/pr57393-2.c gcc/gcc/testsuite/gcc.dg/torture/pr57393-2.c index b9b12ff..dfba97f 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr57393-2.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr57393-2.c @@ -3,6 +3,7 @@ char a; +void foo (int **p) { int b; diff --git gcc/gcc/testsuite/gcc.dg/torture/pr57584.c gcc/gcc/testsuite/gcc.dg/torture/pr57584.c index 0e5a294..b527b04 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr57584.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr57584.c @@ -32,6 +32,8 @@ struct scm_vm { }; static SCM vm_regular_engine (SCM vm, SCM program, SCM *argv, int nargs) { } +void vm_dispatch_hook (); +int _setjmp (); static SCM vm_debug_engine (SCM vm, SCM program, SCM *argv, int nargs) { register scm_t_uint8 *ip ; register SCM *sp ; diff --git gcc/gcc/testsuite/gcc.dg/torture/pr58079.c gcc/gcc/testsuite/gcc.dg/torture/pr58079.c index 99a3018..10defa5 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr58079.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr58079.c @@ -43,6 +43,7 @@ struct dvb_demux { struct list_head feed_list; }; +int dvb_dmx_swfilter_section_packet (struct dvb_demux_feed *, const u8 *); static inline diff --git gcc/gcc/testsuite/gcc.dg/torture/pr59139.c gcc/gcc/testsuite/gcc.dg/torture/pr59139.c index 4ec9177..5b05956 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr59139.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr59139.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ int a, b, c, d, e; -int fn1(p1, p2) { return p2 == 0 ? p1 : 1 % p2; } +int fn1(int p1, int p2) { return p2 == 0 ? p1 : 1 % p2; } void fn2() { diff --git gcc/gcc/testsuite/gcc.dg/torture/pr59164.c gcc/gcc/testsuite/gcc.dg/torture/pr59164.c index 1ec6961..345a96a 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr59164.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr59164.c @@ -4,7 +4,7 @@ int a, d, e; long b[10]; int c[10][8]; -int fn1(p1) +int fn1(int p1) { return 1 >> p1; } diff --git gcc/gcc/testsuite/gcc.dg/torture/pr59993.c gcc/gcc/testsuite/gcc.dg/torture/pr59993.c index be55a10..833d923 100644 --- gcc/gcc/testsuite/gcc.dg/torture/pr59993.c +++ gcc/gcc/testsuite/gcc.dg/torture/pr59993.c @@ -4,6 +4,8 @@ extern int optind; jmp_buf jump_buf; +void foo (jmp_buf, int); +void bar (char *); int main (int argc, char **argv) { diff --git gcc/gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-4.c gcc/gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-4.c index 28dc610..d958293 100644 --- gcc/gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-4.c +++ gcc/gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-4.c @@ -1,5 +1,6 @@ /* PR tree-optimization/20076 */ /* { dg-do run } */ +/* { dg-options "-fgnu89-inline" } */ extern void abort (void); diff --git gcc/gcc/testsuite/gcc.dg/torture/stackalign/comp-goto-1.c gcc/gcc/testsuite/gcc.dg/torture/stackalign/comp-goto-1.c index 7558f01..cf16372 100644 --- gcc/gcc/testsuite/gcc.dg/torture/stackalign/comp-goto-1.c +++ gcc/gcc/testsuite/gcc.dg/torture/stackalign/comp-goto-1.c @@ -11,10 +11,10 @@ extern void exit (int); #if ! defined (NO_LABEL_VALUES) && !defined (NO_TRAMPOLINES) int -x(a) +x(int a) { __label__ xlab; - void y(a) + void y(int a) { void *x = &&llab; if (a==-1) diff --git gcc/gcc/testsuite/gcc.dg/torture/stackalign/nested-3.c gcc/gcc/testsuite/gcc.dg/torture/stackalign/nested-3.c index d35c9a7..917bdc3 100644 --- gcc/gcc/testsuite/gcc.dg/torture/stackalign/nested-3.c +++ gcc/gcc/testsuite/gcc.dg/torture/stackalign/nested-3.c @@ -8,6 +8,7 @@ #endif typedef int aligned __attribute__((aligned(ALIGNMENT))); +extern int strncmp (const char *, const char *, size_t); int global; diff --git gcc/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-4.c gcc/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-4.c index 3673f1a..d9bc6de 100644 --- gcc/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-4.c +++ gcc/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-4.c @@ -11,11 +11,10 @@ extern void exit (int); #if ! defined (NO_LABEL_VALUES) && !defined (NO_TRAMPOLINES) int - -x(a) +x(int a) { __label__ xlab; - void y(a) + void y(int a) { if (a==0) goto xlab; diff --git gcc/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-5.c gcc/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-5.c index d198c9a..0fee829 100644 --- gcc/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-5.c +++ gcc/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-5.c @@ -3,7 +3,7 @@ extern void exit (int); #if !defined (NO_LABEL_VALUES) && !defined (NO_TRAMPOLINES) extern void abort (void); -int s(i){if(i>0){__label__ l1;int f(int i){if(i==2)goto l1;return 0;}return f(i);l1:;}return 1;} +int s(int i){if(i>0){__label__ l1;int f(int i){if(i==2)goto l1;return 0;}return f(i);l1:;}return 1;} int x(){return s(0)==1&&s(1)==0&&s(2)==1;} int main(){if(x()!=1)abort();exit(0);} #else diff --git gcc/gcc/testsuite/gcc.dg/torture/va-arg-25.c gcc/gcc/testsuite/gcc.dg/torture/va-arg-25.c index 64aaffa..0fff623 100644 --- gcc/gcc/testsuite/gcc.dg/torture/va-arg-25.c +++ gcc/gcc/testsuite/gcc.dg/torture/va-arg-25.c @@ -15,6 +15,8 @@ const vector unsigned int v1 = {10,11,12,13}; const vector unsigned int v2 = {20,21,22,23}; +extern int memcmp (const void *, const void *, size_t); + void foo(int a, ...) { va_list args; diff --git gcc/gcc/testsuite/gcc.dg/torture/vector-2.c gcc/gcc/testsuite/gcc.dg/torture/vector-2.c index 6cc56cf..b004d00 100644 --- gcc/gcc/testsuite/gcc.dg/torture/vector-2.c +++ gcc/gcc/testsuite/gcc.dg/torture/vector-2.c @@ -8,6 +8,8 @@ #define vector __attribute__((vector_size(16) )) +extern int memcmp (const void *, const void *, __SIZE_TYPE__); + vector int f0(vector int t, int a) { ((int*)&t)[0] = a; Marek