a 3.0.4 version of the sh-linux-gcc compiler.
#define __builtin_expect(x, expected_value) (x)
#endif
-#define likely(x) __builtin_expect((x),1)
-#define unlikely(x) __builtin_expect((x),0)
+#define likely(x) __builtin_expect(((int)(x)),1)
+#define unlikely(x) __builtin_expect(((int)(x)),0)
/* --- this is added to integrate linuxthreads */
#define __USE_UNIX98 1
int n;
int argtype[MAX_ARGS_PER_SPEC+2];
int argnumber[3]; /* width, precision, 1st data arg */
- unsigned int conv_num;
+ unsigned int conv_num = 0;
static const char spec_flags[] = SPEC_FLAGS;
static const char spec_chars[] = SPEC_CHARS;/* TODO: b? */
static const char spec_ranges[] = SPEC_RANGES;
#include <errno.h>
#include <sys/types.h>
#include <sys/syscall.h>
+#include <endian.h>
//#define __NR_exit 1
#include <setjmp.h>
#include <signal.h>
+extern int __longjmp(char *env, int val);
+extern int __sigprocmask(int how, const sigset_t *set, sigset_t *oldset);
/* Set the signal mask to the one specified in ENV, and jump
to the position specified in ENV, causing the setjmp
(sigset_t *) NULL);
/* Call the machine-dependent function to restore machine state. */
- __longjmp (env[0].__jmpbuf, val ?: 1);
+ __longjmp ((char *) env[0].__jmpbuf, val ?: 1);
}
__asm__(".weak longjmp; longjmp = __libc_siglongjmp");
double x;
#endif
{
- double t,w,p,q,c,r,s;
+ double t=0.0,w,p,q,c,r,s;
int32_t hx,ix;
GET_HIGH_WORD(hx,x);
ix = hx&0x7fffffff;
#endif
{
double y;
- double hi = 0;
- double lo = 0;
+ double hi = 0.0;
+ double lo = 0.0;
double c;
double t;
int32_t k=0;
double x,y[];
#endif
{
- double z=0,w,t,r,fn;
+ double z=0.0,w,t,r,fn;
double tx[3];
int32_t e0,i,j,nx,n,ix,hx;
u_int32_t low;
double x;
#endif
{
- double y,hi,lo,c=0,t,e,hxs,hfx,r1;
+ double y,hi,lo,c=0.0,t,e,hxs,hfx,r1;
int32_t k,xsb;
u_int32_t hx;