GCC bug? Compiled code gives seg. fault

Sunjay Bhatnagar sanjay@ncra.tifr.res.in
Sun Sep 17 21:07:00 GMT 2000


Hi,

I have a simple code which allocates static memory.  When compiled
with gcc (GCC version, OS details are given below), the compiled code
gives a segementation fault where it should not.

The code is as follows (file "xxx.c"):

  #include <stdio.h>
  #include <string.h>
  #include <math.h>
  #include <stdlib.h>

  #define MAX_DATA_LEN 60000
  #define MAX_COLUMN_NOS 120

  int main(int argc, char **argv)
  {
     char line[2001], *strptr;
     float data[MAX_DATA_LEN][MAX_COLUMN_NOS];
     float dat[MAX_DATA_LEN];
  
     float mean, rms, err, max, min; 
     float sigma_max  = 3.0, thresh;

     return 0;
  }


The output of "gcc -E xxx.c >| xxx.e" is attached at the end of this
message with blank lines removed from the output.

Details of the problem:
----------------------

(1) OS Used: RedHat 6.2 distribution of GNU/Linux

(2) Compiler used:

    Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
    gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

(3) Symptoms of the problem:

    (a) The compiled program gives a segmentation fault
 
    (b) If the code is compiled with -O2, there is no segementation
        fault
  
    (c) If MAX_DATA_LEN in the above code is reduced to about 1700 or
        so (exact number not know but reducing helps is known), the
        problem disappears

    (d) It's reported that this problem does not appear on Mandrake's
        latest distribution of GNU/Linux using the same version of GCC

    (e) If sigma_max in the above code is not initialized during it's
        decleration is, the problem disappears

    (f) If sigma_max is made static, the problem disappears


Could some one tell me if this is a bug in GCC of there is something
else that's wrong?


Regards,
sanjay


-----------------------------Exploded code--------------------------
# 1 "xxx.c"
# 1 "/usr/include/stdio.h" 1 3
# 1 "/usr/include/features.h" 1 3
# 138 "/usr/include/features.h" 3
# 196 "/usr/include/features.h" 3
# 1 "/usr/include/sys/cdefs.h" 1 3
# 71 "/usr/include/sys/cdefs.h" 3
# 103 "/usr/include/sys/cdefs.h" 3
# 250 "/usr/include/features.h" 2 3
# 1 "/usr/include/gnu/stubs.h" 1 3
# 278 "/usr/include/features.h" 2 3
# 27 "/usr/include/stdio.h" 2 3
# 1 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 1 3
# 19 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 61 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 131 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
typedef unsigned int size_t;
# 271 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 283 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 317 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 33 "/usr/include/stdio.h" 2 3
# 1 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h" 1 3
typedef void *__gnuc_va_list;
# 116 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h" 3
# 202 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h" 3
# 38 "/usr/include/stdio.h" 2 3
# 1 "/usr/include/bits/types.h" 1 3
# 1 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 1 3
# 19 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 61 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 131 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 188 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 271 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 283 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 317 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 29 "/usr/include/bits/types.h" 2 3
typedef unsigned char __u_char;
typedef unsigned short __u_short;
typedef unsigned int __u_int;
typedef unsigned long __u_long;
__extension__ typedef unsigned long long int __u_quad_t;
__extension__ typedef long long int __quad_t;
# 48 "/usr/include/bits/types.h" 3
typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef signed short int __int16_t;
typedef unsigned short int __uint16_t;
typedef signed int __int32_t;
typedef unsigned int __uint32_t;
__extension__ typedef signed long long int __int64_t;
__extension__ typedef unsigned long long int __uint64_t;
typedef __quad_t *__qaddr_t;
typedef __u_quad_t __dev_t;		 
typedef __u_int __uid_t;		 
typedef __u_int __gid_t;		 
typedef __u_long __ino_t;		 
typedef __u_int __mode_t;		 
typedef __u_int __nlink_t; 		 
typedef long int __off_t;		 
typedef __quad_t __loff_t;		 
typedef int __pid_t;			 
typedef int __ssize_t;			 
typedef long int __rlim_t;		 
typedef __quad_t __rlim64_t;		 
typedef __u_int __id_t;			 
typedef struct
  {
    int __val[2];
  } __fsid_t;				 
typedef int __daddr_t;			 
typedef char *__caddr_t;
typedef long int __time_t;
typedef long int __swblk_t;		 

typedef long int __clock_t;
typedef unsigned long int __fd_mask;
typedef struct
  {
    __fd_mask __fds_bits[1024  / (8 * sizeof (__fd_mask)) ];
  } __fd_set;
typedef int __key_t;
typedef unsigned short int __ipc_pid_t;
typedef long int __blkcnt_t;
typedef __quad_t __blkcnt64_t;
typedef __u_long __fsblkcnt_t;
typedef __u_quad_t __fsblkcnt64_t;
typedef __u_long __fsfilcnt_t;
typedef __u_quad_t __fsfilcnt64_t;
typedef __u_long __ino64_t;
typedef __loff_t __off64_t;
typedef long int __t_scalar_t;
typedef unsigned long int __t_uscalar_t;
typedef int __intptr_t;
# 40 "/usr/include/stdio.h" 2 3
typedef struct _IO_FILE FILE;
# 1 "/usr/include/libio.h" 1 3
# 1 "/usr/include/_G_config.h" 1 3
# 1 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 1 3
# 19 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 61 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 131 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 188 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
typedef long int wchar_t;
typedef unsigned int  wint_t;
# 317 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 14 "/usr/include/_G_config.h" 2 3
typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
# 30 "/usr/include/libio.h" 2 3
# 1 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h" 1 3
# 116 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h" 3
# 202 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h" 3
# 48 "/usr/include/libio.h" 2 3
# 67 "/usr/include/libio.h" 3
# 98 "/usr/include/libio.h" 3
struct _IO_jump_t;  struct _IO_FILE;
typedef void _IO_lock_t;
struct _IO_marker {
  struct _IO_marker *_next;
  struct _IO_FILE *_sbuf;
  int _pos;
# 186 "/usr/include/libio.h" 3
};
struct _IO_FILE {
  int _flags;		 
  char* _IO_read_ptr;	 
  char* _IO_read_end;	 
  char* _IO_read_base;	 
  char* _IO_write_base;	 
  char* _IO_write_ptr;	 
  char* _IO_write_end;	 
  char* _IO_buf_base;	 
  char* _IO_buf_end;	 
  char *_IO_save_base;  
  char *_IO_backup_base;   
  char *_IO_save_end;  
  struct _IO_marker *_markers;
  struct _IO_FILE *_chain;
  int _fileno;
  int _blksize;
  __off_t   _old_offset;  
  unsigned short _cur_column;
  signed char _vtable_offset;
  char _shortbuf[1];
  _IO_lock_t *_lock;
  __off64_t   _offset;
  int _unused2[16];
};
typedef struct _IO_FILE _IO_FILE;
struct _IO_FILE_plus;
extern struct _IO_FILE_plus _IO_2_1_stdin_;
extern struct _IO_FILE_plus _IO_2_1_stdout_;
extern struct _IO_FILE_plus _IO_2_1_stderr_;
typedef __ssize_t __io_read_fn  (void *  __cookie, char *__buf,
				       size_t __nbytes)  ;
typedef __ssize_t __io_write_fn  (void *  __cookie, __const char *__buf,
				      size_t __n)  ;
typedef int __io_seek_fn  (void *  __cookie, __off_t   __pos, int __w)  ;
typedef int __io_close_fn  (void *  __cookie)  ;
# 311 "/usr/include/libio.h" 3
extern int __underflow  (_IO_FILE *)    ;
extern int __uflow  (_IO_FILE *)    ;
extern int __overflow  (_IO_FILE *, int)    ;
extern int _IO_getc  (_IO_FILE *__fp)    ;
extern int _IO_putc  (int __c, _IO_FILE *__fp)    ;
extern int _IO_feof  (_IO_FILE *__fp)    ;
extern int _IO_ferror  (_IO_FILE *__fp)    ;
extern int _IO_peekc_locked  (_IO_FILE *__fp)    ;
extern void _IO_flockfile  (_IO_FILE *)    ;
extern void _IO_funlockfile  (_IO_FILE *)    ;
extern int _IO_ftrylockfile  (_IO_FILE *)    ;
extern int _IO_vfscanf  (_IO_FILE *  , const char *  ,
			     __gnuc_va_list , int *  )    ;
extern int _IO_vfprintf  (_IO_FILE *  , const char *  ,
			      __gnuc_va_list )    ;
extern __ssize_t   _IO_padn  (_IO_FILE *, int, __ssize_t  )    ;
extern size_t   _IO_sgetn  (_IO_FILE *, void *, size_t  )    ;
extern __off64_t   _IO_seekoff  (_IO_FILE *, __off64_t  , int, int)    ;
extern __off64_t   _IO_seekpos  (_IO_FILE *, __off64_t  , int)    ;
extern void _IO_free_backup_area  (_IO_FILE *)    ;
# 57 "/usr/include/stdio.h" 2 3
typedef __off_t  fpos_t;
# 1 "/usr/include/bits/stdio_lim.h" 1 3
# 110 "/usr/include/stdio.h" 2 3
extern FILE *stdin;		 
extern FILE *stdout;		 
extern FILE *stderr;		 
extern int remove  (__const char *__filename)    ;
extern int rename  (__const char *__old, __const char *__new)    ;
extern FILE *tmpfile  (void)    ;
extern char *tmpnam  (char *__s)    ;
extern char *tmpnam_r  (char *__s)    ;
extern char *tempnam  (__const char *__dir, __const char *__pfx)    ;
extern int fclose  (FILE *__stream)    ;
extern int fflush  (FILE *__stream)    ;
extern int fflush_unlocked  (FILE *__stream)    ;
extern FILE *fopen  (__const char *   __filename,
			 __const char *   __modes)    ;
extern FILE *freopen  (__const char *   __filename,
			   __const char *   __modes,
			   FILE *   __stream)    ;
# 201 "/usr/include/stdio.h" 3
extern FILE *fdopen  (int __fd, __const char *__modes)    ;
# 227 "/usr/include/stdio.h" 3
extern void setbuf  (FILE *   __stream, char *   __buf)    ;
extern int setvbuf  (FILE *   __stream, char *   __buf,
			 int __modes, size_t __n)    ;
extern void setbuffer  (FILE *   __stream, char *   __buf,
			    size_t __size)    ;
extern void setlinebuf  (FILE *__stream)    ;
extern int fprintf  (FILE *   __stream,
			 __const char *   __format, ...)    ;
extern int printf  (__const char *   __format, ...)    ;
extern int sprintf  (char *   __s,
			 __const char *   __format, ...)    ;
extern int vfprintf  (FILE *   __s,
			  __const char *   __format,
			  __gnuc_va_list  __arg)    ;
extern int vprintf  (__const char *   __format,
			 __gnuc_va_list  __arg)    ;
extern int vsprintf  (char *   __s,
			  __const char *   __format,
			  __gnuc_va_list  __arg)    ;
extern int snprintf  (char *   __s, size_t __maxlen,
			  __const char *   __format, ...)    
     __attribute__ ((__format__ (__printf__, 3, 4)));
extern int __vsnprintf  (char *   __s, size_t __maxlen,
			     __const char *   __format,
			     __gnuc_va_list  __arg)    
     __attribute__ ((__format__ (__printf__, 3, 0)));
extern int vsnprintf  (char *   __s, size_t __maxlen,
			   __const char *   __format,
			   __gnuc_va_list  __arg)    
     __attribute__ ((__format__ (__printf__, 3, 0)));
# 306 "/usr/include/stdio.h" 3
extern int fscanf  (FILE *   __stream,
			__const char *   __format, ...)    ;
extern int scanf  (__const char *   __format, ...)    ;
extern int sscanf  (__const char *   __s,
			__const char *   __format, ...)    ;
# 334 "/usr/include/stdio.h" 3
extern int fgetc  (FILE *__stream)    ;
extern int getc  (FILE *__stream)    ;
extern int getchar  (void)    ;
extern int getc_unlocked  (FILE *__stream)    ;
extern int getchar_unlocked  (void)    ;
extern int fgetc_unlocked  (FILE *__stream)    ;
extern int fputc  (int __c, FILE *__stream)    ;
extern int putc  (int __c, FILE *__stream)    ;
extern int putchar  (int __c)    ;
extern int fputc_unlocked  (int __c, FILE *__stream)    ;
extern int putc_unlocked  (int __c, FILE *__stream)    ;
extern int putchar_unlocked  (int __c)    ;
extern int getw  (FILE *__stream)    ;
extern int putw  (int __w, FILE *__stream)    ;
extern char *fgets  (char *   __s, int __n,
			 FILE *   __stream)    ;
extern char *gets  (char *__s)    ;
# 424 "/usr/include/stdio.h" 3
extern int fputs  (__const char *   __s,
		       FILE *   __stream)    ;
extern int puts  (__const char *__s)    ;
extern int ungetc  (int __c, FILE *__stream)    ;
extern size_t fread  (void *   __ptr, size_t __size,
			  size_t __n, FILE *   __stream)    ;
extern size_t fwrite  (__const void *   __ptr, size_t __size,
			   size_t __n, FILE *   __s)    ;
extern size_t fread_unlocked  (void *   __ptr, size_t __size,
				   size_t __n, FILE *   __stream)    ;
extern size_t fwrite_unlocked  (__const void *   __ptr,
				    size_t __size, size_t __n,
				    FILE *   __stream)    ;
extern int fseek  (FILE *__stream, long int __off, int __whence)    ;
extern long int ftell  (FILE *__stream)    ;
extern void rewind  (FILE *__stream)    ;
typedef __off_t off_t;
extern int fgetpos  (FILE *   __stream,
			 fpos_t *   __pos)    ;
extern int fsetpos  (FILE *__stream, __const fpos_t *__pos)    ;
# 523 "/usr/include/stdio.h" 3
# 533 "/usr/include/stdio.h" 3
extern void clearerr  (FILE *__stream)    ;
extern int feof  (FILE *__stream)    ;
extern int ferror  (FILE *__stream)    ;
extern void clearerr_unlocked  (FILE *__stream)    ;
extern int feof_unlocked  (FILE *__stream)    ;
extern int ferror_unlocked  (FILE *__stream)    ;
extern void perror  (__const char *__s)    ;
extern int sys_nerr;
extern __const char *__const sys_errlist[];
extern int fileno  (FILE *__stream)    ;
extern int fileno_unlocked  (FILE *__stream)    ;
extern FILE *popen  (__const char *__command, __const char *__modes)    ;
extern int pclose  (FILE *__stream)    ;
extern char *ctermid  (char *__s)    ;
# 607 "/usr/include/stdio.h" 3
extern void flockfile  (FILE *__stream)    ;
extern int ftrylockfile  (FILE *__stream)    ;
extern void funlockfile  (FILE *__stream)    ;
# 1 "xxx.c" 2
# 1 "/usr/include/string.h" 1 3
# 1 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 1 3
# 19 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 61 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 131 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 188 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 271 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 283 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 317 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 33 "/usr/include/string.h" 2 3
extern void *  memcpy  (void *    __dest,
			    __const void *    __src, size_t __n)    ;
extern void *  memmove  (void *  __dest, __const void *  __src,
			     size_t __n)    ;
extern void *  memccpy  (void *  __dest, __const void *  __src,
			     int __c, size_t __n)    ;
extern void *  memset  (void *  __s, int __c, size_t __n)    ;
extern int memcmp  (__const void *  __s1, __const void *  __s2,
			size_t __n)    ;
extern void *  memchr  (__const void *  __s, int __c, size_t __n)    ;
extern char *strcpy  (char *   __dest,
			  __const char *   __src)    ;
extern char *strncpy  (char *   __dest,
			   __const char *   __src, size_t __n)    ;
extern char *strcat  (char *   __dest,
			  __const char *   __src)    ;
extern char *strncat  (char *   __dest,
			   __const char *   __src, size_t __n)    ;
extern int strcmp  (__const char *__s1, __const char *__s2)    ;
extern int strncmp  (__const char *__s1, __const char *__s2, size_t __n)    ;
extern int strcoll  (__const char *__s1, __const char *__s2)    ;
extern size_t strxfrm  (char *   __dest,
			    __const char *   __src, size_t __n)    ;
# 107 "/usr/include/string.h" 3
extern char *__strdup  (__const char *__s)    ;
extern char *strdup  (__const char *__s)    ;
# 143 "/usr/include/string.h" 3
extern char *strchr  (__const char *__s, int __c)    ;
extern char *strrchr  (__const char *__s, int __c)    ;
extern size_t strcspn  (__const char *__s, __const char *__reject)    ;
extern size_t strspn  (__const char *__s, __const char *__accept)    ;
extern char *strpbrk  (__const char *__s, __const char *__accept)    ;
extern char *strstr  (__const char *__haystack, __const char *__needle)    ;
extern char *strtok  (char *   __s,
			  __const char *   __delim)    ;
extern char *__strtok_r  (char *   __s,
			      __const char *   __delim,
			      char **   __save_ptr)    ;
extern char *strtok_r  (char *   __s,
			    __const char *   __delim,
			    char **   __save_ptr)    ;
# 203 "/usr/include/string.h" 3
extern size_t strlen  (__const char *__s)    ;
extern char *strerror  (int __errnum)    ;
extern char *__strerror_r  (int __errnum, char *__buf, size_t __buflen)    ;
extern char *strerror_r  (int __errnum, char *__buf, size_t __buflen)    ;
extern void __bzero  (void *  __s, size_t __n)    ;
extern void bcopy  (__const void *  __src, void *  __dest, size_t __n)    ;
extern void bzero  (void *  __s, size_t __n)    ;
extern int bcmp  (__const void *  __s1, __const void *  __s2, size_t __n)    ;
extern char *index  (__const char *__s, int __c)    ;
extern char *rindex  (__const char *__s, int __c)    ;
extern int __ffs  (int __i)     __attribute__ ((const));
extern int ffs  (int __i)     __attribute__ ((const));
extern int __strcasecmp  (__const char *__s1, __const char *__s2)    ;
extern int strcasecmp  (__const char *__s1, __const char *__s2)    ;
extern int strncasecmp  (__const char *__s1, __const char *__s2,
			     size_t __n)    ;
# 277 "/usr/include/string.h" 3
extern char *strsep  (char **   __stringp,
			  __const char *   __delim)    ;
# 319 "/usr/include/string.h" 3
# 347 "/usr/include/string.h" 3
# 2 "xxx.c" 2
# 1 "/usr/include/math.h" 1 3
# 1 "/usr/include/bits/huge_val.h" 1 3
# 68 "/usr/include/bits/huge_val.h" 3
# 33 "/usr/include/math.h" 2 3
# 1 "/usr/include/bits/mathdef.h" 1 3
# 47 "/usr/include/bits/mathdef.h" 3
# 40 "/usr/include/math.h" 2 3
# 1 "/usr/include/bits/mathcalls.h" 1 3
extern   double          acos          (double  __x)    ; extern   double         __acos          (double  __x)      ;
extern   double          asin          (double  __x)    ; extern   double         __asin          (double  __x)      ;
extern   double          atan          (double  __x)    ; extern   double         __atan          (double  __x)      ;
extern   double          atan2          (double  __y, double  __x)    ; extern   double         __atan2          (double  __y, double  __x)      ;
extern   double          cos          (double  __x)    ; extern   double         __cos          (double  __x)      ;
extern   double          sin          (double  __x)    ; extern   double         __sin          (double  __x)      ;
extern   double          tan          (double  __x)    ; extern   double         __tan          (double  __x)      ;
extern   double          cosh          (double  __x)    ; extern   double         __cosh          (double  __x)      ;
extern   double          sinh          (double  __x)    ; extern   double         __sinh          (double  __x)      ;
extern   double          tanh          (double  __x)    ; extern   double         __tanh          (double  __x)      ;
extern   double          acosh          (double  __x)    ; extern   double         __acosh          (double  __x)      ;
extern   double          asinh          (double  __x)    ; extern   double         __asinh          (double  __x)      ;
extern   double          atanh          (double  __x)    ; extern   double         __atanh          (double  __x)      ;
extern   double          exp          (double  __x)    ; extern   double         __exp          (double  __x)      ;
extern   double          frexp          (double  __x, int *__exponent)    ; extern   double         __frexp          (double  __x, int *__exponent)      ;
extern   double          ldexp          (double  __x, int __exponent)    ; extern   double         __ldexp          (double  __x, int __exponent)      ;
extern   double          log          (double  __x)    ; extern   double         __log          (double  __x)      ;
extern   double          log10          (double  __x)    ; extern   double         __log10          (double  __x)      ;
extern   double          modf          (double  __x, double  *__iptr)    ; extern   double         __modf          (double  __x, double  *__iptr)      ;
extern   double          expm1          (double  __x)    ; extern   double         __expm1          (double  __x)      ;
extern   double          log1p          (double  __x)    ; extern   double         __log1p          (double  __x)      ;
extern   double          logb          (double  __x)    ; extern   double         __logb          (double  __x)      ;
extern   double          pow          (double  __x, double  __y)    ; extern   double         __pow          (double  __x, double  __y)      ;
extern   double          sqrt          (double  __x)    ; extern   double         __sqrt          (double  __x)      ;
extern   double          hypot          (double  __x, double  __y)    ; extern   double         __hypot          (double  __x, double  __y)      ;
extern   double          cbrt          (double  __x)    ; extern   double         __cbrt          (double  __x)      ;
extern   double          ceil          (double  __x)    ; extern   double         __ceil          (double  __x)      ;
extern   double          fabs          (double  __x)     __attribute__ (    (__const__)  ); extern   double         __fabs          (double  __x)     __attribute__ (    (__const__)  )  ;
extern   double          floor          (double  __x)    ; extern   double         __floor          (double  __x)      ;
extern   double          fmod          (double  __x, double  __y)    ; extern   double         __fmod          (double  __x, double  __y)      ;
extern  int     __isinf      (double  __value)   __attribute__ ((__const__));
extern  int     __finite      (double  __value)   __attribute__ ((__const__));
extern  int     isinf      (double  __value)   __attribute__ ((__const__));
extern  int     finite      (double  __value)   __attribute__ ((__const__));
extern   double          infnan          (int __error)     __attribute__ (    (__const__)  ); extern   double         __infnan          (int __error)     __attribute__ (    (__const__)  )  ;
extern   double          drem          (double  __x, double  __y)    ; extern   double         __drem          (double  __x, double  __y)      ;
extern   double          significand          (double  __x)    ; extern   double         __significand          (double  __x)      ;
extern   double          copysign          (double  __x, double  __y)     __attribute__ (    (__const__)  ); extern   double         __copysign          (double  __x, double  __y)     __attribute__ (    (__const__)  )  ;
extern  int     __isnan      (double  __value)   __attribute__ ((__const__));
extern  int     isnan      (double  __value)   __attribute__ ((__const__));
extern   double          j0          (double )    ; extern   double         __j0          (double )      ;
extern   double          j1          (double )    ; extern   double         __j1          (double )      ;
extern   double          jn          (int, double )    ; extern   double         __jn          (int, double )      ;
extern   double          y0          (double )    ; extern   double         __y0          (double )      ;
extern   double          y1          (double )    ; extern   double         __y1          (double )      ;
extern   double          yn          (int, double )    ; extern   double         __yn          (int, double )      ;
extern   double          erf          (double )    ; extern   double         __erf          (double )      ;
extern   double          erfc          (double )    ; extern   double         __erfc          (double )      ;
extern   double          lgamma          (double )    ; extern   double         __lgamma          (double )      ;
extern   double          tgamma          (double )    ; extern   double         __tgamma          (double )      ;
extern   double          gamma          (double )    ; extern   double         __gamma          (double )      ;
extern   double          lgamma_r              (double , int *__signgamp)    ; extern   double         __lgamma_r              (double , int *__signgamp)      ;
extern   double          rint          (double  __x)    ; extern   double         __rint          (double  __x)      ;
extern   double          nextafter          (double  __x, double  __y)     __attribute__ (    (__const__)  ); extern   double         __nextafter          (double  __x, double  __y)     __attribute__ (    (__const__)  )  ;
extern   double          remainder          (double  __x, double  __y)    ; extern   double         __remainder          (double  __x, double  __y)      ;
extern   double          scalb          (double  __x, double  __n)    ; extern   double         __scalb          (double  __x, double  __n)      ;
extern   double          scalbn          (double  __x, int __n)    ; extern   double         __scalbn          (double  __x, int __n)      ;
extern   int        ilogb        (double  __x)   ; extern   int        __ilogb        (double  __x)    ;
# 336 "/usr/include/bits/mathcalls.h" 3
# 63 "/usr/include/math.h" 2 3
# 1 "/usr/include/bits/mathcalls.h" 1 3
extern   float          acosf         (float   __x)    ; extern   float         __acosf         (float   __x)      ;
extern   float          asinf         (float   __x)    ; extern   float         __asinf         (float   __x)      ;
extern   float          atanf         (float   __x)    ; extern   float         __atanf         (float   __x)      ;
extern   float          atan2f         (float   __y, float   __x)    ; extern   float         __atan2f         (float   __y, float   __x)      ;
extern   float          cosf         (float   __x)    ; extern   float         __cosf         (float   __x)      ;
extern   float          sinf         (float   __x)    ; extern   float         __sinf         (float   __x)      ;
extern   float          tanf         (float   __x)    ; extern   float         __tanf         (float   __x)      ;
extern   float          coshf         (float   __x)    ; extern   float         __coshf         (float   __x)      ;
extern   float          sinhf         (float   __x)    ; extern   float         __sinhf         (float   __x)      ;
extern   float          tanhf         (float   __x)    ; extern   float         __tanhf         (float   __x)      ;
extern   float          acoshf         (float   __x)    ; extern   float         __acoshf         (float   __x)      ;
extern   float          asinhf         (float   __x)    ; extern   float         __asinhf         (float   __x)      ;
extern   float          atanhf         (float   __x)    ; extern   float         __atanhf         (float   __x)      ;
extern   float          expf         (float   __x)    ; extern   float         __expf         (float   __x)      ;
extern   float          frexpf         (float   __x, int *__exponent)    ; extern   float         __frexpf         (float   __x, int *__exponent)      ;
extern   float          ldexpf         (float   __x, int __exponent)    ; extern   float         __ldexpf         (float   __x, int __exponent)      ;
extern   float          logf         (float   __x)    ; extern   float         __logf         (float   __x)      ;
extern   float          log10f         (float   __x)    ; extern   float         __log10f         (float   __x)      ;
extern   float          modff         (float   __x, float   *__iptr)    ; extern   float         __modff         (float   __x, float   *__iptr)      ;
extern   float          expm1f         (float   __x)    ; extern   float         __expm1f         (float   __x)      ;
extern   float          log1pf         (float   __x)    ; extern   float         __log1pf         (float   __x)      ;
extern   float          logbf         (float   __x)    ; extern   float         __logbf         (float   __x)      ;
extern   float          powf         (float   __x, float   __y)    ; extern   float         __powf         (float   __x, float   __y)      ;
extern   float          sqrtf         (float   __x)    ; extern   float         __sqrtf         (float   __x)      ;
extern   float          hypotf         (float   __x, float   __y)    ; extern   float         __hypotf         (float   __x, float   __y)      ;
extern   float          cbrtf         (float   __x)    ; extern   float         __cbrtf         (float   __x)      ;
extern   float          ceilf         (float   __x)    ; extern   float         __ceilf         (float   __x)      ;
extern   float          fabsf         (float   __x)     __attribute__ (    (__const__)  ); extern   float         __fabsf         (float   __x)     __attribute__ (    (__const__)  )  ;
extern   float          floorf         (float   __x)    ; extern   float         __floorf         (float   __x)      ;
extern   float          fmodf         (float   __x, float   __y)    ; extern   float         __fmodf         (float   __x, float   __y)      ;
extern  int    __isinff     (float   __value)   __attribute__ ((__const__));
extern  int    __finitef     (float   __value)   __attribute__ ((__const__));
extern  int    isinff     (float   __value)   __attribute__ ((__const__));
extern  int    finitef     (float   __value)   __attribute__ ((__const__));
extern   float          infnanf         (int __error)     __attribute__ (    (__const__)  ); extern   float         __infnanf         (int __error)     __attribute__ (    (__const__)  )  ;
extern   float          dremf         (float   __x, float   __y)    ; extern   float         __dremf         (float   __x, float   __y)      ;
extern   float          significandf         (float   __x)    ; extern   float         __significandf         (float   __x)      ;
extern   float          copysignf         (float   __x, float   __y)     __attribute__ (    (__const__)  ); extern   float         __copysignf         (float   __x, float   __y)     __attribute__ (    (__const__)  )  ;
extern  int    __isnanf     (float   __value)   __attribute__ ((__const__));
extern  int    isnanf     (float   __value)   __attribute__ ((__const__));
extern   float          j0f         (float  )    ; extern   float         __j0f         (float  )      ;
extern   float          j1f         (float  )    ; extern   float         __j1f         (float  )      ;
extern   float          jnf         (int, float  )    ; extern   float         __jnf         (int, float  )      ;
extern   float          y0f         (float  )    ; extern   float         __y0f         (float  )      ;
extern   float          y1f         (float  )    ; extern   float         __y1f         (float  )      ;
extern   float          ynf         (int, float  )    ; extern   float         __ynf         (int, float  )      ;
extern   float          erff         (float  )    ; extern   float         __erff         (float  )      ;
extern   float          erfcf         (float  )    ; extern   float         __erfcf         (float  )      ;
extern   float          lgammaf         (float  )    ; extern   float         __lgammaf         (float  )      ;
extern   float          tgammaf         (float  )    ; extern   float         __tgammaf         (float  )      ;
extern   float          gammaf         (float  )    ; extern   float         __gammaf         (float  )      ;
extern   float          lgammaf_r            (float  , int *__signgamp)    ; extern   float         __lgammaf_r            (float  , int *__signgamp)      ;
extern   float          rintf         (float   __x)    ; extern   float         __rintf         (float   __x)      ;
extern   float          nextafterf         (float   __x, float   __y)     __attribute__ (    (__const__)  ); extern   float         __nextafterf         (float   __x, float   __y)     __attribute__ (    (__const__)  )  ;
extern   float          remainderf         (float   __x, float   __y)    ; extern   float         __remainderf         (float   __x, float   __y)      ;
extern   float          scalbf         (float   __x, float   __n)    ; extern   float         __scalbf         (float   __x, float   __n)      ;
extern   float          scalbnf         (float   __x, int __n)    ; extern   float         __scalbnf         (float   __x, int __n)      ;
extern   int       ilogbf       (float   __x)   ; extern   int       __ilogbf       (float   __x)    ;
# 336 "/usr/include/bits/mathcalls.h" 3
# 82 "/usr/include/math.h" 2 3
# 1 "/usr/include/bits/mathcalls.h" 1 3
extern   long double          acosl         (long double   __x)    ; extern   long double         __acosl         (long double   __x)      ;
extern   long double          asinl         (long double   __x)    ; extern   long double         __asinl         (long double   __x)      ;
extern   long double          atanl         (long double   __x)    ; extern   long double         __atanl         (long double   __x)      ;
extern   long double          atan2l         (long double   __y, long double   __x)    ; extern   long double         __atan2l         (long double   __y, long double   __x)      ;
extern   long double          cosl         (long double   __x)    ; extern   long double         __cosl         (long double   __x)      ;
extern   long double          sinl         (long double   __x)    ; extern   long double         __sinl         (long double   __x)      ;
extern   long double          tanl         (long double   __x)    ; extern   long double         __tanl         (long double   __x)      ;
extern   long double          coshl         (long double   __x)    ; extern   long double         __coshl         (long double   __x)      ;
extern   long double          sinhl         (long double   __x)    ; extern   long double         __sinhl         (long double   __x)      ;
extern   long double          tanhl         (long double   __x)    ; extern   long double         __tanhl         (long double   __x)      ;
extern   long double          acoshl         (long double   __x)    ; extern   long double         __acoshl         (long double   __x)      ;
extern   long double          asinhl         (long double   __x)    ; extern   long double         __asinhl         (long double   __x)      ;
extern   long double          atanhl         (long double   __x)    ; extern   long double         __atanhl         (long double   __x)      ;
extern   long double          expl         (long double   __x)    ; extern   long double         __expl         (long double   __x)      ;
extern   long double          frexpl         (long double   __x, int *__exponent)    ; extern   long double         __frexpl         (long double   __x, int *__exponent)      ;
extern   long double          ldexpl         (long double   __x, int __exponent)    ; extern   long double         __ldexpl         (long double   __x, int __exponent)      ;
extern   long double          logl         (long double   __x)    ; extern   long double         __logl         (long double   __x)      ;
extern   long double          log10l         (long double   __x)    ; extern   long double         __log10l         (long double   __x)      ;
extern   long double          modfl         (long double   __x, long double   *__iptr)    ; extern   long double         __modfl         (long double   __x, long double   *__iptr)      ;
extern   long double          expm1l         (long double   __x)    ; extern   long double         __expm1l         (long double   __x)      ;
extern   long double          log1pl         (long double   __x)    ; extern   long double         __log1pl         (long double   __x)      ;
extern   long double          logbl         (long double   __x)    ; extern   long double         __logbl         (long double   __x)      ;
extern   long double          powl         (long double   __x, long double   __y)    ; extern   long double         __powl         (long double   __x, long double   __y)      ;
extern   long double          sqrtl         (long double   __x)    ; extern   long double         __sqrtl         (long double   __x)      ;
extern   long double          hypotl         (long double   __x, long double   __y)    ; extern   long double         __hypotl         (long double   __x, long double   __y)      ;
extern   long double          cbrtl         (long double   __x)    ; extern   long double         __cbrtl         (long double   __x)      ;
extern   long double          ceill         (long double   __x)    ; extern   long double         __ceill         (long double   __x)      ;
extern   long double          fabsl         (long double   __x)     __attribute__ (    (__const__)  ); extern   long double         __fabsl         (long double   __x)     __attribute__ (    (__const__)  )  ;
extern   long double          floorl         (long double   __x)    ; extern   long double         __floorl         (long double   __x)      ;
extern   long double          fmodl         (long double   __x, long double   __y)    ; extern   long double         __fmodl         (long double   __x, long double   __y)      ;
extern  int    __isinfl     (long double   __value)   __attribute__ ((__const__));
extern  int    __finitel     (long double   __value)   __attribute__ ((__const__));
extern  int    isinfl     (long double   __value)   __attribute__ ((__const__));
extern  int    finitel     (long double   __value)   __attribute__ ((__const__));
extern   long double          infnanl         (int __error)     __attribute__ (    (__const__)  ); extern   long double         __infnanl         (int __error)     __attribute__ (    (__const__)  )  ;
extern   long double          dreml         (long double   __x, long double   __y)    ; extern   long double         __dreml         (long double   __x, long double   __y)      ;
extern   long double          significandl         (long double   __x)    ; extern   long double         __significandl         (long double   __x)      ;
extern   long double          copysignl         (long double   __x, long double   __y)     __attribute__ (    (__const__)  ); extern   long double         __copysignl         (long double   __x, long double   __y)     __attribute__ (    (__const__)  )  ;
extern  int    __isnanl     (long double   __value)   __attribute__ ((__const__));
extern  int    isnanl     (long double   __value)   __attribute__ ((__const__));
extern   long double          j0l         (long double  )    ; extern   long double         __j0l         (long double  )      ;
extern   long double          j1l         (long double  )    ; extern   long double         __j1l         (long double  )      ;
extern   long double          jnl         (int, long double  )    ; extern   long double         __jnl         (int, long double  )      ;
extern   long double          y0l         (long double  )    ; extern   long double         __y0l         (long double  )      ;
extern   long double          y1l         (long double  )    ; extern   long double         __y1l         (long double  )      ;
extern   long double          ynl         (int, long double  )    ; extern   long double         __ynl         (int, long double  )      ;
extern   long double          erfl         (long double  )    ; extern   long double         __erfl         (long double  )      ;
extern   long double          erfcl         (long double  )    ; extern   long double         __erfcl         (long double  )      ;
extern   long double          lgammal         (long double  )    ; extern   long double         __lgammal         (long double  )      ;
extern   long double          tgammal         (long double  )    ; extern   long double         __tgammal         (long double  )      ;
extern   long double          gammal         (long double  )    ; extern   long double         __gammal         (long double  )      ;
extern   long double          lgammal_r            (long double  , int *__signgamp)    ; extern   long double         __lgammal_r            (long double  , int *__signgamp)      ;
extern   long double          rintl         (long double   __x)    ; extern   long double         __rintl         (long double   __x)      ;
extern   long double          nextafterl         (long double   __x, long double   __y)     __attribute__ (    (__const__)  ); extern   long double         __nextafterl         (long double   __x, long double   __y)     __attribute__ (    (__const__)  )  ;
extern   long double          remainderl         (long double   __x, long double   __y)    ; extern   long double         __remainderl         (long double   __x, long double   __y)      ;
extern   long double          scalbl         (long double   __x, long double   __n)    ; extern   long double         __scalbl         (long double   __x, long double   __n)      ;
extern   long double          scalbnl         (long double   __x, int __n)    ; extern   long double         __scalbnl         (long double   __x, int __n)      ;
extern   int       ilogbl       (long double   __x)   ; extern   int       __ilogbl       (long double   __x)    ;
# 336 "/usr/include/bits/mathcalls.h" 3
# 99 "/usr/include/math.h" 2 3
extern int signgam;
# 232 "/usr/include/math.h" 3
typedef enum
{
  _IEEE_ = -1,	 
  _SVID_,	 
  _XOPEN_,	 
  _POSIX_,
  _ISOC_	 
} _LIB_VERSION_TYPE;
extern _LIB_VERSION_TYPE _LIB_VERSION;
struct exception
  {
    int type;
    char *name;
    double arg1;
    double arg2;
    double retval;
  };
extern int matherr  (struct exception *__exc)    ;
# 1 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/float.h" 1 3
union __convert_long_double {
  unsigned __convert_long_double_i[4];
  long double __convert_long_double_d;
};
# 289 "/usr/include/math.h" 2 3
# 299 "/usr/include/math.h" 3
# 336 "/usr/include/math.h" 3
# 407 "/usr/include/math.h" 3
# 3 "xxx.c" 2
# 1 "/usr/include/stdlib.h" 1 3
# 1 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 1 3
# 19 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 61 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 131 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 188 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 269 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 283 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 317 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 33 "/usr/include/stdlib.h" 2 3
typedef struct
  {
    int quot;			 
    int rem;			 
  } div_t;
typedef struct
  {
    long int quot;		 
    long int rem;		 
  } ldiv_t;
# 65 "/usr/include/stdlib.h" 3
extern size_t __ctype_get_mb_cur_max  (void)    ;
extern double atof  (__const char *__nptr)    ;
extern int atoi  (__const char *__nptr)    ;
extern long int atol  (__const char *__nptr)    ;
__extension__ extern long long int atoll  (__const char *__nptr)    ;
extern double strtod  (__const char *   __nptr,
			   char **   __endptr)    ;
extern long int strtol  (__const char *   __nptr,
			     char **   __endptr, int __base)    ;
extern unsigned long int strtoul  (__const char *   __nptr,
				       char **   __endptr,
				       int __base)    ;
__extension__
extern long long int strtoq  (__const char *   __nptr,
				  char **   __endptr, int __base)    ;
__extension__
extern unsigned long long int strtouq  (__const char *   __nptr,
					    char **   __endptr,
					    int __base)    ;
__extension__
extern long long int strtoll  (__const char *   __nptr,
				   char **   __endptr, int __base)    ;
__extension__
extern unsigned long long int strtoull  (__const char *   __nptr,
					     char **   __endptr,
					     int __base)    ;
# 190 "/usr/include/stdlib.h" 3
extern double __strtod_internal  (__const char *   __nptr,
				      char **   __endptr,
				      int __group)    ;
extern float __strtof_internal  (__const char *   __nptr,
				     char **   __endptr, int __group)    ;
extern long double  __strtold_internal  (__const char *
						  __nptr,
						char **   __endptr,
						int __group)    ;
extern long int __strtol_internal  (__const char *   __nptr,
					char **   __endptr,
					int __base, int __group)    ;
extern unsigned long int __strtoul_internal  (__const char *
						    __nptr,
						  char **   __endptr,
						  int __base, int __group)    ;
__extension__
extern long long int __strtoll_internal  (__const char *   __nptr,
					      char **   __endptr,
					      int __base, int __group)    ;
__extension__
extern unsigned long long int __strtoull_internal  (__const char *
							  __nptr,
							char **
							  __endptr,
							int __base,
							int __group)    ;
# 326 "/usr/include/stdlib.h" 3
extern char *l64a  (long int __n)    ;
extern long int a64l  (__const char *__s)    ;
# 1 "/usr/include/sys/types.h" 1 3
typedef __u_char u_char;
typedef __u_short u_short;
typedef __u_int u_int;
typedef __u_long u_long;
typedef __quad_t quad_t;
typedef __u_quad_t u_quad_t;
typedef __fsid_t fsid_t;
typedef __loff_t loff_t;
typedef __ino_t ino_t;
typedef __dev_t dev_t;
typedef __gid_t gid_t;
typedef __mode_t mode_t;
typedef __nlink_t nlink_t;
typedef __uid_t uid_t;
typedef __pid_t pid_t;
typedef __id_t id_t;
typedef __ssize_t ssize_t;
typedef __daddr_t daddr_t;
typedef __caddr_t caddr_t;
typedef __key_t key_t;
# 1 "/usr/include/time.h" 1 3
# 51 "/usr/include/time.h" 3
# 62 "/usr/include/time.h" 3
typedef __time_t time_t;
# 89 "/usr/include/time.h" 3
# 279 "/usr/include/time.h" 3
# 122 "/usr/include/sys/types.h" 2 3
# 1 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 1 3
# 19 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 61 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 131 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 188 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 271 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 283 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 317 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 125 "/usr/include/sys/types.h" 2 3
typedef unsigned long int ulong;
typedef unsigned short int ushort;
typedef unsigned int uint;
# 159 "/usr/include/sys/types.h" 3
typedef int int8_t __attribute__ ((__mode__ (  __QI__ ))) ;
typedef int int16_t __attribute__ ((__mode__ (  __HI__ ))) ;
typedef int int32_t __attribute__ ((__mode__ (  __SI__ ))) ;
typedef int int64_t __attribute__ ((__mode__ (  __DI__ ))) ;
typedef unsigned int u_int8_t __attribute__ ((__mode__ (  __QI__ ))) ;
typedef unsigned int u_int16_t __attribute__ ((__mode__ (  __HI__ ))) ;
typedef unsigned int u_int32_t __attribute__ ((__mode__ (  __SI__ ))) ;
typedef unsigned int u_int64_t __attribute__ ((__mode__ (  __DI__ ))) ;
typedef int register_t __attribute__ ((__mode__ (__word__)));
# 1 "/usr/include/endian.h" 1 3
# 1 "/usr/include/bits/endian.h" 1 3
# 35 "/usr/include/endian.h" 2 3
# 191 "/usr/include/sys/types.h" 2 3
# 1 "/usr/include/sys/select.h" 1 3
# 1 "/usr/include/bits/select.h" 1 3
# 36 "/usr/include/bits/select.h" 3
# 56 "/usr/include/bits/select.h" 3
# 72 "/usr/include/bits/select.h" 3
# 31 "/usr/include/sys/select.h" 2 3
# 1 "/usr/include/bits/sigset.h" 1 3
typedef int __sig_atomic_t;
typedef struct
  {
    unsigned long int __val[(1024 / (8 * sizeof (unsigned long int))) ];
  } __sigset_t;
# 125 "/usr/include/bits/sigset.h" 3
# 34 "/usr/include/sys/select.h" 2 3
# 1 "/usr/include/time.h" 1 3
# 51 "/usr/include/time.h" 3
# 62 "/usr/include/time.h" 3
# 73 "/usr/include/time.h" 3
struct timespec
  {
    long int tv_sec;		 
    long int tv_nsec;		 
  };
# 279 "/usr/include/time.h" 3
# 38 "/usr/include/sys/select.h" 2 3
struct timeval;
typedef __fd_mask fd_mask;
typedef __fd_set fd_set;
extern int __select  (int __nfds, __fd_set *__readfds,
			  __fd_set *__writefds, __fd_set *__exceptfds,
			  struct timeval *__timeout)    ;
extern int select  (int __nfds, __fd_set *__readfds,
			__fd_set *__writefds, __fd_set *__exceptfds,
			struct timeval *__timeout)    ;
# 91 "/usr/include/sys/select.h" 3
# 194 "/usr/include/sys/types.h" 2 3
# 1 "/usr/include/sys/sysmacros.h" 1 3
# 47 "/usr/include/sys/sysmacros.h" 3
# 197 "/usr/include/sys/types.h" 2 3
typedef __blkcnt_t blkcnt_t;	  
typedef __fsblkcnt_t fsblkcnt_t;  
typedef __fsfilcnt_t fsfilcnt_t;  
# 339 "/usr/include/stdlib.h" 2 3
extern int32_t random  (void)    ;
extern void srandom  (unsigned int __seed)    ;
extern void *  initstate  (unsigned int __seed, void *  __statebuf,
			       size_t __statelen)    ;
extern void *  setstate  (void *  __statebuf)    ;
struct random_data
  {
    int32_t *fptr;		 
    int32_t *rptr;		 
    int32_t *state;		 
    int rand_type;		 
    int rand_deg;		 
    int rand_sep;		 
    int32_t *end_ptr;		 
  };
extern int random_r  (struct random_data *   __buf,
			  int32_t *   __result)    ;
extern int srandom_r  (unsigned int __seed, struct random_data *__buf)    ;
extern int initstate_r  (unsigned int __seed,
			     void *    __statebuf,
			     size_t __statelen,
			     struct random_data *   __buf)    ;
extern int setstate_r  (void *    __statebuf,
			    struct random_data *   __buf)    ;
extern int rand  (void)    ;
extern void srand  (unsigned int __seed)    ;
extern int rand_r  (unsigned int *__seed)    ;
extern double drand48  (void)    ;
extern double erand48  (unsigned short int __xsubi[3])    ;
extern long int lrand48  (void)    ;
extern long int nrand48  (unsigned short int __xsubi[3])    ;
extern long int mrand48  (void)    ;
extern long int jrand48  (unsigned short int __xsubi[3])    ;
extern void srand48  (long int __seedval)    ;
extern unsigned short int *seed48  (unsigned short int __seed16v[3])    ;
extern void lcong48  (unsigned short int __param[7])    ;
struct drand48_data
  {
    unsigned short int x[3];	 
    unsigned short int a[3];	 
    unsigned short int c;	 
    unsigned short int old_x[3];  
    int init;			 
  };
extern int drand48_r  (struct drand48_data *   __buffer,
			   double *   __result)    ;
extern int erand48_r  (unsigned short int __xsubi[3],
			   struct drand48_data *   __buffer,
			   double *   __result)    ;
extern int lrand48_r  (struct drand48_data *   __buffer,
			   long int *   __result)    ;
extern int nrand48_r  (unsigned short int __xsubi[3],
			   struct drand48_data *   __buffer,
			   long int *   __result)    ;
extern int mrand48_r  (struct drand48_data *   __buffer,
			   long int *   __result)    ;
extern int jrand48_r  (unsigned short int __xsubi[3],
			   struct drand48_data *   __buffer,
			   long int *   __result)    ;
extern int srand48_r  (long int __seedval, struct drand48_data *__buffer)    ;
extern int seed48_r  (unsigned short int __seed16v[3],
			  struct drand48_data *__buffer)    ;
extern int lcong48_r  (unsigned short int __param[7],
			   struct drand48_data *__buffer)    ;
extern void *  malloc  (size_t __size)    ;
extern void *  calloc  (size_t __nmemb, size_t __size)    ;
extern void *  realloc  (void *  __ptr, size_t __size)    ;
extern void free  (void *  __ptr)    ;
extern void cfree  (void *  __ptr)    ;
# 1 "/usr/include/alloca.h" 1 3
# 1 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 1 3
# 19 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 61 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 131 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 188 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 271 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 283 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 317 "/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h" 3
# 25 "/usr/include/alloca.h" 2 3
extern void *  alloca  (size_t __size)    ;
# 492 "/usr/include/stdlib.h" 2 3
extern void *  valloc  (size_t __size)    ;
extern void abort  (void)     __attribute__ ((__noreturn__));
extern int atexit  (void (*__func) (void))    ;
extern int __on_exit  (void (*__func) (int __status, void *  __arg),
			   void *  __arg)    ;
extern int on_exit  (void (*__func) (int __status, void *  __arg),
			 void *  __arg)    ;
extern void exit  (int __status)     __attribute__ ((__noreturn__));
extern char *getenv  (__const char *__name)    ;
extern char *__secure_getenv  (__const char *__name)    ;
extern int putenv  (char *__string)    ;
extern int setenv  (__const char *__name, __const char *__value,
			int __replace)    ;
extern void unsetenv  (__const char *__name)    ;
extern int clearenv  (void)    ;
extern char *mktemp  (char *__template)    ;
extern int mkstemp  (char *__template)    ;
extern int system  (__const char *__command)    ;
extern char *realpath  (__const char *   __name,
			    char *   __resolved)    ;
typedef int (*__compar_fn_t)  (__const void * , __const void * )  ;
extern void *  bsearch  (__const void *  __key, __const void *  __base,
			       size_t __nmemb, size_t __size,
			       __compar_fn_t __compar)  ;
extern void qsort  (void *  __base, size_t __nmemb, size_t __size,
			  __compar_fn_t __compar)  ;
extern int abs  (int __x)     __attribute__ ((__const__));
extern long int labs  (long int __x)     __attribute__ ((__const__));
extern div_t div  (int __numer, int __denom)     __attribute__ ((__const__));
extern ldiv_t ldiv  (long int __numer, long int __denom)    
     __attribute__ ((__const__));
extern char *ecvt  (double __value, int __ndigit, int *   __decpt,
			int *   __sign)    ;
extern char *fcvt  (double __value, int __ndigit, int *   __decpt,
			int *   __sign)    ;
extern char *gcvt  (double __value, int __ndigit, char *__buf)    ;
extern char *qecvt  (long double  __value, int __ndigit,
			 int *   __decpt, int *   __sign)    ;
extern char *qfcvt  (long double  __value, int __ndigit,
			 int *   __decpt, int *   __sign)    ;
extern char *qgcvt  (long double  __value, int __ndigit, char *__buf)    ;
extern int ecvt_r  (double __value, int __ndigit, int *   __decpt,
			int *   __sign, char *   __buf,
			size_t __len)    ;
extern int fcvt_r  (double __value, int __ndigit, int *   __decpt,
			int *   __sign, char *   __buf,
			size_t __len)    ;
extern int qecvt_r  (long double  __value, int __ndigit,
			 int *   __decpt, int *   __sign,
			 char *   __buf, size_t __len)    ;
extern int qfcvt_r  (long double  __value, int __ndigit,
			 int *   __decpt, int *   __sign,
			 char *   __buf, size_t __len)    ;
extern int mblen  (__const char *__s, size_t __n)    ;
extern int mbtowc  (wchar_t *   __pwc,
			__const char *   __s, size_t __n)    ;
extern int wctomb  (char *__s, wchar_t __wchar)    ;
extern size_t mbstowcs  (wchar_t *    __pwcs,
			     __const char *   __s, size_t __n)    ;
extern size_t wcstombs  (char *   __s,
			     __const wchar_t *   __pwcs, size_t __n)    ;
extern int rpmatch  (__const char *__response)    ;
# 732 "/usr/include/stdlib.h" 3
# 756 "/usr/include/stdlib.h" 3
# 766 "/usr/include/stdlib.h" 3
# 4 "xxx.c" 2
int main(int argc, char **argv)
{
   char line[2001], *strptr;
   float data[60000 ][120 ];
   float dat[60000 ];
   float mean, rms, err, max, min; 
   float sigma_max  = 3.0, thresh;
   return 0;
}


More information about the Gcc-bugs mailing list