summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/regex.h2
-rw-r--r--libc/sysdeps/linux/common/statfix.c1
-rw-r--r--libc/sysdeps/linux/common/statfix64.c1
-rw-r--r--libc/sysdeps/linux/mips/bsd-setjmp.S2
-rw-r--r--libm/e_exp.c9
-rw-r--r--libm/e_j0.c4
-rw-r--r--libm/e_j1.c4
-rw-r--r--libm/e_jn.c4
-rw-r--r--libm/e_lgamma_r.c2
-rw-r--r--libm/e_rem_pio2.c2
-rw-r--r--libm/math_private.h2
-rw-r--r--libm/s_expm1.c2
-rw-r--r--libm/s_log1p.c4
13 files changed, 24 insertions, 15 deletions
diff --git a/include/regex.h b/include/regex.h
index b9c2d97cc..8eb97c155 100644
--- a/include/regex.h
+++ b/include/regex.h
@@ -532,7 +532,9 @@ extern int re_exec _RE_ARGS ((const char *));
/* For now unconditionally define __restrict_arr to expand to nothing.
Ideally we would have a test for the compiler which allows defining
it to restrict. */
+#ifndef __restrict_arr
#define __restrict_arr
+#endif
/* POSIX compatibility. */
extern int regcomp _RE_ARGS ((regex_t *__restrict __preg,
diff --git a/libc/sysdeps/linux/common/statfix.c b/libc/sysdeps/linux/common/statfix.c
index 3921deb0f..996cf1346 100644
--- a/libc/sysdeps/linux/common/statfix.c
+++ b/libc/sysdeps/linux/common/statfix.c
@@ -28,6 +28,7 @@
/* Convert from the kernel's version of struct stat to libc's version */
void statfix(struct libc_stat *libcstat, struct kernel_stat *kstat)
{
+ memset(libcstat, 0, sizeof(struct libc_stat));
libcstat->st_dev = kstat->st_dev;
libcstat->st_ino = kstat->st_ino;
libcstat->st_mode = kstat->st_mode;
diff --git a/libc/sysdeps/linux/common/statfix64.c b/libc/sysdeps/linux/common/statfix64.c
index 00dafc562..540f350ca 100644
--- a/libc/sysdeps/linux/common/statfix64.c
+++ b/libc/sysdeps/linux/common/statfix64.c
@@ -31,6 +31,7 @@
/* Convert from the kernel's version of struct stat to libc's version */
void statfix64(struct libc_stat64 *libcstat, struct kernel_stat64 *kstat)
{
+ memset(libcstat, 0, sizeof(struct libc_stat64));
libcstat->st_dev = kstat->st_dev;
libcstat->st_ino = kstat->st_ino;
libcstat->st_mode = kstat->st_mode;
diff --git a/libc/sysdeps/linux/mips/bsd-setjmp.S b/libc/sysdeps/linux/mips/bsd-setjmp.S
index 49a904d29..51af9c891 100644
--- a/libc/sysdeps/linux/mips/bsd-setjmp.S
+++ b/libc/sysdeps/linux/mips/bsd-setjmp.S
@@ -34,8 +34,8 @@
.type setjmp,@function
setjmp:
- .set noreorder
#ifdef __PIC__
+ .set noreorder
.cpload t9
.set reorder
la t9, __sigsetjmp
diff --git a/libm/e_exp.c b/libm/e_exp.c
index 9eba853c8..734166733 100644
--- a/libm/e_exp.c
+++ b/libm/e_exp.c
@@ -110,8 +110,13 @@ P5 = 4.13813679705723846039e-08; /* 0x3E663769, 0x72BEA4D0 */
double x;
#endif
{
- double y,hi,lo,c,t;
- int32_t k,xsb;
+ double y;
+ double hi = 0;
+ double lo = 0;
+ double c;
+ double t;
+ int32_t k=0;
+ int32_t xsb;
u_int32_t hx;
GET_HIGH_WORD(hx,x);
diff --git a/libm/e_j0.c b/libm/e_j0.c
index 56930c688..46fa16656 100644
--- a/libm/e_j0.c
+++ b/libm/e_j0.c
@@ -332,7 +332,7 @@ static double pS2[5] = {
#endif
{
#ifdef __STDC__
- const double *p,*q;
+ const double *p = 0,*q = 0;
#else
double *p,*q;
#endif
@@ -468,7 +468,7 @@ static double qS2[6] = {
#endif
{
#ifdef __STDC__
- const double *p,*q;
+ const double *p=0,*q=0;
#else
double *p,*q;
#endif
diff --git a/libm/e_j1.c b/libm/e_j1.c
index 3e1a3f1f7..5eb81ee73 100644
--- a/libm/e_j1.c
+++ b/libm/e_j1.c
@@ -330,7 +330,7 @@ static double ps2[5] = {
#endif
{
#ifdef __STDC__
- const double *p,*q;
+ const double *p=0,*q=0;
#else
double *p,*q;
#endif
@@ -467,7 +467,7 @@ static double qs2[6] = {
#endif
{
#ifdef __STDC__
- const double *p,*q;
+ const double *p=0,*q=0;
#else
double *p,*q;
#endif
diff --git a/libm/e_jn.c b/libm/e_jn.c
index 27a8a1969..870824cf8 100644
--- a/libm/e_jn.c
+++ b/libm/e_jn.c
@@ -66,7 +66,7 @@ static double zero = 0.00000000000000000000e+00;
#endif
{
int32_t i,hx,ix,lx, sgn;
- double a, b, temp, di;
+ double a, b, temp=0, di;
double z, w;
/* J(-n,x) = (-1)^n * J(n, x), J(n, -x) = (-1)^n * J(n, x)
@@ -227,7 +227,7 @@ static double zero = 0.00000000000000000000e+00;
{
int32_t i,hx,ix,lx;
int32_t sign;
- double a, b, temp;
+ double a, b, temp=0;
EXTRACT_WORDS(hx,lx,x);
ix = 0x7fffffff&hx;
diff --git a/libm/e_lgamma_r.c b/libm/e_lgamma_r.c
index 16121722a..2b92ea2a2 100644
--- a/libm/e_lgamma_r.c
+++ b/libm/e_lgamma_r.c
@@ -223,7 +223,7 @@ __inline__
double x; int *signgamp;
#endif
{
- double t,y,z,nadj,p,p1,p2,p3,q,r,w;
+ double t,y,z,nadj=0,p,p1,p2,p3,q,r,w;
int i,hx,lx,ix;
EXTRACT_WORDS(hx,lx,x);
diff --git a/libm/e_rem_pio2.c b/libm/e_rem_pio2.c
index a8a8cdb2b..85dbaac6d 100644
--- a/libm/e_rem_pio2.c
+++ b/libm/e_rem_pio2.c
@@ -90,7 +90,7 @@ pio2_3t = 8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */
double x,y[];
#endif
{
- double z,w,t,r,fn;
+ double z=0,w,t,r,fn;
double tx[3];
int32_t e0,i,j,nx,n,ix,hx;
u_int32_t low;
diff --git a/libm/math_private.h b/libm/math_private.h
index cdb5f332a..bfc3365c4 100644
--- a/libm/math_private.h
+++ b/libm/math_private.h
@@ -11,7 +11,7 @@
/*
* from: @(#)fdlibm.h 5.1 93/09/24
- * $Id: math_private.h,v 1.1 2001/11/22 14:01:05 andersen Exp $
+ * $Id: math_private.h,v 1.2 2002/06/26 09:10:51 andersen Exp $
*/
#ifndef _MATH_PRIVATE_H_
diff --git a/libm/s_expm1.c b/libm/s_expm1.c
index 301416be2..79783d9ba 100644
--- a/libm/s_expm1.c
+++ b/libm/s_expm1.c
@@ -138,7 +138,7 @@ Q5 = -2.01099218183624371326e-07; /* BE8AFDB7 6E09C32D */
double x;
#endif
{
- double y,hi,lo,c,t,e,hxs,hfx,r1;
+ double y,hi,lo,c=0,t,e,hxs,hfx,r1;
int32_t k,xsb;
u_int32_t hx;
diff --git a/libm/s_log1p.c b/libm/s_log1p.c
index d48c3ef7a..6c8739471 100644
--- a/libm/s_log1p.c
+++ b/libm/s_log1p.c
@@ -111,8 +111,8 @@ static double zero = 0.0;
double x;
#endif
{
- double hfsq,f,c,s,z,R,u;
- int32_t k,hx,hu,ax;
+ double hfsq,f=0,c=0,s,z,R,u;
+ int32_t k,hx,hu=0,ax;
GET_HIGH_WORD(hx,x);
ax = hx&0x7fffffff;