@@ -26,7 +26,7 @@ static sockaddr_any src_addr;
inline struct cmsghdr * cmsg_put(struct cmsghdr *cm, int type, void *data, size_t len)
{
- memcpy(((cm)->__cmsg_data), data, len);
+ __builtin_memcpy(((cm)->__cmsg_data), data, len);
}
int hop_sendmsg(int fd) {
@@ -2,6 +2,7 @@
/* { dg-require-effective-target indirect_jumps } */
long buf[10];
+void bar (void);
int foo()
{
@@ -1,6 +1,7 @@
struct buffer_head {
char *b_data;
};
+ void __brelse(struct buffer_head *);
void asfs_deletebnode( struct buffer_head *bhsec) {
if (bhsec == 0) {
void *bnc2 = (void *) bhsec->b_data;
@@ -1,4 +1,4 @@
-
+void long2str (const char *, int);
extern int foo (void);
int
@@ -10,10 +10,10 @@ avi_parse_comments (int fd, char *buf, int space_left)
if (fd <= 0 || !buf || space_left <= 0)
return -1;
- memset (buf, 0, space_left);
+ __builtin_memset (buf, 0, space_left);
readlen = foo ();
- if (!(data = malloc (readlen * sizeof (char) + 1)))
+ if (!(data = __builtin_malloc (readlen * sizeof (char) + 1)))
return -1;
c = data;
@@ -34,7 +34,7 @@ avi_parse_comments (int fd, char *buf, int space_left)
return len;
- memcpy (buf + len, c, 4);
+ __builtin_memcpy (buf + len, c, 4);
len += 4;
@@ -42,7 +42,7 @@ avi_parse_comments (int fd, char *buf, int space_left)
len += 4;
- memcpy (buf + len, d, k);
+ __builtin_memcpy (buf + len, d, k);
*(buf + len + k + 1) = '\0';
@@ -64,7 +64,7 @@ avi_parse_comments (int fd, char *buf, int space_left)
}
}
- free (data);
+ __builtin_free (data);
return len;
}
@@ -2,6 +2,7 @@ struct WView
{
int hexedit_mode:1;
};
+void
toggle_hexedit_mode (struct WView *view)
{
if (view->hexedit_mode)
@@ -13,6 +13,8 @@ struct sigaction
__sigset_t sa_mask;
int sa_flags;
};
+void sigemptyset (__sigset_t *);
+void
doSignalsSetup (void)
{
static const int signals[] = {
@@ -12,6 +12,7 @@ typedef struct ScanTable
int h263_aic;
}
MpegEncContext;
+void
MPV_encode_init (AVCodecContext *avctx)
{
MpegEncContext *s = avctx->priv_data;
@@ -1,3 +1,4 @@
+void __assert_fail (void);
void ucs2reverse_internal_loop_single (long *irreversible, int foo)
{
unsigned char bytebuf[2];
@@ -12,6 +12,9 @@ struct mthca_fmr *to_mfmr(struct ib_fmr *ibmr)
const struct ib_fmr *__mptr = (ibmr);
return (struct mthca_fmr *)( (char *)__mptr );
}
+int mthca_is_memfree(void);
+void mthca_arbel_fmr_unmap (struct mthca_fmr *);
+void mthca_tavor_fmr_unmap (struct mthca_fmr *);
void mthca_unmap_fmr(struct list_head *fmr_list)
{
struct ib_fmr *fmr;
@@ -51,7 +51,8 @@ typedef struct binbox {
CHANGRDBOX ;
extern int numcells ;
extern int numterms ;
-sortpin()
+void
+sortpin(void)
{
int j , n , cell ;
CBOXPTR ptr ;
@@ -1,6 +1,10 @@
/* { dg-require-effective-target indirect_jumps } */
/* { dg-require-effective-target label_values } */
+void read_int (char **);
+void _itoa_word (char);
+void __strnlen (void);
+
void _IO_vfprintf_internal ( char *f )
{
static const void *const step0_jumps[] = { &&do_form_unknown, &&do_flag_plus, &&do_form_float };
@@ -12,6 +12,7 @@ typedef struct rend_service_descriptor_t
char status_tag[32];
}
tor_version_t;
+void
test_dir_format (void)
{
tor_version_t ver1;
@@ -52,7 +53,7 @@ test_dir_format (void)
char
*)
(v2);
- register
+ register int
__result
=
(((__const unsigned char *) (__const char *) (v1))[0] - __s2[0]); if (__s1_len > 0 && __result == 0)
@@ -76,10 +77,10 @@ test_dir_format (void)
(__const
char
*)
- (__const
+ (__const int
*)
(v1);
- register
+ register int
__result
=
((__const unsigned char *) (__const char *) (v2))[0]; if (__s2_len > 0 && __result == 0)
@@ -96,7 +97,7 @@ test_dir_format (void)
v2))));}
))
{
- printf (".");
+ __builtin_printf (".");
}
}
}
@@ -7,6 +7,7 @@ typedef struct {
_Complex long double *vqd;
} vsorc_t;
vsorc_t vsorc;
+long double cabsl(_Complex long double);
void foo(int next_job, int ain_num, int iped, long t) {
long double zpnorm;
@@ -77,8 +77,8 @@ struct tm { };
typedef struct __locale_struct { } *__locale_t;
extern int getaddrinfo (__const char *__restrict __name, struct addrinfo **__restrict __pai);
typedef struct _IO_FILE FILE;
-__strsep_1c (char **__s, char __reject) { }
-__strsep_2c (char **__s, char __reject1, char __reject2) { }
+void __strsep_1c (char **__s, char __reject) { }
+void __strsep_2c (char **__s, char __reject1, char __reject2) { }
typedef struct stack_st { } STACK;
typedef struct asn1_string_st ASN1_BIT_STRING;
typedef struct bn_mont_ctx_st BN_MONT_CTX;
@@ -1,6 +1,12 @@
/* { dg-require-effective-target alloca } */
typedef unsigned long grub_uint64_t;
typedef grub_uint64_t grub_size_t;
+void grub_putchar (char);
+void cl_set_pos (void);
+void cl_print (grub_size_t, char);
+void grub_memmove (void);
+void cl_delete (grub_size_t);
+void
grub_cmdline_get (unsigned max_len, int echo_char)
{
unsigned xpos, ypos, ystart;
@@ -10,6 +10,7 @@ ieee_float_shape_type;
static const float two23 = 8.3886080000e+06;
static const float pi = 3.1415927410e+00;
static const float zero = 0.0000000000e+00;
+float __kernel_sinf (float, float, int);
static float
sin_pif (float x)
{
@@ -33,7 +33,7 @@ static unsigned int find_tmpreg(struct texture_stage_op op[8]) {
return 0;
}
-extern f(const char*);
+extern void f(const char*);
void g() {
struct texture_stage_op op[8];
@@ -10,7 +10,7 @@ __SIZE_TYPE__ FcCharSetFreeze (int *fcs, int b)
if (hash)
a = b;
if (!a)
- return;
+ return 0;
}
return (__SIZE_TYPE__) fcs;
}
@@ -7,6 +7,7 @@ uint16_t g_169 = 0x89E3L;
const volatile uint32_t g_258 = 0x63AFEBCAL;
int32_t func_11;
int32_t func_29;
+int lshift_s_s (int32_t, int32_t);
int32_t
func_5 (int32_t p_6, int32_t p_8, uint16_t p_10)
{
@@ -1,3 +1,6 @@
+int func_81 (int);
+void func_98 (int);
+
void
func_18 ( int t )
{
@@ -31,6 +31,11 @@ int64_t g_380;
int32_t func_99 (int16_t p_100, int32_t p_101, int32_t p_102, int32_t p_103,
int64_t p_105, int32_t p_106, int32_t p_107, int16_t p_108,
int16_t p_109);
+int mod_rhs (int64_t);
+int lshift_s_s (int, int);
+int func_112 (long ing, unsigned int);
+void func_23 (int32_t, int);
+long int func_82 (int, int, int64_t, int, int16_t, int, int);
int32_t
func_77 (int64_t p_79)
{
@@ -1,5 +1,6 @@
typedef int int32_t;
typedef unsigned int uint32_t;
+int safe_mod_u_u (unsigned int, unsigned int);
static inline int
safe_add_s_s (int si1, int si2)
{
@@ -25,6 +25,13 @@ func_17 (int32_t p_18, uint32_t p_19, uint32_t p_21)
return l_23;
}
+int func_93 (int);
+int func_59 (uint32_t, ...);
+int func_124 (uint32_t, long int, int, uint32_t, int, uint32_t, int);
+void func_117 (int, int, int, int);
+int safe_add_uint64_t_u_u (uint32_t, unsigned long long int);
+int safe_mul_int32_t_s_s (int, int);
+
uint32_t
func_26 (uint16_t p_27)
{
@@ -6,6 +6,6 @@ void FuncMakeConsequencesPres (long *objDefs1)
int b = 0;
if (! ( 13 <= ( c ? 0 : (((int) objDefs1 & 0x02) ? 0 : *objDefs1 ))
&& b <= 0))
- ErrorQuit ();
+ __builtin_abort ();
}
@@ -1,3 +1,4 @@
+void print_wkb_bytes (unsigned char *, int, int);
static void print_wkb_byte(unsigned char val) {
print_wkb_bytes((unsigned char *)&val, 1, 1);
}
@@ -1,3 +1,4 @@
+void sdp_seq_alloc (void **);
void add_opush(void)
{
unsigned char formats[] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0xff };
@@ -1,6 +1,7 @@
/* PR middle-end/39886 */
int foo (int);
+void func (int);
volatile unsigned char g;
@@ -2,6 +2,7 @@
typedef void (*entry_func) (void) __attribute__ ((noreturn));
extern entry_func entry_addr;
+void stop (void);
static void bsd_boot_entry (void)
{
stop ();
@@ -13,5 +13,5 @@ CompareRNAStructures (FILE * ofp, int start, int L, char *ss_true, char *ss)
}
if (((int) pairs % 2 != 0) || ((int) pairs_true % 2 != 0)
|| ((int) agree % 2 != 0))
- Die ("Error in CompareRNAStrutures(); odd number of paired nucleotides\n");
+ __builtin_abort ();
}
@@ -1,3 +1,4 @@
+int ___pskb_trim(void);
static inline __attribute__((always_inline)) int
__pskb_trim(void)
{
@@ -1,4 +1,5 @@
int a, b, c, d;
+void baz (void);
static void
foo (int *x)
@@ -20,7 +21,7 @@ if (c)
}
static void
-bar ()
+bar (void)
{
foo (0);
foo (0);
@@ -28,7 +29,8 @@ bar ()
;
}
-baz ()
+void
+baz (void)
{
for (; a;)
bar ();
@@ -1,6 +1,7 @@
/* PR target/52437 */
int f, g, i, j;
+void fn2 (void);
void
fn1 ()
@@ -10,6 +10,7 @@ baz (char p1)
}
void func_65 ();
+void
func_1 ()
{
func_65 ();
@@ -2,10 +2,11 @@
enum a { b, c };
struct d {
_Bool e;
- enum a f
+ enum a f;
};
-g, h;
-i() {
+int g, h;
+void
+i(void) {
struct d j[h];
j[0] = (struct d){.f = c};
for (; g;)
@@ -1,5 +1,7 @@
-a;
-b() {
+int a;
+int e(void);
+void f(void);
+void b(void) {
int c = 1;
for (; c <= 3;) {
int d = e() && !0;
@@ -3,16 +3,17 @@
int val;
int *ptr = &val;
-float *ptr2 = &val;
+float *ptr2 = (float *) &val;
-static
+static void
__attribute__((always_inline, optimize ("-fno-strict-aliasing")))
typepun ()
{
*ptr2=0;
}
-main()
+int
+main(void)
{
*ptr=1;
typepun ();
@@ -1,8 +1,9 @@
// { dg-do compile }
-// { dg-options "-O2 -w" }
+// { dg-options "-O2" }
#include <stdint.h>
uint8_t a;
+void
b(int8_t c) {
int d;
e:
@@ -2,4 +2,5 @@
/* { dg-options "-O2 -Warray-bounds=2 -w" } */
int a_n_0_0_a[][0];
+void T(int);
void a_n_0_0() { T(((char *)a_n_0_0_a)[1]); }
@@ -2,6 +2,7 @@
/* { dg-options "-O3 -w" } */
void pm_message (int);
+void _setjmp (void);
int *findOrAddBackgroundInPalette_palette_pnm;
static void findOrAddBackgroundInPalette(unsigned *paletteSizeP,
int *backgroundIndexP) {
@@ -23,12 +23,14 @@ struct objlist {
static uintptr_t ldd(void *frame) __attribute__((__used__));
static list_head_t *_dl_all_objects_ptr;
+int dynvec(struct object *, int);
+int relative_relocp(struct object *);
static void fini_array(struct object *const obj) {
if ((dynvec(obj,(unsigned)26)) != ((Elf32_Word)-1)) {
unsigned i;
const unsigned funcs = (dynvec(obj,(unsigned)28)) / 4;
const Elf32_Word fa = (dynvec(obj,(unsigned)26));
- const int *const p = relative_relocp(obj);
+ const int *const p = (int *) relative_relocp(obj);
for (i = (funcs ? (funcs - 1) : 0U); i != 0U; i--) {
void (*const func)(void) = (void *) p[i];
(*func)();
@@ -42,6 +44,7 @@ static void _do_exit_fini(void) {
((o)) = ((void *)(((list_head_t *)((o)))->next)))
fini_array (o->object);
}
+void atexit(void (*)(void));
static uintptr_t ldd (void *frame) {
atexit(_do_exit_fini);
}
@@ -1,11 +1,11 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -w" } */
+/* { dg-options "-O2 -Wno-pointer-to-int-cast" } */
typedef unsigned int uint32_t;
int a;
void b(uint32_t c) {
uint32_t *d = &c;
for (; a;)
- for (;; (*d %= a) / (*d > 1 > (c > 0)) ?: d)
+ for (;; (*d %= a) / (*d > 1 > (c > 0)) ?: (int) d)
;
}
@@ -1,6 +1,8 @@
/* { dg-do compile } */
/* { dg-options "-w" } */
+void f (long);
+
void foo (void * DAG_temp117584)
{
char uA;
@@ -31,7 +31,7 @@ int int329 (int * const *const int32p_81, short ** p_82)
{
short l_85;
lbl_89:g_67 ^= l_85;
- for (l_85 = 0; l_85 >= 0; l_85 = bar)
+ for (l_85 = 0; l_85 >= 0; l_85 = (short) bar)
if (g_31)
goto lbl_89;
func_90 (1), g_68[0][2][2][0][0].f3, 0;
@@ -44,6 +44,7 @@ struct rtmaddr_ifamap {
int address_len;
int local_len;
};
+int ifa_sa_len (int, int);
int usagi_getifaddrs (struct ifaddrs **ifap)
{
struct nlmsg_list *nlmsg_list, *nlmsg_end, *nlm;
@@ -72,7 +73,7 @@ int usagi_getifaddrs (struct ifaddrs **ifap)
struct rtattr *rta;
sa_family_t nlm_family = 0;
uint32_t nlm_scope = 0, nlm_index = 0;
- memset (&ifamap, 0, sizeof (ifamap));
+ __builtin_memset (&ifamap, 0, sizeof (ifamap));
switch (nlh->nlmsg_type)
{
case RTM_NEWLINK:
@@ -134,8 +135,8 @@ int usagi_getifaddrs (struct ifaddrs **ifap)
}
if (ifamap.address_len != ifamap.local_len
|| (ifamap.address != ((void *)0)
- && memcmp (ifamap.address, ifamap.local,
- ifamap.address_len)))
+ && __builtin_memcmp (ifamap.address, ifamap.local,
+ ifamap.address_len)))
{
if (!build)
dlen += (((ifa_sa_len (nlm_family,
@@ -12,7 +12,7 @@ lbl1:
if((b %= 0) * (b ? 0 : a) - 1 && (u /= 0))
{
- int *q = &u, **k = q;
+ int *q = &u, **k = (int **) q;
goto lbl1;
lbl2:
lbl3:
@@ -7,7 +7,7 @@ int sg;
void
z9(void)
{
- int pz, oi, vz, yp, zi, hd, pw, gr, w9 = 0, j0 = -1, rb = &w9;
+ int pz, oi, vz, yp, zi, hd, pw, gr, w9 = 0, j0 = -1, rb = (int) &w9;
int *lr;
while (w9 < 1) {
lr++;
@@ -24,7 +24,7 @@ ee:
**dp = 1;
while (**dp)
if (++oi) {
- int mq = dp;
+ int mq = (int) dp;
j0 = 1;
while (pw < 1) {
if (++rb && mq)
@@ -25,7 +25,7 @@ u4:
}
}
while (wk < 3) {
- av = **ptr_10;
+ av = (int *) **ptr_10;
++wk;
}
}
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-additional-options "-w" } */
+/* { dg-additional-options "-fpermissive -w" } */
int a[7], b;
int c()
@@ -8,7 +8,7 @@ int c()
for (; d; d++)
if (a[d])
if (b)
- return;
+ return 0;
else if (d >= e)
return 0;
}
@@ -14,7 +14,7 @@ int e()
for (;;)
if (g)
for (; b; b++) {
- g = c;
+ g = (f *) c;
if (a &= c) {
d *j = &b;
h k;
@@ -18,10 +18,10 @@ void d() {
j:
**l = 0;
}
- *i = c;
+ *i = (int32_t *) c;
}
}
- uint16_t i = &e;
+ uint16_t i = (uint16_t) &e;
b = i / 0;
goto j;
}
@@ -1,10 +1,10 @@
// { dg-do compile }
// { dg-options "-O2 -w" }
-int _bdf_parse_glyphs_bp;
+void (*_bdf_parse_glyphs_bp) (void);
long _bdf_parse_glyphs_nibbles;
-void _bdf_parse_glyphs_p()
+void _bdf_parse_glyphs_p(void)
{
long p_2;
@@ -7,7 +7,7 @@ di (int y9, int qw)
if ((int) &y9 != 0)
{
int py;
- int **fq = &py;
+ int **fq = (int **) &py;
while (qw < 1)
{
@@ -7,7 +7,7 @@ void
c1 (int oz, int dk, int ub)
{
int *hd = 0;
- long int *th = &dk;
+ long int *th = (long int *) &dk;
while (ub < 1)
{
@@ -17,7 +17,7 @@ c1 (int oz, int dk, int ub)
while (oz < 2)
{
- long int *lq = &oz;
+ long int *lq = (long int *) &oz;
(*hd < (*lq = *th)) < oz;
@@ -15,6 +15,9 @@ typedef struct c_parser
short tokens_avail;
}
c_parser;
+int c_parser_next_token_is_keyword (c_parser *, enum rid);
+tree chainon (int, tree);
+int c_parser_attributes (c_parser *);
__inline__ c_token *
c_parser_peek_token (c_parser * parser)
{
@@ -3,6 +3,9 @@
/* Note: Threader causes the infinite loop in val & 1 sooner. */
+unsigned long powi_lookup_cost (unsigned long, unsigned char *);
+
+void
powi_cost (long n)
{
unsigned char cache[256];
@@ -15,9 +15,13 @@ extern struct _reent *_impure_ptr;
extern char contextbufs[10][1024];
extern int contextoffset;
extern int sflag;
+int strtosichar (char *, int);
+int ichartosstr (int, int);
+void treeinsert (int, int, int);
+void stop(void);
+int __srget_r (struct _reent *, __FILE *);
void
-givehelp (interactive)
- int interactive;
+givehelp (int interactive)
{
if (interactive)
{
@@ -29,7 +33,8 @@ givehelp (interactive)
}
}
-oof ()
+void
+oof (void)
{
int bufsize;
int hadnl;
@@ -53,8 +58,7 @@ oof ()
}
void
-lookharder (string)
- char *string;
+lookharder (char *string)
{
register char *g;
register char *s;
@@ -10,9 +10,9 @@ int main ( ) {
L0:
if ( e ) goto L1;
b = c & d || a;
- if ( !c ) printf ( "", ( long long ) main_f );
+ if ( !c ) __builtin_printf ( "", ( long long ) main_f );
if ( d || !c ) {
- printf ( "%llu\n", ( long long ) main );
+ __builtin_printf ( "%llu\n", ( long long ) main );
goto L2;
}
unsigned g = b;
@@ -20,7 +20,7 @@ y8 (void)
gv |= sy ? 0 : v4;
if (gv != 0)
++gv;
- t6 = &cn;
+ t6 = (int **) &cn;
if (gv != 0)
*t6 = 0;
}
@@ -15,11 +15,12 @@ struct fd
{
struct d *d
} i;
-g;
-j ()
+int g;
+void
+j (void)
{
unsigned a = g;
- i = (struct fd){a & 3};
+ i = (struct fd){(struct d *) (a & 3)};
struct fd f = i;
h = f.d->e;
}
@@ -18,5 +18,5 @@ s2 (__int128 *qv)
void
lt (unsigned int vb)
{
- s2 (vb + 1);
+ s2 ((__int128 *) (vb + 1));
}
@@ -17,7 +17,7 @@ rc (__int128 *oi)
for (;;)
{
- unsigned __int128 *ar = &cc;
+ unsigned __int128 *ar = (unsigned __int128 *) &cc;
int y5;
if (oi != 0)
@@ -22,7 +22,7 @@ int tg3_tso_bug_gso_check();
int
tg3_start_xmit() {
- int *tp = netdev_priv();
+ int *tp = (int *) netdev_priv();
int mss, tnapi;
struct iphdr *iph;
tnapi = mss = ((struct skb_shared_info *)0)->gso_size;