This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/12993] New: internal compiler error: Segmentation fault


GCC version: 3.4 20031105 (experimental)

system type:  uname -a produces:
 Linux diags11 2.4.2-2 #1 Sun Apr 8 19:37:14 EDT 2001 i586 unknown

GCC configure options:  ../../gcc-3.4-20031105/configure --target=powerpc-elf

Complete command line:
/usr/local/bin/powerpc-elf-gcc -g  -O3 -mcpu=603e -msoft-float -save-temps -
I. -I/fsn28/accts/pvg/pmon/src/include -I./machine -
I/fsn28/accts/pvg/pmon/src -
I/fsn28/accts/pvg/pmon/src/sys/arch/powerpc/include -
I/fsn28/accts/pvg/pmon/src/sys -I/fsn28/accts/pvg/pmon/src/Targets/CPC6600 -
I/fsn28/accts/pvg/pmon/src/Targets/CPC6600/compile/GENERIC -nostdinc  -
DPOWERPC -DINET -DMPC107 -DTARGETNAME="\"CPC6600\"" -DHAVE_TOD -DHAVE_NVENV -
DPTI -D_KERNEL -U__NetBSD__ -D__OpenBSD__ -DPMON  -Dpowerpc -D__powerpc__   -c 
param.c

Compiler Output:
In file included from param.c:38:
/fsn28/accts/pvg/pmon/src/sys/sys/systm.h:182: internal compiler error: 
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [param.o] Error 1

Preprocessed file (param.i) contents:

# 1 "<built-in>"
# 1 "<command line>"
# 1 "param.c"
# 37 "param.c"
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/param.h" 1
# 60 "/fsn28/accts/pvg/pmon/src/sys/sys/param.h"
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/types.h" 1
# 48 "/fsn28/accts/pvg/pmon/src/sys/sys/types.h"
# 1 "./machine/types.h" 1
# 38 "./machine/types.h"
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/cdefs.h" 1
# 53 "/fsn28/accts/pvg/pmon/src/sys/sys/cdefs.h"
# 1 "./machine/cdefs.h" 1
# 54 "/fsn28/accts/pvg/pmon/src/sys/sys/cdefs.h" 2
# 39 "./machine/types.h" 2


typedef signed char int8_t;
typedef unsigned char u_int8_t;
typedef unsigned char uint8_t;
typedef short int16_t;
typedef unsigned short u_int16_t;
typedef unsigned short uint16_t;
typedef int int32_t;
typedef unsigned int u_int32_t;
typedef unsigned int uint32_t;
typedef long long int64_t;
typedef unsigned long long u_int64_t;
typedef unsigned long long uint64_t;

typedef u_int32_t register_t;

typedef unsigned long vm_size_t;
typedef unsigned long vm_offset_t;

typedef unsigned long vaddr_t;
typedef unsigned long paddr_t;
typedef unsigned long vsize_t;
typedef unsigned long psize_t;

typedef struct label_t {
        int val[40];
} label_t;
# 49 "/fsn28/accts/pvg/pmon/src/sys/sys/types.h" 2

# 1 "./machine/ansi.h" 1
# 56 "./machine/ansi.h"
struct __va_list_tag;
# 51 "/fsn28/accts/pvg/pmon/src/sys/sys/types.h" 2
# 1 "./machine/endian.h" 1
# 36 "./machine/endian.h"
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/endian.h" 1
# 127 "/fsn28/accts/pvg/pmon/src/sys/sys/endian.h"

u_int32_t htobe32 (u_int32_t);
u_int16_t htobe16 (u_int16_t);
u_int32_t betoh32 (u_int32_t);
u_int16_t betoh16 (u_int16_t);

u_int32_t htole32 (u_int32_t);
u_int16_t htole16 (u_int16_t);
u_int32_t letoh32 (u_int32_t);
u_int16_t letoh16 (u_int16_t);

# 37 "./machine/endian.h" 2
# 52 "/fsn28/accts/pvg/pmon/src/sys/sys/types.h" 2


typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;

typedef unsigned char unchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long ulong;


typedef u_int64_t u_quad_t;
typedef int64_t quad_t;
typedef quad_t * qaddr_t;

typedef char * caddr_t;
typedef int32_t daddr_t;
typedef int32_t dev_t;
typedef u_int32_t fixpt_t;
typedef u_int32_t gid_t;
typedef u_int32_t ino_t;
typedef long key_t;
typedef u_int16_t mode_t;
typedef u_int16_t nlink_t;
typedef quad_t off_t;
typedef int32_t pid_t;
typedef quad_t rlim_t;
typedef int32_t segsz_t;
typedef int32_t swblk_t;
typedef u_int32_t uid_t;
typedef u_int32_t useconds_t;
typedef int32_t suseconds_t;
# 94 "/fsn28/accts/pvg/pmon/src/sys/sys/types.h"
typedef u_int32_t in_addr_t;
typedef u_int16_t in_port_t;
typedef u_int8_t sa_family_t;
typedef u_int32_t socklen_t;
# 123 "/fsn28/accts/pvg/pmon/src/sys/sys/types.h"
typedef unsigned long clock_t;




typedef unsigned int size_t;




typedef int ssize_t;




typedef int time_t;




typedef int clockid_t;




typedef int timer_t;
# 165 "/fsn28/accts/pvg/pmon/src/sys/sys/types.h"
typedef int32_t fd_mask;






typedef struct fd_set {
 fd_mask fds_bits[(((32) + (((sizeof(fd_mask) * 8)) - 1)) / ((sizeof(fd_mask) 
* 8)))];
} fd_set;
# 193 "/fsn28/accts/pvg/pmon/src/sys/sys/types.h"
struct proc;
struct pgrp;
struct ucred;
struct rusage;
struct file;
struct buf;
struct tty;
struct uio;
# 61 "/fsn28/accts/pvg/pmon/src/sys/sys/param.h" 2
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/simplelock.h" 1
# 14 "/fsn28/accts/pvg/pmon/src/sys/sys/simplelock.h"
struct simplelock {
 int lock_data;
};
# 31 "/fsn28/accts/pvg/pmon/src/sys/sys/simplelock.h"
static __inline void simple_lock_init (struct simplelock *);

static __inline void
simple_lock_init(lkp)
 struct simplelock *lkp;
{

 lkp->lock_data = 0;
}
# 62 "/fsn28/accts/pvg/pmon/src/sys/sys/param.h" 2
# 71 "/fsn28/accts/pvg/pmon/src/sys/sys/param.h"
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/syslimits.h" 1
# 72 "/fsn28/accts/pvg/pmon/src/sys/sys/param.h" 2
# 87 "/fsn28/accts/pvg/pmon/src/sys/sys/param.h"
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/errno.h" 1
# 88 "/fsn28/accts/pvg/pmon/src/sys/sys/param.h" 2
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/time.h" 1
# 48 "/fsn28/accts/pvg/pmon/src/sys/sys/time.h"
struct timeval {
 long tv_sec;
 long tv_usec;
};




struct timespec {
 time_t tv_sec;
 long tv_nsec;
};
# 70 "/fsn28/accts/pvg/pmon/src/sys/sys/time.h"
struct timezone {
 int tz_minuteswest;
 int tz_dsttime;
};
# 142 "/fsn28/accts/pvg/pmon/src/sys/sys/time.h"
struct itimerval {
 struct timeval it_interval;
 struct timeval it_value;
};




struct clockinfo {
 int hz;
 int tick;
 int tickadj;
 int stathz;
 int profhz;
};
# 166 "/fsn28/accts/pvg/pmon/src/sys/sys/time.h"
int itimerfix (struct timeval *tv);
int itimerdecr (struct itimerval *itp, int usec);
void microtime (struct timeval *tv);
# 89 "/fsn28/accts/pvg/pmon/src/sys/sys/param.h" 2
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/resource.h" 1
# 59 "/fsn28/accts/pvg/pmon/src/sys/sys/resource.h"
struct rusage {
 struct timeval ru_utime;
 struct timeval ru_stime;
 long ru_maxrss;

 long ru_ixrss;
 long ru_idrss;
 long ru_isrss;
 long ru_minflt;
 long ru_majflt;
 long ru_nswap;
 long ru_inblock;
 long ru_oublock;
 long ru_msgsnd;
 long ru_msgrcv;
 long ru_nsignals;
 long ru_nvcsw;
 long ru_nivcsw;

};
# 97 "/fsn28/accts/pvg/pmon/src/sys/sys/resource.h"
struct orlimit {
 int32_t rlim_cur;
 int32_t rlim_max;
};

struct rlimit {
 rlim_t rlim_cur;
 rlim_t rlim_max;
};


struct loadavg {
 fixpt_t ldavg[3];
 long fscale;
};


extern struct loadavg averunnable;
int dosetrlimit (struct proc *, u_int, struct rlimit *);
int donice (struct proc *, struct proc *, int);
# 90 "/fsn28/accts/pvg/pmon/src/sys/sys/param.h" 2
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/ucred.h" 1
# 65 "/fsn28/accts/pvg/pmon/src/sys/sys/ucred.h"
int suser (struct ucred *cred, u_short *acflag);
# 91 "/fsn28/accts/pvg/pmon/src/sys/sys/param.h" 2
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/uio.h" 1
# 42 "/fsn28/accts/pvg/pmon/src/sys/sys/uio.h"
struct iovec {
 void *iov_base;
 size_t iov_len;
};

enum uio_rw { UIO_READ, UIO_WRITE };


enum uio_seg {
 UIO_USERSPACE,
 UIO_SYSSPACE
};


struct uio {
 struct iovec *uio_iov;
 int uio_iovcnt;
 off_t uio_offset;
 size_t uio_resid;
 enum uio_seg uio_segflg;
 enum uio_rw uio_rw;
 struct proc *uio_procp;
};
# 82 "/fsn28/accts/pvg/pmon/src/sys/sys/uio.h"
int ureadc (int c, struct uio *);
# 92 "/fsn28/accts/pvg/pmon/src/sys/sys/param.h" 2



# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/signal.h" 1
# 48 "/fsn28/accts/pvg/pmon/src/sys/sys/signal.h"
# 1 "./machine/signal.h" 1
# 37 "./machine/signal.h"
typedef int sig_atomic_t;


# 1 "./machine/cpu.h" 1
# 84 "./machine/cpu.h"
struct bat {
 u_int32_t batu;
 u_int32_t batl;
};
void savebat (struct bat *);
void loadbat (struct bat *);

extern struct bat trapbat;

# 1 "./machine/frame.h" 1
# 44 "./machine/frame.h"
struct trapframe {
 u_int32_t fixreg[32];
 u_int32_t lr;
 u_int32_t cr;
 u_int32_t xer;
 u_int32_t ctr;
 int srr0;
 int srr1;
        int dar;
 int dsisr;
 u_int32_t exc;
 struct bat batreg[8];

};

struct switchframe {
 register_t sp;
 int fill;
 int user_sr;
 int cr;
 register_t fixreg2;
 register_t fixreg[19];
};

struct clockframe {
 register_t srr1;
 register_t srr0;
 int pri;
 int depth;
};




struct callframe {
 register_t sp;
 register_t lr;
 register_t r30;
 register_t r31;
};
# 94 "./machine/cpu.h" 2
# 1 "./machine/psl.h" 1
# 90 "./machine/psl.h"
# 1 "./machine/intr.h" 1
# 39 "./machine/intr.h"
# 1 "./machine/psl.h" 1
# 40 "./machine/intr.h" 2
# 153 "./machine/intr.h"
int splbio (void);
int splnet (void);
int splclock (void);
int spltty (void);
int splimp (void);
int splsoftclock (void);
int splstatclock (void);
int spl0 (void);
void splx (int);
int splhigh (void);
void setsoftclock (void);
void clearsoftclock (void);
int splsoftclock (void);
void setsoftnet (void);
void clearsoftnet (void);
int splsoftnet (void);
# 91 "./machine/psl.h" 2
# 95 "./machine/cpu.h" 2
# 107 "./machine/cpu.h"
extern void delay (int);


extern volatile int want_resched;
extern volatile int astpending;





static __inline int get_count (void);
static __inline int
get_count()
{
 int _decr_;

 __asm__ volatile("mfspr %0, 22\n" : "=r"(_decr_));
 return( 0 - _decr_);
}







__inline void syncicache (void *, size_t);
extern __inline void
syncicache(from, len)
 void *from;
 size_t len;
{
 int l;
 void *p = from;

 l = len + ((int)from & (32 - 1));
 do {
  asm volatile ("dcbst 0,%0" :: "r"(p));
  p += 32;
 } while ((l -= 32) > 0);
 asm volatile ("sync");
 l = len + ((int)from & 31);
 do {
  asm volatile ("icbi 0,%0" :: "r"(from));
  from += 32;
 } while ((l -= 32) > 0);
 asm volatile ("isync");
}





__inline void flushicache (void *, size_t);
extern __inline void
flushicache(from, len)
 void *from;
 size_t len;
{
 int l;

 l = len + ((int)from & (32 - 1));
 do {
  asm volatile ("icbi 0,%0" :: "r"(from));
  from += 32;
 } while ((l -= 32) > 0);
 asm volatile ("isync");
}







__inline void flushdcache (void *, size_t);
extern __inline void
flushdcache(from, len)
 void *from;
 size_t len;
{
 int l;

 l = len + ((int)from & (32 - 1));

 do {
  asm volatile ("dcbf 0,%0" :: "r"(from));
  from += 32;
 } while ((l -= 32) > 0);
 asm volatile ("sync");
}
# 207 "./machine/cpu.h"
extern char *bootpath;
# 41 "./machine/signal.h" 2

struct sigcontext {
 int sc_onstack;
 int sc_mask;
 struct trapframe sc_frame;
};
# 49 "/fsn28/accts/pvg/pmon/src/sys/sys/signal.h" 2
# 110 "/fsn28/accts/pvg/pmon/src/sys/sys/signal.h"
typedef unsigned int sigset_t;

# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/siginfo.h" 1
# 36 "/fsn28/accts/pvg/pmon/src/sys/sys/siginfo.h"
union sigval {
 int sival_int;
 void *sival_ptr;
};
# 135 "/fsn28/accts/pvg/pmon/src/sys/sys/siginfo.h"
typedef struct {
 int si_signo;
 int si_code;
 int si_errno;
 union {
  int _pad[((128 / sizeof (int)) - 3)];
  struct {
   pid_t _pid;
   union {
    struct {
     uid_t _uid;
     union sigval _value;
    } _kill;
    struct {
     clock_t _utime;
     int _status;
     clock_t _stime;
    } _cld;
   } _pdata;
  } _proc;
  struct {
   caddr_t _addr;
   int _trapno;
  } _fault;
# 175 "/fsn28/accts/pvg/pmon/src/sys/sys/siginfo.h"
 } _data;
} siginfo_t;
# 199 "/fsn28/accts/pvg/pmon/src/sys/sys/siginfo.h"
void initsiginfo (siginfo_t *, int, u_long, int, union sigval);
# 113 "/fsn28/accts/pvg/pmon/src/sys/sys/signal.h" 2




struct sigaction {
 union {
  void (*__sa_handler) (int);
  void (*__sa_sigaction) (int, siginfo_t *, void *);
 } __sigaction_u;
 sigset_t sa_mask;
 int sa_flags;
};
# 154 "/fsn28/accts/pvg/pmon/src/sys/sys/signal.h"
typedef void (*sig_t) (int);




struct sigaltstack {
 void *ss_sp;
 int ss_size;
 int ss_flags;
};
# 173 "/fsn28/accts/pvg/pmon/src/sys/sys/signal.h"
struct sigvec {
 void (*sv_handler) (int);
 int sv_mask;
 int sv_flags;
};
# 186 "/fsn28/accts/pvg/pmon/src/sys/sys/signal.h"
struct sigstack {
 void *ss_sp;
 int ss_onstack;
};
# 206 "/fsn28/accts/pvg/pmon/src/sys/sys/signal.h"

void (*signal (int, void (*) (int))) (int);

# 96 "/fsn28/accts/pvg/pmon/src/sys/sys/param.h" 2


# 1 "./machine/param.h" 1
# 99 "/fsn28/accts/pvg/pmon/src/sys/sys/param.h" 2
# 1 "./machine/limits.h" 1
# 100 "/fsn28/accts/pvg/pmon/src/sys/sys/param.h" 2
# 38 "param.c" 2
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/systm.h" 1
# 58 "/fsn28/accts/pvg/pmon/src/sys/sys/systm.h"
# 1 "./machine/stdarg.h" 1
# 46 "./machine/stdarg.h"
# 1 "./machine/va-ppc.h" 1
# 20 "./machine/va-ppc.h"
typedef struct __va_list_tag {
  char gpr;


  char fpr;


  char *overflow_arg_area;

  char *reg_save_area;
} __va_list[1], __gnuc_va_list[1];
# 47 "./machine/va-ppc.h"
typedef struct {
  long __gp_save[8];
  double __fp_save[8];
} __va_regsave_t;
# 47 "./machine/stdarg.h" 2

typedef struct __va_list_tag * va_list;
# 59 "/fsn28/accts/pvg/pmon/src/sys/sys/systm.h" 2
# 87 "/fsn28/accts/pvg/pmon/src/sys/sys/systm.h"
extern int securelevel;
extern const char *panicstr;
extern char version[];
extern char copyright[];

extern int nblkdev;
extern int nchrdev;

extern int nswdev;
extern int nswap;


extern int selwait;

extern u_char curpriority;

extern int maxmem;
extern int physmem;

extern dev_t dumpdev;
extern long dumplo;

extern dev_t rootdev;
extern struct vnode *rootvp;

extern dev_t swapdev;
extern struct vnode *swapdev_vp;

struct proc;
extern struct sysent {
 short sy_narg;
 short sy_argsize;

 int (*sy_call) (struct proc *, void *, register_t *);
} sysent[];
# 134 "/fsn28/accts/pvg/pmon/src/sys/sys/systm.h"
extern int boothowto;

extern void (*v_putc) (int);

extern void _insque (void *, void *);
extern void _remque (void *);
# 148 "/fsn28/accts/pvg/pmon/src/sys/sys/systm.h"
int nullop (void *);
int enodev (void);
int enosys (void);
int enoioctl (void);
int enxio (void);
int eopnotsupp (void *);

int lkmenodev (void);

struct vnodeopv_desc;
void vfs_opv_init (void);
void vfs_opv_init_explicit (struct vnodeopv_desc *);
void vfs_opv_init_default (struct vnodeopv_desc *);
void vfs_op_init (void);

int seltrue (dev_t dev, int which, struct proc *);
void *hashinit (int, int, int, u_long *);
int sys_nosys (struct proc *, void *, register_t *);

void panic (const char *, ...)



    __attribute__((__noreturn__));

void __assert (const char *, const char *, int, const char *)
    __attribute__((__noreturn__));
int printf (const char *, ...)
    ;
void uprintf (const char *, ...)
    ;



int vprintf(const char *, struct __va_list_tag *);

int vsprintf (char *, const char *, va_list)
    ;
int sprintf (char *buf, const char *, ...)
    ;
struct tty;
void ttyprintf (struct tty *, const char *, ...)
    ;

void tablefull (const char *);





void bcopy (const void *, void *, size_t);
void bcopy (const void *, void *, size_t);
void bzero (void *, size_t);
int bcmp (const void *, const void *, size_t);
void *memcpy (void *, const void *, size_t);
void *memmove (void *, const void *, size_t);
void *memset (void *, int, size_t);

int copystr (const void *, void *, size_t, size_t *);
int copyinstr (const void *, void *, size_t, size_t *);
int copyoutstr (const void *, void *, size_t, size_t *);
int copyin (const void *, void *, size_t);
int copyout (const void *, void *, size_t);

int fubyte (void *);



int subyte (void *, int);
int suibyte (void *, int);
long fuword (void *);
long fuiword (void *);
int suword (void *, long);
int suiword (void *, long);
int fuswintr (caddr_t);
int suswintr (caddr_t, u_int);

struct timeval;
int hzto (struct timeval *);
void timeout (void (*)(void *), void *, int);
void untimeout (void (*)(void *), void *);
void realitexpire (void *);

struct clockframe;
void hardclock (struct clockframe *);
void softclock (void);
void statclock (struct clockframe *);







void initclocks (void);
void inittodr (time_t);
void resettodr (void);
void cpu_initclocks (void);

void startprofclock (struct proc *);
void stopprofclock (struct proc *);
void setstatclockrate (int);





void *shutdownhook_establish (void (*)(void *), void *);
void shutdownhook_disestablish (void *);
void doshutdownhooks (void);

struct uio;
int uiomove (caddr_t, int, struct uio *);

int setjmp (label_t *);
void longjmp (label_t *, int);

void consinit (void);

void cpu_startup (void);
void cpu_set_kpc (struct proc *, void (*)(void *), void *);
extern void (*md_diskconf) (void);






int nfs_mountroot (void);
int dk_mountroot (void);
int (*mountroot)(void);
# 294 "/fsn28/accts/pvg/pmon/src/sys/sys/systm.h"
int min (int, int);
int imin (int, int);
int max (int, int);
int imax (int, int);
extern u_int32_t arc4random (void);
int spawn (char *, int (*) (int, char **), int, char **);
void init_proc (void);
void exit1 (struct proc *, int);
void psig (int);
void _res_reset (void);
void setrunnable (struct proc *);
void softnet (void);
void scandevs (void);
void paraminit (void);
void sleep (void *, int);
void unsleep (struct proc *);

char *strcat (char *, const char *);
char *strncpy (char *, const char *, int);
int strncmp (const char *, const char *, size_t);
char *strchr (const char *, int);
char *strpbrk (const char *, const char *);
char *index (const char *, int);
int bcmp (const void *, const void *, size_t);
# 39 "param.c" 2
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/callout.h" 1
# 44 "/fsn28/accts/pvg/pmon/src/sys/sys/callout.h"
struct callout {
 struct callout *c_next;
 void *c_arg;
 void (*c_func) (void *);
 int c_time;
};


struct callout *callfree, *callout, calltodo;
int ncallout;
# 40 "param.c" 2
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/filedesc.h" 1
# 56 "/fsn28/accts/pvg/pmon/src/sys/sys/filedesc.h"
struct filedesc {
 struct file **fd_ofiles;
 char *fd_ofileflags;
 struct vnode *fd_cdir;
 struct vnode *fd_rdir;
 int fd_nfiles;
 int fd_lastfile;
 int fd_freefile;
 u_short fd_cmask;
 u_short fd_refcnt;
};





struct filedesc0 {
 struct filedesc fd_fd;




 struct file *fd_dfiles[20];
 char fd_dfileflags[20];
};
# 97 "/fsn28/accts/pvg/pmon/src/sys/sys/filedesc.h"
int dupfdopen (struct filedesc *fdp, int indx, int dfd, int mode, int error);

int fdalloc (struct proc *p, int want, int *result);
int fdavail (struct proc *p, int n);
int falloc (struct proc *p, struct file **resultfp, int *resultfd);
void ffree (struct file *);
struct filedesc *fdinit (struct proc *p);
struct filedesc *fdshare (struct proc *p);
struct filedesc *fdcopy (struct proc *p);
void fdfree (struct proc *p);
int fdrelease (struct proc *p, int);
void fdremove (struct filedesc *, int);
void fdcloseexec (struct proc *);

int closef (struct file *, struct proc *);
int getsock (struct filedesc *, int, struct file **);
# 41 "param.c" 2
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/mbuf.h" 1
# 40 "/fsn28/accts/pvg/pmon/src/sys/sys/mbuf.h"
# 1 "/fsn28/accts/pvg/pmon/src/sys/sys/malloc.h" 1
# 280 "/fsn28/accts/pvg/pmon/src/sys/sys/malloc.h"
struct kmemstats {
 long ks_inuse;
 long ks_calls;
 long ks_memuse;
 u_short ks_limblocks;
 u_short ks_mapblocks;
 long ks_maxused;
 long ks_limit;
 long ks_size;
 long ks_spare;
};




struct kmemusage {
 short ku_indx;
 union {
  u_short freecnt;
  u_short pagecnt;
 } ku_un;
};






struct kmembuckets {
 caddr_t kb_next;
 caddr_t kb_last;
 long kb_calls;
 long kb_total;
 long kb_totalfree;
 long kb_elmpercl;
 long kb_highwat;
 long kb_couldfree;
};
# 369 "/fsn28/accts/pvg/pmon/src/sys/sys/malloc.h"
typedef struct vm_map *vm_map_t;
vm_offset_t kmem_malloc (vm_map_t, vm_size_t, int);
vm_map_t kmem_suballoc (vm_map_t, vm_offset_t *, vm_offset_t *, vm_size_t, 
int);

vm_offset_t kmem_alloc (vm_map_t, vm_size_t);
void kmem_free (vm_map_t, vm_offset_t, vm_size_t);
# 417 "/fsn28/accts/pvg/pmon/src/sys/sys/malloc.h"
extern struct kmemstats kmemstats[];
extern struct kmemusage *kmemusage;
extern char *kmembase;
extern struct kmembuckets bucket[];

extern void *kern_malloc (unsigned long size, int type, int flags);
extern void kern_free (void *addr, int type);
# 41 "/fsn28/accts/pvg/pmon/src/sys/sys/mbuf.h" 2
# 70 "/fsn28/accts/pvg/pmon/src/sys/sys/mbuf.h"
struct m_hdr {
 struct mbuf *mh_next;
 struct mbuf *mh_nextpkt;
 caddr_t mh_data;
 u_int mh_len;
 short mh_type;
 short mh_flags;
};


struct pkthdr {
 struct ifnet *rcvif;
 int len;
 void *tdbi;

};


struct m_ext {
 caddr_t ext_buf;
 void (*ext_free)
      (struct mbuf *);
 u_int ext_size;
 void (*ext_ref)
      (struct mbuf *);
 void *ext_handle;
};

struct mbuf {
 struct m_hdr m_hdr;
 union {
  struct {
   struct pkthdr MH_pkthdr;
   union {
    struct m_ext MH_ext;
    char MH_databuf[((128 - sizeof(struct m_hdr)) - sizeof(struct pkthdr))];
   } MH_dat;
  } MH;
  char M_databuf[(128 - sizeof(struct m_hdr))];
 } M_dat;
};
# 225 "/fsn28/accts/pvg/pmon/src/sys/sys/mbuf.h"
union mcluster {
 union mcluster *mcl_next;
 char mcl_buf[(1 << 11)];
};
# 358 "/fsn28/accts/pvg/pmon/src/sys/sys/mbuf.h"
struct mbstat {
 u_long m_mbufs;
 u_long m_clusters;
 u_long m_spare;
 u_long m_clfree;
 u_long m_drops;
 u_long m_wait;
 u_long m_drain;
 u_short m_mtypes[256];
};


extern struct mbuf *mbutl;
extern char *mclrefcnt;
struct mbstat mbstat;
extern int nmbclusters;
union mcluster *mclfree;
int max_linkhdr;
int max_protohdr;
int max_hdr;
int max_datalen;
extern int mbtypes[];
extern int needqueuedrain;


void mbinit (void);
struct mbuf *m_copym2 (struct mbuf *, int, int, int);
struct mbuf *m_copym (struct mbuf *, int, int, int);
struct mbuf *m_free (struct mbuf *);
struct mbuf *m_get (int, int);
struct mbuf *m_getclr (int, int);
struct mbuf *m_gethdr (int, int);
struct mbuf *m_prepend (struct mbuf *, int, int);
struct mbuf *m_pullup (struct mbuf *, int);
struct mbuf *m_pullup2 (struct mbuf *, int);
struct mbuf *m_retry (int, int);
struct mbuf *m_retryhdr (int, int);
struct mbuf *m_split (struct mbuf *, int, int);
void m_adj (struct mbuf *, int);
int m_clalloc (int, int);
void m_copyback (struct mbuf *, int, int, caddr_t);
void m_freem (struct mbuf *);
void m_reclaim (void);
void m_copydata (struct mbuf *, int, int, caddr_t);
void m_cat (struct mbuf *, struct mbuf *);
struct mbuf *m_devget (char *, int, int, struct ifnet *, void (*) (const void 
*, void *, size_t));

void m_zero (struct mbuf *);
int m_apply (struct mbuf *, int, int, int (*)(caddr_t, caddr_t, unsigned int), 
caddr_t);
# 42 "param.c" 2
# 57 "param.c"
int hz;
int tick;







struct timezone tz;





int ncallout;
int nmbclusters;
int maxfiles;






struct callout *callout;


void
paraminit ()
{
    hz = 100;
    tick = 1000000 / 100;

    tz.tz_minuteswest = 0;
    tz.tz_dsttime = 0;

    ncallout = 16 + 3;
    nmbclusters = 256;
    maxfiles = 20 * 3;
}

-- 
           Summary: internal compiler error: Segmentation fault
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pvg at pt dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12993


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]