From 7e9b821966e9fdd8a88a6c06ae3aafa87a071ccd Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Fri, 3 Oct 2014 10:41:29 +0000 Subject: [PATCH] pr24626-2.c: Add function declarations. * 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. * lib/target-supports.exp (check_effective_target_trapping): Likewise. * gcc.dg/torture/pr35227.c: Use -std=gnu89. Fix defaulting to int. * gcc.dg/torture/stackalign/builtin-apply-4.c: Use -fgnu89-inline. From-SVN: r215844 --- gcc/testsuite/ChangeLog | 45 +++++++++++++++++++ gcc/testsuite/gcc.dg/torture/inline-1.c | 1 + gcc/testsuite/gcc.dg/torture/pr24626-1.c | 2 + gcc/testsuite/gcc.dg/torture/pr24626-2.c | 5 +++ gcc/testsuite/gcc.dg/torture/pr24626-3.c | 1 + gcc/testsuite/gcc.dg/torture/pr25947-1.c | 1 + gcc/testsuite/gcc.dg/torture/pr27409.c | 1 + gcc/testsuite/gcc.dg/torture/pr28814.c | 2 + gcc/testsuite/gcc.dg/torture/pr31254.c | 1 + gcc/testsuite/gcc.dg/torture/pr35227.c | 2 + gcc/testsuite/gcc.dg/torture/pr38948.c | 2 + gcc/testsuite/gcc.dg/torture/pr43781.c | 2 +- gcc/testsuite/gcc.dg/torture/pr44807.c | 3 ++ gcc/testsuite/gcc.dg/torture/pr45865.c | 1 + gcc/testsuite/gcc.dg/torture/pr49603.c | 1 + gcc/testsuite/gcc.dg/torture/pr51071-2.c | 2 + gcc/testsuite/gcc.dg/torture/pr51801.c | 2 + gcc/testsuite/gcc.dg/torture/pr52720.c | 1 + gcc/testsuite/gcc.dg/torture/pr52912.c | 2 +- gcc/testsuite/gcc.dg/torture/pr55124.c | 1 + gcc/testsuite/gcc.dg/torture/pr55238.c | 2 + gcc/testsuite/gcc.dg/torture/pr55687.c | 1 + gcc/testsuite/gcc.dg/torture/pr55888.c | 2 + gcc/testsuite/gcc.dg/torture/pr55890-1.c | 2 +- gcc/testsuite/gcc.dg/torture/pr55890-2.c | 2 +- gcc/testsuite/gcc.dg/torture/pr57036-1.c | 3 ++ gcc/testsuite/gcc.dg/torture/pr57036-2.c | 1 + gcc/testsuite/gcc.dg/torture/pr57147-3.c | 2 + gcc/testsuite/gcc.dg/torture/pr57393-2.c | 1 + gcc/testsuite/gcc.dg/torture/pr57584.c | 2 + gcc/testsuite/gcc.dg/torture/pr58079.c | 1 + gcc/testsuite/gcc.dg/torture/pr59139.c | 2 +- gcc/testsuite/gcc.dg/torture/pr59164.c | 2 +- gcc/testsuite/gcc.dg/torture/pr59993.c | 2 + .../torture/stackalign/builtin-apply-4.c | 1 + .../gcc.dg/torture/stackalign/comp-goto-1.c | 4 +- .../gcc.dg/torture/stackalign/nested-3.c | 1 + .../torture/stackalign/non-local-goto-4.c | 5 +-- .../torture/stackalign/non-local-goto-5.c | 2 +- gcc/testsuite/gcc.dg/torture/va-arg-25.c | 2 + gcc/testsuite/gcc.dg/torture/vector-2.c | 2 + gcc/testsuite/lib/target-supports.exp | 2 +- 42 files changed, 109 insertions(+), 13 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index aad6c16260c..f78fb8c60cc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,48 @@ +2014-10-03 Marek Polacek + + * 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. + * lib/target-supports.exp (check_effective_target_trapping): Likewise. + * gcc.dg/torture/pr35227.c: Use -std=gnu89. Fix defaulting to int. + * gcc.dg/torture/stackalign/builtin-apply-4.c: Use -fgnu89-inline. + 2014-10-03 Jakub Jelinek PR libgomp/61200 diff --git a/gcc/testsuite/gcc.dg/torture/inline-1.c b/gcc/testsuite/gcc.dg/torture/inline-1.c index c7144ca68e9..30bf91ece88 100644 --- a/gcc/testsuite/gcc.dg/torture/inline-1.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr24626-1.c b/gcc/testsuite/gcc.dg/torture/pr24626-1.c index 331c55ec3b0..eb04795cfef 100644 --- a/gcc/testsuite/gcc.dg/torture/pr24626-1.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr24626-2.c b/gcc/testsuite/gcc.dg/torture/pr24626-2.c index e48d3b31c4b..541c8c5aca4 100644 --- a/gcc/testsuite/gcc.dg/torture/pr24626-2.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr24626-3.c b/gcc/testsuite/gcc.dg/torture/pr24626-3.c index 77806826814..41decabfacf 100644 --- a/gcc/testsuite/gcc.dg/torture/pr24626-3.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr25947-1.c b/gcc/testsuite/gcc.dg/torture/pr25947-1.c index 8af6f8d4624..89d1ed07609 100644 --- a/gcc/testsuite/gcc.dg/torture/pr25947-1.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr27409.c b/gcc/testsuite/gcc.dg/torture/pr27409.c index 430e6c8cc5e..4bfae43be37 100644 --- a/gcc/testsuite/gcc.dg/torture/pr27409.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr28814.c b/gcc/testsuite/gcc.dg/torture/pr28814.c index cc3c9f6ce73..cf641ca9058 100644 --- a/gcc/testsuite/gcc.dg/torture/pr28814.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr31254.c b/gcc/testsuite/gcc.dg/torture/pr31254.c index cec301273e5..ef2ee21ad67 100644 --- a/gcc/testsuite/gcc.dg/torture/pr31254.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr35227.c b/gcc/testsuite/gcc.dg/torture/pr35227.c index d951d250fb2..37c2d107292 100644 --- a/gcc/testsuite/gcc.dg/torture/pr35227.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr38948.c b/gcc/testsuite/gcc.dg/torture/pr38948.c index 98ed493cbd7..90906eebf22 100644 --- a/gcc/testsuite/gcc.dg/torture/pr38948.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr43781.c b/gcc/testsuite/gcc.dg/torture/pr43781.c index 37fe5a36769..e4ef3386508 100644 --- a/gcc/testsuite/gcc.dg/torture/pr43781.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr44807.c b/gcc/testsuite/gcc.dg/torture/pr44807.c index aa24a4c32e1..918333e2563 100644 --- a/gcc/testsuite/gcc.dg/torture/pr44807.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr45865.c b/gcc/testsuite/gcc.dg/torture/pr45865.c index f2e31dbab11..9974896f60c 100644 --- a/gcc/testsuite/gcc.dg/torture/pr45865.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr49603.c b/gcc/testsuite/gcc.dg/torture/pr49603.c index 90f51e5059c..9bde9891a4c 100644 --- a/gcc/testsuite/gcc.dg/torture/pr49603.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr51071-2.c b/gcc/testsuite/gcc.dg/torture/pr51071-2.c index b67879c443d..ccf3d815872 100644 --- a/gcc/testsuite/gcc.dg/torture/pr51071-2.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr51801.c b/gcc/testsuite/gcc.dg/torture/pr51801.c index c36cee306fb..d5617d53029 100644 --- a/gcc/testsuite/gcc.dg/torture/pr51801.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr52720.c b/gcc/testsuite/gcc.dg/torture/pr52720.c index 528aa161b13..ac0bfb643b2 100644 --- a/gcc/testsuite/gcc.dg/torture/pr52720.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr52912.c b/gcc/testsuite/gcc.dg/torture/pr52912.c index 3ae57588f26..1aa38c3ad6f 100644 --- a/gcc/testsuite/gcc.dg/torture/pr52912.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr55124.c b/gcc/testsuite/gcc.dg/torture/pr55124.c index a8eec984b39..7ab172438a1 100644 --- a/gcc/testsuite/gcc.dg/torture/pr55124.c +++ b/gcc/testsuite/gcc.dg/torture/pr55124.c @@ -2,6 +2,7 @@ int a, b; long c; +void foo(int); void f2(void) { diff --git a/gcc/testsuite/gcc.dg/torture/pr55238.c b/gcc/testsuite/gcc.dg/torture/pr55238.c index 0ace05809c9..489d03ea587 100644 --- a/gcc/testsuite/gcc.dg/torture/pr55238.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr55687.c b/gcc/testsuite/gcc.dg/torture/pr55687.c index 1eab1a4f653..502ddd4ed2e 100644 --- a/gcc/testsuite/gcc.dg/torture/pr55687.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr55888.c b/gcc/testsuite/gcc.dg/torture/pr55888.c index e75adcd2c62..e7f4260d069 100644 --- a/gcc/testsuite/gcc.dg/torture/pr55888.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr55890-1.c b/gcc/testsuite/gcc.dg/torture/pr55890-1.c index 9fd558ea03f..1113ab535f5 100644 --- a/gcc/testsuite/gcc.dg/torture/pr55890-1.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr55890-2.c b/gcc/testsuite/gcc.dg/torture/pr55890-2.c index a753e573dce..1cf71d7529c 100644 --- a/gcc/testsuite/gcc.dg/torture/pr55890-2.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr57036-1.c b/gcc/testsuite/gcc.dg/torture/pr57036-1.c index 5aa63bd7506..ac6bc6b9df2 100644 --- a/gcc/testsuite/gcc.dg/torture/pr57036-1.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr57036-2.c b/gcc/testsuite/gcc.dg/torture/pr57036-2.c index 25de5cd1509..ceb47876d19 100644 --- a/gcc/testsuite/gcc.dg/torture/pr57036-2.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr57147-3.c b/gcc/testsuite/gcc.dg/torture/pr57147-3.c index c64e5adb030..7a5926a1630 100644 --- a/gcc/testsuite/gcc.dg/torture/pr57147-3.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr57393-2.c b/gcc/testsuite/gcc.dg/torture/pr57393-2.c index b9b12ffa557..a56313c1d6b 100644 --- a/gcc/testsuite/gcc.dg/torture/pr57393-2.c +++ b/gcc/testsuite/gcc.dg/torture/pr57393-2.c @@ -3,6 +3,7 @@ char a; +void foo (int **p) { int b; diff --git a/gcc/testsuite/gcc.dg/torture/pr57584.c b/gcc/testsuite/gcc.dg/torture/pr57584.c index 0e5a29492d7..b527b047ab6 100644 --- a/gcc/testsuite/gcc.dg/torture/pr57584.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr58079.c b/gcc/testsuite/gcc.dg/torture/pr58079.c index 99a30181f1e..10defa56881 100644 --- a/gcc/testsuite/gcc.dg/torture/pr58079.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr59139.c b/gcc/testsuite/gcc.dg/torture/pr59139.c index 4ec9177ffe7..5b059566f88 100644 --- a/gcc/testsuite/gcc.dg/torture/pr59139.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr59164.c b/gcc/testsuite/gcc.dg/torture/pr59164.c index 1ec69610c21..345a96add68 100644 --- a/gcc/testsuite/gcc.dg/torture/pr59164.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/pr59993.c b/gcc/testsuite/gcc.dg/torture/pr59993.c index be55a10b9fd..833d923a302 100644 --- a/gcc/testsuite/gcc.dg/torture/pr59993.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-4.c b/gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-4.c index 28dc6106d07..d958293b34f 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/builtin-apply-4.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/stackalign/comp-goto-1.c b/gcc/testsuite/gcc.dg/torture/stackalign/comp-goto-1.c index 7558f01e2e8..cf163722de8 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/comp-goto-1.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/stackalign/nested-3.c b/gcc/testsuite/gcc.dg/torture/stackalign/nested-3.c index d35c9a7ce8a..917bdc37acb 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/nested-3.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-4.c b/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-4.c index 3673f1ac337..d9bc6dec6f4 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-4.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-5.c b/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-5.c index d198c9a97f9..0fee82960de 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-5.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/va-arg-25.c b/gcc/testsuite/gcc.dg/torture/va-arg-25.c index 64aaffac8b7..0fff6239be6 100644 --- a/gcc/testsuite/gcc.dg/torture/va-arg-25.c +++ b/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 a/gcc/testsuite/gcc.dg/torture/vector-2.c b/gcc/testsuite/gcc.dg/torture/vector-2.c index 6cc56cfae78..b004d005775 100644 --- a/gcc/testsuite/gcc.dg/torture/vector-2.c +++ b/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; diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 7d2451a8a50..77e45cb5831 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -702,7 +702,7 @@ proc check_effective_target_scheduling {} { proc check_effective_target_trapping {} { return [check_no_compiler_messages trapping object { - add (int a, int b) { return a + b; } + int add (int a, int b) { return a + b; } } "-ftrapv"] } -- 2.30.2