+2014-10-03 Marek Polacek <polacek@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.
+ * 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 <jakub@redhat.com>
PR libgomp/61200
and the eh info. */
/* PR tree-opt/30385 */
+int f (void);
static inline void g(int t)
{
int a;
typedef long
(*bla)(int *node);
+void T(int *);
+long F3(void *);
static long F2(void *tree, long blk, bla after_node_func)
{
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;
/* { dg-do compile } */
long fff(int*);
+void T(int*);
long F2(int *node)
{
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)
{
int g;
} my_struct;
+void foo (thang_t *);
void function(int blaz)
{
thang_t *fp = &my_struct.f;
}
value;
};
+void backtrace (const char *, int, int);
+void
f9887 (struct w49 a23040)
{
unsigned long r9887;
{
return &vnode->vfs_inode;
};
+void
afs_inode_map_status (struct afs_vnode *vnode)
{
struct inode *inode = AFS_VNODE_TO_I (vnode);
/* { dg-do compile } */
+/* { dg-options "-std=gnu89" } */
+int
mandel(double _Complex C)
{
int py;
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)
{
}
}
}
+void gs_matrix_multiply (gs_matrix *, const gs_matrix *, gs_matrix *);
int
append_outline (uint glyph_index, const gs_matrix_fixed *pmat, void *ppath)
{
};
void
-int32func (uint64p_34)
+int32func (int uint64p_34)
{
for (g_22.f3 = 0; g_22.f3 <= 0; g_22.f3)
{
/* { dg-do compile } */
+int sigemptyset (int *);
+int sigaddset(int, int);
+int sigprocmask ();
struct jobstats
{
int j_jobslots;
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)
struct gl_context {
struct gl_visual *Visual;
};
+void foo (char *);
void quickdraw_rgb( struct gl_context * ctx,
int width, int height)
{
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)
{
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);
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)
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;
int a, b, c;
static int
-fn1 (p1)
+fn1 (int p1)
{
lbl_549:
if (p1)
int a, b;
long c;
+void foo(int);
void f2(void)
{
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)
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)
{
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)
{
extern void *memmove(void *, void *, __SIZE_TYPE__);
typedef int (*_TEST_fun_) ();
static _TEST_fun_ i = (_TEST_fun_) memmove;
-main() { i(); }
+int main() { i(); }
/* { dg-do compile } */\r
\r
extern void *memcpy();\r
-main() { memcpy(); }\r
+int main() { memcpy(); }\r
/* { dg-do compile } */
extern void g (void);
+int _setjmp();
+int read_buf_open (void);
extern __inline __attribute__ ((__always_inline__,__leaf__))
+void
f ()
{
g ();
/* { dg-do compile } */
int j_;
+void g (void);
int jpgDecode_convert (unsigned i)
{
__label__ label;
};
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)
{
}
char a;
+void
foo (int **p)
{
int b;
};
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 ;
struct list_head feed_list;
};
+int dvb_dmx_swfilter_section_packet (struct dvb_demux_feed *, const u8 *);
static
inline
/* { 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()
{
long b[10];
int c[10][8];
-int fn1(p1)
+int fn1(int p1)
{
return 1 >> p1;
}
extern int optind;
jmp_buf jump_buf;
+void foo (jmp_buf, int);
+void bar (char *);
int
main (int argc, char **argv)
{
/* PR tree-optimization/20076 */
/* { dg-do run } */
+/* { dg-options "-fgnu89-inline" } */
extern void abort (void);
#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)
#endif
typedef int aligned __attribute__((aligned(ALIGNMENT)));
+extern int strncmp (const char *, const char *, size_t);
int global;
#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;
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
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;
#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;
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"]
}