public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/14286] New: hpux 11.i gcc3.3 compiler errors
@ 2004-02-25  3:26 swarner at rambus dot com
  2004-02-25  4:46 ` [Bug target/14286] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: swarner at rambus dot com @ 2004-02-25  3:26 UTC (permalink / raw)
  To: gcc-bugs

gcc -v
Reading specs from /usr/local/gcc33/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3/specs
Configured with: /opt/build/gcc-3.3/configure --with-gnu-as
--with-as=/usr/local/gcc33/hppa2.0w-hp-hpux11.11/bin/as --with-included-gettext
--enable-shared --datadir=/usr/local/gcc33/share --enable-threads=posix
--with-local-prefix=/usr/local/gcc33 --prefix=/usr/local/gcc33
Thread model: posix
gcc version 3.3 (TWW)

******************************************

gcc rmbs_error.c 
rmbs_error.c: In function `rmbs_error':
rmbs_error.c:34: warning: second parameter of `va_start' not last named argument
rmbs_error.c:34: internal compiler error: in convert_move, at expr.c:564
Please submit a full bug report,
with preprocessed source if appropriate.
# 1 "rmbs_error.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "rmbs_error.c"
# 9 "rmbs_error.c"
# 1 "/usr/include/stdarg.h" 1 3 4





# 1 "/usr/include/sys/stdsyms.h" 1 3 4
# 7 "/usr/include/stdarg.h" 2 3 4


# 1 "/usr/include/varargs.h" 1 3 4
# 84 "/usr/include/varargs.h" 3 4

       typedef double *va_list;

# 136 "/usr/include/varargs.h" 3 4
         void __builtin_va_start(va_list, ...);
# 10 "/usr/include/stdarg.h" 2 3 4
# 10 "rmbs_error.c" 2
# 1 "/usr/include/stdio.h" 1 3 4
# 10 "/usr/include/stdio.h" 3 4
# 1 "/usr/include/sys/types.h" 1 3 4
# 41 "/usr/include/sys/types.h" 3 4
# 1 "/usr/include/sys/_inttypes.h" 1 3 4
# 86 "/usr/include/sys/_inttypes.h" 3 4
typedef char int8_t;
typedef unsigned char uint8_t;
typedef short int16_t;
typedef unsigned short uint16_t;
typedef int int32_t;
typedef unsigned int uint32_t;

typedef int intfast_t;
typedef unsigned int uintfast_t;




typedef long long int64_t;
typedef unsigned long long uint64_t;





typedef int64_t intmax_t;
typedef uint64_t uintmax_t;
# 116 "/usr/include/sys/_inttypes.h" 3 4
typedef long intptr_t;
typedef unsigned long uintptr_t;
# 127 "/usr/include/sys/_inttypes.h" 3 4
typedef char int_least8_t;


typedef unsigned char uint_least8_t;


typedef int int_fast8_t;


typedef unsigned int uint_fast8_t;


typedef short int_least16_t;


typedef unsigned short uint_least16_t;


typedef int int_fast16_t;


typedef unsigned int uint_fast16_t;


typedef int int_least32_t;


typedef unsigned int uint_least32_t;


typedef int int_fast32_t;


typedef unsigned int uint_fast32_t;





typedef int64_t int_least64_t;


typedef int64_t int_fast64_t;


typedef uint64_t uint_least64_t;


typedef uint64_t uint_fast64_t;
# 192 "/usr/include/sys/_inttypes.h" 3 4
typedef uint32_t ptr32_t;

typedef uint64_t ptr64_t;
# 42 "/usr/include/sys/types.h" 2 3 4
# 54 "/usr/include/sys/types.h" 3 4
                typedef int mqd_t;





     typedef int32_t dev_t;





        typedef uint32_t ino32_t;






       typedef uint64_t ino64_t;
# 88 "/usr/include/sys/types.h" 3 4
         typedef unsigned long ino_t;





     typedef uint16_t mode_t;




     typedef uint16_t nlink_t;




    typedef int32_t fpos32_t;





       typedef int64_t fpos64_t;









       typedef long fpos_t;






     typedef uint32_t fsblkcnt32_t;





       typedef uint64_t fsblkcnt64_t;
# 143 "/usr/include/sys/types.h" 3 4
       typedef unsigned long fsblkcnt_t;





     typedef int32_t off32_t;




     typedef int32_t sbsize32_t;
     typedef uint32_t bsize32_t;





        typedef int64_t off64_t;






        typedef int64_t sbsize64_t;
        typedef uint64_t bsize64_t;
# 179 "/usr/include/sys/types.h" 3 4
        typedef long off_t;
# 190 "/usr/include/sys/types.h" 3 4
        typedef long sbsize_t;
        typedef unsigned long bsize_t;





     typedef uint32_t fsfilcnt32_t;





       typedef uint64_t fsfilcnt64_t;
# 213 "/usr/include/sys/types.h" 3 4
        typedef unsigned long fsfilcnt_t;





     typedef int32_t blkcnt32_t;





       typedef int64_t blkcnt64_t;
# 235 "/usr/include/sys/types.h" 3 4
        typedef long blkcnt_t;





     typedef int32_t pid_t;




     typedef int32_t lwpid_t;




     typedef int32_t gid_t;




     typedef int32_t uid_t;




     typedef int32_t tid_t;




        typedef long ssize_t;




     typedef uint16_t __site_t;




     typedef uint16_t __cnode_t;












                typedef long time_t;







        typedef unsigned long size_t;






     typedef uint32_t clock_t;







      typedef int32_t key_t;


   typedef unsigned short __ushort;

   typedef int32_t __daddr_t;
   typedef char *__caddr_t;
   typedef int32_t __swblk_t;






     typedef __caddr_t caddr_t;







     typedef int32_t id_t;




     typedef uint32_t useconds_t;






      typedef uint32_t rlim32_t;





        typedef uint64_t rlim64_t;
# 364 "/usr/include/sys/types.h" 3 4
       typedef unsigned long rlim_t;




   typedef __site_t site_t;



   typedef unsigned char u_char;
   typedef unsigned short u_short;
   typedef unsigned int u_int;
   typedef unsigned long u_long;
   typedef unsigned int uint;
   typedef unsigned short ushort;
   typedef unsigned char ubit8;
   typedef unsigned short ubit16;
   typedef uint32_t ubit32;
   typedef char sbit8;
   typedef short sbit16;
   typedef int32_t sbit32;

   typedef __swblk_t swblk_t;
   typedef __daddr_t daddr_t;
   typedef __cnode_t cnode_t;


# 1 "/usr/include/machine/vmtypes.h" 1 3 4
# 45 "/usr/include/machine/vmtypes.h" 3 4
   typedef uintptr_t paddr_t;
# 57 "/usr/include/machine/vmtypes.h" 3 4
   typedef intptr_t page_t;
   typedef int32_t pgcnt_t;
   typedef uint32_t upgcnt_t;



   typedef uint32_t physpfn_t;
   typedef uintptr_t iophyspfn_t;
   typedef uintptr_t pgaddr_t;

   typedef uint32_t space_t;
   typedef uint32_t prot_t;
# 392 "/usr/include/sys/types.h" 2 3 4



   typedef unsigned long ulong_t;


   typedef int16_t cnt_t;
   typedef uint32_t cdno_t;
   typedef uint16_t use_t;

   typedef struct _physadr { intptr_t r[1]; } *physadr;
   typedef struct _quad { long val[2]; } quad;

   typedef int spu_t;
   typedef int ldom_t;





     typedef short cpu_t;




typedef struct lkinfo {
       char *lk_name;
       int lk_flags;
       long lk_pad[2];
} lkinfo_t;

typedef unsigned long pl_t;



      typedef int32_t aid_t;
# 436 "/usr/include/sys/types.h" 3 4
   typedef pid_t sid_t;
# 448 "/usr/include/sys/types.h" 3 4
# 1 "/usr/include/sys/_fd_macros.h" 1 3 4
# 82 "/usr/include/sys/_fd_macros.h" 3 4
typedef int32_t __fd_mask;
# 91 "/usr/include/sys/_fd_macros.h" 3 4
   typedef struct fd_set {
     long fds_bits[(((2048)+(((sizeof(long) * 8))-1))/((sizeof(long) * 8)))];
     } fd_set;
# 449 "/usr/include/sys/types.h" 2 3 4
# 457 "/usr/include/sys/types.h" 3 4
     typedef __fd_mask fd_mask;
# 511 "/usr/include/sys/types.h" 3 4
        typedef int32_t dir_off_t;
# 11 "/usr/include/stdio.h" 2 3 4
# 37 "/usr/include/stdio.h" 3 4

   typedef struct {
        int __cnt;
        unsigned char *__ptr;
        unsigned char *__base;
        unsigned short __flag;
        unsigned char __fileL;
        unsigned char __fileH;
   } FILE;


   typedef struct {
        int __cnt;
        unsigned char *__ptr;
        unsigned char *__base;
        unsigned short __flag;
        unsigned char __fileL;
        unsigned char __fileH;
        unsigned char *__bufendp;
        unsigned char *__newbase;
        unsigned char __smbuf[8 +2*4];



        void *__unused;





        int __filler1;
        char __filler2[8];

   } _FILEX;
# 97 "/usr/include/stdio.h" 3 4
# 1 "/usr/include/sys/_null.h" 1 3 4
# 98 "/usr/include/stdio.h" 2 3 4



# 1 "/usr/include/sys/_size_t.h" 1 3 4
# 102 "/usr/include/stdio.h" 2 3 4
# 133 "/usr/include/stdio.h" 3 4
     typedef double *__va_list;
# 172 "/usr/include/stdio.h" 3 4
   extern FILE __iob[];
# 223 "/usr/include/stdio.h" 3 4

     extern int remove(const char *);

     extern int rename(const char *, const char *);

     extern char *tmpnam(char *);
     extern int fclose(FILE *);
     extern int fflush(FILE *);
     extern void setbuf(FILE *, char *);
     extern int setvbuf(FILE *, char *, int, size_t);
     extern int fprintf(FILE *, const char *, ...);
     extern int fscanf(FILE *, const char *,...);
     extern int printf(const char *,...);
     extern int scanf(const char *,...);
     extern int sprintf(char *, const char *,...);
     extern int sscanf(const char *, const char *,...);
     extern int fgetc(FILE *);
     extern char *fgets(char *, int, FILE *);
     extern int fputc(int, FILE *);
     extern int fputs(const char *, FILE *);
     extern int getc(FILE *);
     extern int getchar(void);
     extern char *gets(char *);
     extern int putc(int, FILE *);
     extern int putchar(int);
     extern int puts(const char *);
     extern int ungetc(int, FILE *);

     extern FILE *tmpfile(void);
     extern int fgetpos(FILE *, fpos_t *);
     extern int fsetpos(FILE *, const fpos_t *);
     extern FILE *fopen(const char *, const char *);
     extern FILE *freopen(const char *, const char *, FILE *);
# 265 "/usr/include/stdio.h" 3 4
     extern int fseek(FILE *, long int, int);
     extern long int ftell(FILE *);
     extern void rewind(FILE *);
     extern void clearerr(FILE *);
     extern int feof(FILE *);
     extern int ferror(FILE *);
     extern void perror(const char *);

# 361 "/usr/include/stdio.h" 3 4

       extern size_t fread(void *, size_t, size_t, FILE *);
       extern size_t fwrite(const void *, size_t, size_t, FILE *);

# 386 "/usr/include/stdio.h" 3 4
     extern int __flsbuf(unsigned char, FILE *);
     extern int __filbuf(FILE *);
# 464 "/usr/include/stdio.h" 3 4
     extern char *ctermid(char *);
     extern int fileno(FILE *);
     extern FILE *fdopen(int, const char *);
# 507 "/usr/include/stdio.h" 3 4
     extern char *optarg;
     extern int opterr;
     extern int optind;
     extern int optopt;
# 520 "/usr/include/stdio.h" 3 4
       extern int getopt(int, char * const [], const char *);
       extern char *cuserid(char *);
# 540 "/usr/include/stdio.h" 3 4
     extern int getw(FILE *);
     extern int putw(int, FILE *);
     extern int pclose(FILE *);
     extern FILE *popen(const char *, const char *);
     extern char *tempnam(const char *, const char *);
# 567 "/usr/include/stdio.h" 3 4


     extern int vprintf(const char *, va_list);
     extern int vfprintf(FILE *, const char *, va_list);
     extern int vsprintf(char *, const char *, va_list);






# 593 "/usr/include/stdio.h" 3 4
     extern int snprintf(char *, size_t, const char *,...);
     extern int vsnprintf(char *, size_t, const char *, va_list);
     extern int vscanf(const char *, __va_list);
     extern int vfscanf(FILE *, const char *, __va_list);
     extern int vsscanf(char *, const char *, __va_list);
     extern void flockfile(FILE *);
     extern int ftrylockfile(FILE *);
     extern void funlockfile(FILE *);
# 647 "/usr/include/stdio.h" 3 4
   extern unsigned char *__bufendtab[];
# 11 "rmbs_error.c" 2
# 1 "rmbs_malloc.h" 1
# 15 "rmbs_malloc.h"
# 1 "/usr/include/malloc.h" 1 3 4
# 35 "/usr/include/malloc.h" 3 4
   struct mallinfo {
        int32_t arena;
        int32_t ordblks;
        int32_t smblks;
        int32_t hblks;
        int32_t hblkhd;
        int32_t usmblks;
        int32_t fsmblks;
        int32_t uordblks;
        int32_t fordblks;
        int32_t keepcost;
   };




   void free(void *);

   int mallopt(int, int);
   struct mallinfo mallinfo(void);
   void memorymap(int);
# 69 "/usr/include/malloc.h" 3 4

     void *calloc(size_t, size_t);
     void *malloc(size_t);
     void *realloc(void *, size_t);

# 16 "rmbs_malloc.h" 2
# 1 "/usr/include/stdlib.h" 1 3 4
# 26 "/usr/include/stdlib.h" 3 4
       extern int abs(int);
# 47 "/usr/include/stdlib.h" 3 4
   extern int __nl_char_size;
# 60 "/usr/include/stdlib.h" 3 4

   typedef struct {
        int quot;
        int rem;
   } div_t;
   typedef struct {
        long int quot;
        long int rem;
   } ldiv_t;







# 1 "/usr/include/sys/_wchar_t.h" 1 3 4
# 36 "/usr/include/sys/_wchar_t.h" 3 4
                        typedef unsigned int wchar_t;
# 77 "/usr/include/stdlib.h" 2 3 4
# 103 "/usr/include/stdlib.h" 3 4



       extern double atof(const char *);

     extern int atoi(const char *);
     extern long int atol(const char *);
     extern double strtod(const char *, char **);
     extern long int strtol(const char *, char **, int);
     extern unsigned long int strtoul(const char *, char **, int);
     extern int rand(void);
     extern void srand(unsigned int);
     extern int atexit(void (*) (void));
     extern void exit(int);
     extern char *getenv(const char *);
     extern int system(const char *);
     extern div_t div(int, int);
     extern ldiv_t ldiv(long int, long int);
     extern long int labs(long int);
     extern int mblen(const char *, size_t);
     extern int mbtowc(wchar_t *, const char *, size_t);
     extern int wctomb(char *, wchar_t);
     extern size_t mbstowcs(wchar_t *, const char *, size_t);
     extern size_t wcstombs(char *, const wchar_t *, size_t);
     extern void free(void *);
     extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *));

# 168 "/usr/include/stdlib.h" 3 4

       extern void abort(void);
       extern void *bsearch(const void *, const void *, size_t, size_t, int (*)
(const void *, const void *));
       extern void *calloc(size_t, size_t);
       extern void *malloc(size_t);
       extern void *realloc(void *, size_t);

# 229 "/usr/include/stdlib.h" 3 4
     extern void setkey(const char *);
     extern void lcong48( unsigned short [] );
# 250 "/usr/include/stdlib.h" 3 4
     extern double drand48(void);
     extern double erand48(unsigned short []);
     extern long jrand48(unsigned short []);
     extern long lrand48(void);
     extern long mrand48(void);
     extern long nrand48(unsigned short []);
     extern void srand48(long);
     extern unsigned short *seed48(unsigned short []);
     extern int putenv(const char *);
# 281 "/usr/include/stdlib.h" 3 4
       extern int clearenv(void);
       extern int getopt(int, char * const [], const char *);
       extern char *getpass(const char *);
       extern void *memalign(size_t, size_t);







     extern char *optarg;
     extern int optind;
     extern int opterr;



# 1 "/usr/include/sys/wait.h" 1 3 4
# 74 "/usr/include/sys/wait.h" 3 4
       extern pid_t wait(int *);
       extern pid_t waitpid(pid_t, int *, int);
# 91 "/usr/include/sys/wait.h" 3 4
# 1 "/usr/include/sys/resource.h" 1 3 4
# 50 "/usr/include/sys/resource.h" 3 4
# 1 "/usr/include/sys/time.h" 1 3 4
# 28 "/usr/include/sys/time.h" 3 4
# 1 "/usr/include/sys/sigevent.h" 1 3 4
# 47 "/usr/include/sys/sigevent.h" 3 4
typedef union sigval {



      struct {



          int __svi_int;
      } __svi_int_s;
      void * __sival_ptr;
   } sigval_t;






typedef int pthread_attr_t;




typedef struct sigevent {



      int __sigev_notify;
      int __sigev_signo;
      sigval_t __sigev_value;




      void (*__sigev_notify_function)(sigval_t);





      pthread_attr_t *__sigev_notify_attributes;







      int __sigev_reserved[8];

   } sigevent_t;


  enum __sigev_types {
          __SIGEV_NONE = 1,
          __SIGEV_SIGNAL

          ,__SIGEV_THREAD

  };
# 29 "/usr/include/sys/time.h" 2 3 4
# 100 "/usr/include/sys/time.h" 3 4

   struct tm {
      int tm_sec;
      int tm_min;
      int tm_hour;
      int tm_mday;
      int tm_mon;
      int tm_year;
      int tm_wday;
      int tm_yday;
      int tm_isdst;
   };

# 121 "/usr/include/sys/time.h" 3 4
  struct timespec {
        time_t tv_sec;
        long tv_nsec;
};
typedef struct timespec timestruc_t;





struct itimerspec {
        struct timespec it_interval;
        struct timespec it_value;
};


typedef enum __clockid_t {
        CLOCK_INVALID = 0,
        CLOCK_REALTIME = 1,
        CLOCK_VIRTUAL = 2,
        CLOCK_PROFILE = 4,
        RTTIMER0 = 8,
        RTTIMER1 = 16
} clockid_t;



        typedef unsigned long timer_t;
# 163 "/usr/include/sys/time.h" 3 4
        struct timeval {

                time_t tv_sec;



                long tv_usec;
        };



   struct itimerval {
        struct timeval it_interval;
        struct timeval it_value;
   };






   struct timezone {
        int tz_minuteswest;
        int tz_dsttime;
   };



   typedef struct __cycles {
        uint32_t hi;
        uint32_t lo;
   } cycles_t;
# 217 "/usr/include/sys/time.h" 3 4



     extern double difftime(time_t, time_t);




     extern time_t mktime(struct tm *);




     extern time_t time(time_t *);



     extern char *asctime(const struct tm *);




     extern char *ctime(const time_t *);




     extern struct tm *gmtime(const time_t *);




     extern struct tm *localtime(const time_t *);




     extern size_t strftime(char *, size_t, const char *, const struct tm *);


# 392 "/usr/include/sys/time.h" 3 4

       extern clock_t clock(void);

# 411 "/usr/include/sys/time.h" 3 4
     extern void tzset(void);
# 420 "/usr/include/sys/time.h" 3 4
   extern char *tzname[2];






     extern int clock_settime(clockid_t, const struct timespec *);
     extern int clock_gettime(clockid_t, struct timespec *);
     extern int clock_getres(clockid_t, struct timespec *);
     extern int timer_create(clockid_t, struct sigevent *, timer_t *);
     extern int timer_delete(timer_t);
     extern int timer_settime(timer_t, int, const struct itimerspec *,
                              struct itimerspec *);
     extern int timer_gettime(timer_t, struct itimerspec *);
     extern int timer_getoverrun(timer_t);
     extern int nanosleep(const struct timespec *, struct timespec *);
# 461 "/usr/include/sys/time.h" 3 4
         extern char *strptime(const char *, const char *, struct tm *);
# 472 "/usr/include/sys/time.h" 3 4
       extern long timezone;




       extern int daylight;
# 500 "/usr/include/sys/time.h" 3 4
     extern int getitimer(int, struct itimerval *);
     extern int setitimer(int, const struct itimerval *, struct itimerval *);
     extern int utimes(const char *, const struct timeval[2] );
     extern int gettimeofday(struct timeval *, void *);



       extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
# 530 "/usr/include/sys/time.h" 3 4
     extern int adjtime(const struct timeval *, struct timeval *);



       extern struct tm *getdate(const char *);
# 544 "/usr/include/sys/time.h" 3 4
     extern int settimeofday(const struct timeval *, const struct timezone *);
     extern int stime(const time_t *);
     extern void profil(const void *, size_t, size_t, int);
# 574 "/usr/include/sys/time.h" 3 4
       extern int getdate_err;
# 625 "/usr/include/sys/time.h" 3 4
    struct ki_timeval {
            uint32_t pad1;
            uint32_t pad2;
    };
# 645 "/usr/include/sys/time.h" 3 4
typedef uint64_t kt_t;
# 51 "/usr/include/sys/resource.h" 2 3 4
# 59 "/usr/include/sys/resource.h" 3 4
# 1 "/usr/include/sys/_rlimit_body.h" 1 3 4
# 43 "/usr/include/sys/_rlimit_body.h" 3 4
struct rlimit {
        rlim_t rlim_cur;
        rlim_t rlim_max;
};
# 60 "/usr/include/sys/resource.h" 2 3 4
# 105 "/usr/include/sys/resource.h" 3 4
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_ioch;
        long ru_msgsnd;
        long ru_msgrcv;
        long ru_nsignals;
        long ru_nvcsw;
        long ru_nivcsw;

};
# 149 "/usr/include/sys/resource.h" 3 4
   extern int getpriority (int, id_t);
   extern int getrusage (int, struct rusage *);
   extern int setpriority (int, id_t, int);

   extern int getrlimit (int, struct rlimit *);
   extern int setrlimit (int, const struct rlimit *);
# 92 "/usr/include/sys/wait.h" 2 3 4
# 109 "/usr/include/sys/wait.h" 3 4
           extern pid_t wait3(int *, int, struct rusage *);
# 126 "/usr/include/sys/wait.h" 3 4
# 1 "/usr/include/sys/signal.h" 1 3 4
# 42 "/usr/include/sys/signal.h" 3 4
# 1 "/usr/include/sys/siginfo.h" 1 3 4
# 45 "/usr/include/sys/siginfo.h" 3 4
enum __si_codes {
        SI_QUEUE = -2,
        SI_USER = -1,
        SI_TIMER = 1,
        SI_ASYNCIO= 2,
        SI_MESGQ = 3
};
# 60 "/usr/include/sys/siginfo.h" 3 4
typedef struct __siginfo {



        int si_signo;
        int si_code;
        int si_errno;
        sigval_t si_value;
        union {
                struct {
                        pid_t __pid;
                        union {
                                struct {
                                        uid_t __uid;
                                } __kill;
                                struct {
                                        int __status;
                                } __SIGCLD;
                        } __pdata;
                } __proc;
                struct {
                        void *__addr;
                } __fault;
                struct {
                        int __fd;
                        long __band;
                } __file;
                struct {
                        void *__addr;
                        void *__lockpage;
                        long __dev_id;
                } __gfault;
        } __data;

        long __pad[9];
} siginfo_t;
# 43 "/usr/include/sys/signal.h" 2 3 4
# 1 "/usr/include/sys/newsig.h" 1 3 4
# 49 "/usr/include/sys/newsig.h" 3 4
     typedef struct __sigset_t {
          unsigned int sigset[8];
     } sigset_t;
# 63 "/usr/include/sys/newsig.h" 3 4
# 1 "/usr/include/machine/save_state.h" 1 3 4
# 213 "/usr/include/machine/save_state.h" 3 4
typedef struct __fp_dbl_block {

        double ss_fp0;
        double ss_fp1;
        double ss_fp2;
        double ss_fp3;
        double ss_fp4;
        double ss_fp5;
        double ss_fp6;
        double ss_fp7;
        double ss_fp8;
        double ss_fp9;
        double ss_fp10;
        double ss_fp11;
        double ss_fp12;
        double ss_fp13;
        double ss_fp14;
        double ss_fp15;
        double ss_fp16;
        double ss_fp17;
        double ss_fp18;
        double ss_fp19;
        double ss_fp20;
        double ss_fp21;
        double ss_fp22;
        double ss_fp23;
        double ss_fp24;
        double ss_fp25;
        double ss_fp26;
        double ss_fp27;
        double ss_fp28;
        double ss_fp29;
        double ss_fp30;
        double ss_fp31;
} fp_dbl_block_t;




typedef struct __fp_int_block {

        int ss_fpstat;
        int ss_fpexcept1;
        int ss_fpexcept2;
        int ss_fpexcept3;
        int ss_fpexcept4;
        int ss_fpexcept5;
        int ss_fpexcept6;
        int ss_fpexcept7;
        int ss_fp4_hi;
        int ss_fp4_lo;
        int ss_fp5_hi;
        int ss_fp5_lo;
        int ss_fp6_hi;
        int ss_fp6_lo;
        int ss_fp7_hi;
        int ss_fp7_lo;
        int ss_fp8_hi;
        int ss_fp8_lo;
        int ss_fp9_hi;
        int ss_fp9_lo;
        int ss_fp10_hi;
        int ss_fp10_lo;
        int ss_fp11_hi;
        int ss_fp11_lo;
        int ss_fp12_hi;
        int ss_fp12_lo;
        int ss_fp13_hi;
        int ss_fp13_lo;
        int ss_fp14_hi;
        int ss_fp14_lo;
        int ss_fp15_hi;
        int ss_fp15_lo;
        int ss_fp16_hi;
        int ss_fp16_lo;
        int ss_fp17_hi;
        int ss_fp17_lo;
        int ss_fp18_hi;
        int ss_fp18_lo;
        int ss_fp19_hi;
        int ss_fp19_lo;
        int ss_fp20_hi;
        int ss_fp20_lo;
        int ss_fp21_hi;
        int ss_fp21_lo;
        int ss_fp22_hi;
        int ss_fp22_lo;
        int ss_fp23_hi;
        int ss_fp23_lo;
        int ss_fp24_hi;
        int ss_fp24_lo;
        int ss_fp25_hi;
        int ss_fp25_lo;
        int ss_fp26_hi;
        int ss_fp26_lo;
        int ss_fp27_hi;
        int ss_fp27_lo;
        int ss_fp28_hi;
        int ss_fp28_lo;
        int ss_fp29_hi;
        int ss_fp29_lo;
        int ss_fp30_hi;
        int ss_fp30_lo;
        int ss_fp31_hi;
        int ss_fp31_lo;
} fp_int_block_t;
# 379 "/usr/include/machine/save_state.h" 3 4
typedef struct __reg64 {

        int64_t ss_reserved;
        int64_t ss_gr1;
        int64_t ss_rp;
        int64_t ss_gr3;
        int64_t ss_gr4;
        int64_t ss_gr5;
        int64_t ss_gr6;
        int64_t ss_gr7;
        int64_t ss_gr8;
        int64_t ss_gr9;
        int64_t ss_gr10;
        int64_t ss_gr11;
        int64_t ss_gr12;
        int64_t ss_gr13;
        int64_t ss_gr14;
        int64_t ss_gr15;
        int64_t ss_gr16;
        int64_t ss_gr17;
        int64_t ss_gr18;
        int64_t ss_gr19;
        int64_t ss_gr20;
        int64_t ss_gr21;
        int64_t ss_gr22;
        int64_t ss_arg3;
        int64_t ss_arg2;
        int64_t ss_arg1;
        int64_t ss_arg0;
        uint64_t ss_dp;
        uint64_t ss_ret0;
        uint64_t ss_ret1;
        uint64_t ss_sp;
        uint64_t ss_gr31;
        uint64_t ss_cr11;
        uint64_t ss_pcoq_head;
        uint64_t ss_pcsq_head;
        uint64_t ss_pcoq_tail;
        uint64_t ss_pcsq_tail;
        uint64_t ss_cr15;
        uint64_t ss_cr19;
        uint64_t ss_cr20;
        uint64_t ss_cr21;
        uint64_t ss_cr22;
        uint64_t ss_cpustate;
        uint64_t ss_sr4;
        uint64_t ss_sr0;
        uint64_t ss_sr1;
        uint64_t ss_sr2;
        uint64_t ss_sr3;
        uint64_t ss_sr5;
        uint64_t ss_sr6;
        uint64_t ss_sr7;
        uint64_t ss_cr0;
        uint64_t ss_cr8;
        uint64_t ss_cr9;
        uint64_t ss_cr10;
        uint64_t ss_cr12;
        uint64_t ss_cr13;
        uint64_t ss_cr24;
        uint64_t ss_cr25;
        uint64_t ss_cr26;
        uint64_t ss_cr27;
        uint64_t ss_reserved2[2];
        uint32_t ss_oldcksum;
        uint32_t ss_newcksum;



} __reg64_t;





typedef struct __reg32 {
        uint32_t ss_reserved[2];
        uint32_t ss_gr1_hi;
        uint32_t ss_gr1_lo;
        uint32_t ss_rp_hi;
        uint32_t ss_rp_lo;
        uint32_t ss_gr3_hi;
        uint32_t ss_gr3_lo;
        uint32_t ss_gr4_hi;
        uint32_t ss_gr4_lo;
        uint32_t ss_gr5_hi;
        uint32_t ss_gr5_lo;
        uint32_t ss_gr6_hi;
        uint32_t ss_gr6_lo;
        uint32_t ss_gr7_hi;
        uint32_t ss_gr7_lo;
        uint32_t ss_gr8_hi;
        uint32_t ss_gr8_lo;
        uint32_t ss_gr9_hi;
        uint32_t ss_gr9_lo;
        uint32_t ss_gr10_hi;
        uint32_t ss_gr10_lo;
        uint32_t ss_gr11_hi;
        uint32_t ss_gr11_lo;
        uint32_t ss_gr12_hi;
        uint32_t ss_gr12_lo;
        uint32_t ss_gr13_hi;
        uint32_t ss_gr13_lo;
        uint32_t ss_gr14_hi;
        uint32_t ss_gr14_lo;
        uint32_t ss_gr15_hi;
        uint32_t ss_gr15_lo;
        uint32_t ss_gr16_hi;
        uint32_t ss_gr16_lo;
        uint32_t ss_gr17_hi;
        uint32_t ss_gr17_lo;
        uint32_t ss_gr18_hi;
        uint32_t ss_gr18_lo;
        uint32_t ss_gr19_hi;
        uint32_t ss_gr19_lo;
        uint32_t ss_gr20_hi;
        uint32_t ss_gr20_lo;
        uint32_t ss_gr21_hi;
        uint32_t ss_gr21_lo;
        uint32_t ss_gr22_hi;
        uint32_t ss_gr22_lo;
        uint32_t ss_arg3_hi;
        uint32_t ss_arg3_lo;
        uint32_t ss_arg2_hi;
        uint32_t ss_arg2_lo;
        uint32_t ss_arg1_hi;
        uint32_t ss_arg1_lo;
        uint32_t ss_arg0_hi;
        uint32_t ss_arg0_lo;
        unsigned int ss_dp_hi;
        unsigned int ss_dp_lo;
        unsigned int ss_ret0_hi;
        unsigned int ss_ret0_lo;
        unsigned int ss_ret1_hi;
        unsigned int ss_ret1_lo;
        unsigned int ss_sp_hi;
        unsigned int ss_sp_lo;
        unsigned int ss_gr31_hi;
        unsigned int ss_gr31_lo;
        unsigned int ss_cr11_hi;
        unsigned int ss_cr11_lo;
        unsigned int ss_pcoq_head_hi;
        unsigned int ss_pcoq_head_lo;
        unsigned int ss_pcsq_head_hi;
        unsigned int ss_pcsq_head_lo;
        unsigned int ss_pcoq_tail_hi;
        unsigned int ss_pcoq_tail_lo;
        unsigned int ss_pcsq_tail_hi;
        unsigned int ss_pcsq_tail_lo;
        unsigned int ss_cr15_hi;
        unsigned int ss_cr15_lo;
        unsigned int ss_cr19_hi;
        unsigned int ss_cr19_lo;
        unsigned int ss_cr20_hi;
        unsigned int ss_cr20_lo;
        unsigned int ss_cr21_hi;
        unsigned int ss_cr21_lo;
        unsigned int ss_cr22_hi;
        unsigned int ss_cr22_lo;
        unsigned int ss_cpustate_hi;
        unsigned int ss_cpustate_lo;
        unsigned int ss_sr4_hi;
        unsigned int ss_sr4_lo;
        unsigned int ss_sr0_hi;
        unsigned int ss_sr0_lo;
        unsigned int ss_sr1_hi;
        unsigned int ss_sr1_lo;
        unsigned int ss_sr2_hi;
        unsigned int ss_sr2_lo;
        unsigned int ss_sr3_hi;
        unsigned int ss_sr3_lo;
        unsigned int ss_sr5_hi;
        unsigned int ss_sr5_lo;
        unsigned int ss_sr6_hi;
        unsigned int ss_sr6_lo;
        unsigned int ss_sr7_hi;
        unsigned int ss_sr7_lo;
        unsigned int ss_cr0_hi;
        unsigned int ss_cr0_lo;
        unsigned int ss_cr8_hi;
        unsigned int ss_cr8_lo;
        unsigned int ss_cr9_hi;
        unsigned int ss_cr9_lo;
        unsigned int ss_cr10_hi;
        unsigned int ss_cr10_lo;
        unsigned int ss_cr12_hi;
        unsigned int ss_cr12_lo;
        unsigned int ss_cr13_hi;
        unsigned int ss_cr13_lo;
        unsigned int ss_cr24_hi;
        unsigned int ss_cr24_lo;
        unsigned int ss_cr25_hi;
        unsigned int ss_cr25_lo;
        unsigned int ss_cr26_hi;
        unsigned int ss_cr26_lo;
        unsigned int ss_cr27_hi;
        unsigned int ss_cr27_lo;
        unsigned int ss_reserved2[4];
        unsigned int ss_oldcksum;
        unsigned int ss_newcksum;
} __reg32_t;




typedef struct __ss_narrow {

        int ss_gr1;
        int ss_rp;
        int ss_gr3;
        int ss_gr4;
        int ss_gr5;
        int ss_gr6;
        int ss_gr7;
        int ss_gr8;
        int ss_gr9;
        int ss_gr10;
        int ss_gr11;
        int ss_gr12;
        int ss_gr13;
        int ss_gr14;
        int ss_gr15;
        int ss_gr16;
        int ss_gr17;
        int ss_gr18;
        int ss_gr19;
        int ss_gr20;
        int ss_gr21;
        int ss_gr22;
        int ss_arg3;
        int ss_arg2;
        int ss_arg1;
        int ss_arg0;
        unsigned int ss_dp;
        unsigned int ss_ret0;
        unsigned int ss_ret1;
        unsigned int ss_sp;
        unsigned int ss_gr31;
        unsigned int ss_cr11;
        unsigned int ss_pcoq_head;
        unsigned int ss_pcsq_head;
        unsigned int ss_pcoq_tail;
        unsigned int ss_pcsq_tail;
        unsigned int ss_cr15;
        unsigned int ss_cr19;
        unsigned int ss_cr20;
        unsigned int ss_cr21;
        unsigned int ss_cr22;
        unsigned int ss_cpustate;
        unsigned int ss_sr4;
        unsigned int ss_sr0;
        unsigned int ss_sr1;
        unsigned int ss_sr2;
        unsigned int ss_sr3;
        unsigned int ss_sr5;
        unsigned int ss_sr6;
        unsigned int ss_sr7;
        unsigned int ss_cr0;
        unsigned int ss_cr8;
        unsigned int ss_cr9;
        unsigned int ss_cr10;
        unsigned int ss_cr12;
        unsigned int ss_cr13;
        unsigned int ss_cr24;
        unsigned int ss_cr25;
        unsigned int ss_cr26;
        unsigned int ss_cr27;
        unsigned int ss_mpsfu_low;
        unsigned int ss_mpsfu_ovflo;





} __ss_narrow_t;

typedef int ssflags_t;
# 664 "/usr/include/machine/save_state.h" 3 4
typedef struct __save_state {

        ssflags_t ss_flags;
        __ss_narrow_t ss_narrow;
        int ss_pad;
        union {

                fp_dbl_block_t fpdbl;
                fp_int_block_t fpint;




        } ss_fpblock;
        char ss_xor[4*32];
        union {
# 707 "/usr/include/machine/save_state.h" 3 4
                __reg64_t ss_64;
                __reg32_t ss_32;
        } ss_wide;
} save_state_t;
# 64 "/usr/include/sys/newsig.h" 2 3 4

   typedef struct __stack {
        void *ss_sp;
        int ss_flags;
        size_t ss_size;
   } stack_t;


typedef save_state_t mcontext_t;
# 81 "/usr/include/sys/newsig.h" 3 4
struct __sub_ctxt {
        struct __ucontext *__uc_link;



        sigset_t __uc_sigmask;


        stack_t __uc_stack;


};
typedef struct __sub_ctxt __sub_ctxt_t;



typedef struct __ucontext {
        mcontext_t uc_mcontext;
        int uc_spares[8];

        unsigned int uc_created_by_getcontext:1;
        unsigned int uc_reserved_flags:31;
        struct __sub_ctxt uc_subcontext;

} ucontext_t;
# 44 "/usr/include/sys/signal.h" 2 3 4
# 66 "/usr/include/sys/signal.h" 3 4

  typedef unsigned int sig_atomic_t;

# 79 "/usr/include/sys/signal.h" 3 4
   struct sigaction {
      union {



              void (*__sa_sigaction)(int, siginfo_t *, void *);







              void (*__sa_handler)(int);
      } __handler;

      sigset_t sa_mask;


      int sa_flags;
   };
# 108 "/usr/include/sys/signal.h" 3 4
typedef int pthread_t;
# 143 "/usr/include/sys/signal.h" 3 4
   struct sigstack {

        void *ss_sp;



        int ss_onstack;
   };
# 160 "/usr/include/sys/signal.h" 3 4
   struct sigvec {
      void (*sv_handler)(int);
      int sv_mask;
      int sv_flags;
   };
# 181 "/usr/include/sys/signal.h" 3 4

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

# 193 "/usr/include/sys/signal.h" 3 4
     extern int kill(pid_t, int);
     extern int sigemptyset(sigset_t *);
     extern int sigfillset(sigset_t *);
     extern int sigaddset(sigset_t *, int);
     extern int sigdelset(sigset_t *, int);
     extern int sigismember(const sigset_t *, int);
     extern int sigaction(int, const struct sigaction *, struct sigaction *);
     extern int sigprocmask(int, const sigset_t *, sigset_t *);
     extern int sigsuspend(const sigset_t *);
     extern int sigpending(sigset_t *);
# 219 "/usr/include/sys/signal.h" 3 4
     extern int sigwait(const sigset_t *set, int *sig);

     extern int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset);
     extern int pthread_kill(pthread_t thread, int sig);
# 235 "/usr/include/sys/signal.h" 3 4
     extern int sigwaitinfo(const sigset_t *set, siginfo_t *info);
     extern int sigtimedwait(const sigset_t *set, siginfo_t * info,
                             const struct timespec *timeout);
     extern int sigqueue(pid_t pid, int signo,
                         const union sigval value);
# 249 "/usr/include/sys/signal.h" 3 4
        extern void (*bsd_signal(int, void(*)(int)))(int);
        extern int killpg(pid_t, int);

        extern int sigstack(struct sigstack *, struct sigstack *);



        extern int sigaltstack(const stack_t *, stack_t *);
        extern int siginterrupt(int, int);
# 268 "/usr/include/sys/signal.h" 3 4
           extern void (*sigset(int, void (*)(int)))(int);
           extern int sighold(int);
           extern int sigrelse(int);
           extern int sigignore(int);
           extern int sigpause(int);
# 286 "/usr/include/sys/signal.h" 3 4
     extern long sigblock(long);
     extern long sigsetmask(long);
     extern int sigvector(int, const struct sigvec *, struct sigvec *);
     extern int (*ssignal(int, int (*) (int)))(int);



     extern ssize_t sigspace(ssize_t);
     extern int gsignal(int);
# 384 "/usr/include/sys/signal.h" 3 4
        extern long ___sysconf(int);
# 515 "/usr/include/sys/signal.h" 3 4
# 1 "/usr/include/machine/save_state.h" 1 3 4
# 516 "/usr/include/sys/signal.h" 2 3 4
# 545 "/usr/include/sys/signal.h" 3 4
# 1 "/usr/include/machine/frame.h" 1 3 4
# 68 "/usr/include/machine/frame.h" 3 4
typedef struct frame_marker {
        int fm_edp;
        int fm_esr4;
        int fm_erp;
        int fm_crp;
        int fm_sl;
        int fm_clup;
        int fm_ep;
        int fm_psp;
} frame_marker_t;
# 546 "/usr/include/sys/signal.h" 2 3 4
# 1 "/usr/include/sys/syscall.h" 1 3 4
# 53 "/usr/include/sys/syscall.h" 3 4
# 1 "/usr/include/sys/scall_define.h" 1 3 4
# 54 "/usr/include/sys/syscall.h" 2 3 4
# 67 "/usr/include/sys/syscall.h" 3 4
# 1 "/usr/include/machine/sys/syscall.h" 1 3 4
# 68 "/usr/include/sys/syscall.h" 2 3 4
# 547 "/usr/include/sys/signal.h" 2 3 4
# 558 "/usr/include/sys/signal.h" 3 4
       struct siglocal_misc {
                int sm_syscall;
                int sm_onstack;
                int sm_omask;
                char sm_syscall_action;
                char sm_eosys;
                unsigned short sm_error;
                long sm_rval1;
                long sm_rval2;
                long sm_arg[4];
       };
       typedef struct siglocal_misc siglocal_misc_t;

       struct siglocal {
                struct siglocal_misc sl_misc;
                save_state_t sl_ss;
       };
# 590 "/usr/include/sys/signal.h" 3 4
       struct siglocalx {
                struct siglocal_misc sl_misc;
                ucontext_t sl_uc;
                siginfo_t sl_si;
       };
# 610 "/usr/include/sys/signal.h" 3 4
        struct __xsi {
                struct __sub_ctxt sc;

                int __padding;



                siginfo_t si;
        };
        typedef struct __xsi __xsi_t;
# 628 "/usr/include/sys/signal.h" 3 4
# 1 "/usr/include/machine/sys/sigcontext.h" 1 3 4
# 45 "/usr/include/machine/sys/sigcontext.h" 3 4
       struct sigcontext {
                union {
                        struct siglocal sl;
                        struct siglocalx sx;
                } sc_ctxt;




                long sc_args[4];



                        struct frame_marker sc_sfm;

       };
# 629 "/usr/include/sys/signal.h" 2 3 4
# 127 "/usr/include/sys/wait.h" 2 3 4
# 161 "/usr/include/sys/wait.h" 3 4
typedef enum {
        P_PID,
        P_PGID,
        P_SID,
        P_UID,
        P_GID,
        P_CID,
        P_ALL,
        P_LWPID
} idtype_t;
# 180 "/usr/include/sys/wait.h" 3 4
        extern int waitid(idtype_t, id_t, siginfo_t *, int);
# 197 "/usr/include/sys/wait.h" 3 4
   union wait {
        int w_status;



        struct {
                unsigned short w_pad;
                unsigned int w_Retcode:8;
                unsigned int w_Coredump:1;
                unsigned int w_Termsig:7;
        } w_T;





        struct {
                unsigned short w_pad;
                unsigned int w_Stopsig:8;
                unsigned int w_Stopval:8;
        } w_S;
   };
# 299 "/usr/include/stdlib.h" 2 3 4
# 311 "/usr/include/stdlib.h" 3 4
         extern int mkstemp(char *);
         extern char *mktemp(char *);
         extern int ttyslot(void);
# 335 "/usr/include/stdlib.h" 3 4
     extern long a64l(const char *);
     extern char *l64a(long);


      extern char *fcvt(double, int, int *, int *);
      extern char *ecvt(double, int, int *, int *);


    extern char *gcvt(double, int, char *);
    extern int getsubopt(char **, char * const *, char **);
    extern int grantpt(int);
    extern char *ptsname(int);
    extern char *realpath(const char *, char *);
    extern int unlockpt(int);
    extern void *valloc(size_t);
    extern char *initstate(unsigned int, char *, size_t);
    extern char *setstate(const char *);
    extern void srandom(unsigned int);
        extern long random(void);
# 416 "/usr/include/stdlib.h" 3 4
     typedef struct {
       uint32_t word1, word2, word3, word4;
     } long_double;
# 430 "/usr/include/stdlib.h" 3 4
# 1 "/usr/include/pwd.h" 1 3 4
# 25 "/usr/include/pwd.h" 3 4
   struct passwd {
        char *pw_name;
        char *pw_passwd;
        uid_t pw_uid;
        gid_t pw_gid;
        char *pw_age;
        char *pw_comment;
        char *pw_gecos;
        char *pw_dir;
        char *pw_shell;
        int32_t pw_audid;
        int pw_audflg;
   };
# 58 "/usr/include/pwd.h" 3 4
     extern struct passwd *getpwuid(uid_t);
     extern struct passwd *getpwnam(const char *);
# 89 "/usr/include/pwd.h" 3 4
     extern void endpwent(void);
     extern struct passwd *getpwent(void);
     extern void setpwent(void);
# 100 "/usr/include/pwd.h" 3 4
   struct s_passwd {
       char *pw_name;
       char *pw_passwd;
       char *pw_age;
       int32_t pw_audid;
       int pw_audflg;
   };
# 120 "/usr/include/pwd.h" 3 4
         extern int putpwent(const struct passwd *, FILE *);
     extern struct passwd *fgetpwent(FILE *);
     extern struct s_passwd *getspwent(void);
     extern struct s_passwd *getspwuid(uid_t);
     extern struct s_passwd *getspwaid(int32_t);
     extern struct s_passwd *getspwnam(char *);
     extern struct s_passwd *fgetspwent(FILE *);
     extern void setspwent(void);
     extern void endspwent(void);
# 431 "/usr/include/stdlib.h" 2 3 4



# 1 "/usr/include/errno.h" 1 3 4
# 28 "/usr/include/errno.h" 3 4
        extern int errno;

# 1 "/usr/include/sys/errno.h" 1 3 4
# 48 "/usr/include/sys/errno.h" 3 4
         extern int errno;
# 31 "/usr/include/errno.h" 2 3 4
# 435 "/usr/include/stdlib.h" 2 3 4


     extern char *_ldecvt(long_double, int, int *, int *);
     extern char *_ldfcvt(long_double, int, int *, int *);
     extern char *_ldgcvt(long_double, int, char *);
     extern int getpw(int, char *);
     extern void l3tol(long *, const char *, int);
     extern void ltol3(char *, const long *, int);
     extern char *ltostr(long, int);
     extern char *ultostr(unsigned long, int);
     extern char *ltoa(long);
     extern char *ultoa(unsigned long);
     extern void memorymap(int);
     extern struct mallinfo mallinfo(void);
     extern int mallopt(int, int);
     extern long_double strtold(const char *, char **);
# 17 "rmbs_malloc.h" 2
# 45 "rmbs_malloc.h"
void *rmbs_malloc(size_t);
void *rmbs_calloc(size_t, size_t);
void rmbs_free(void *);
void *rmbs_realloc(void *, size_t);
char *rmbs_strdup(const char *s1);
# 12 "rmbs_error.c" 2




typedef struct _filelist_struct {
  FILE *fp;
  struct _filelist_struct *next;
} filelist_struct, *filelist;





static filelist rmbs_error_stderr_list = 0L;
static filelist rmbs_error_stdout_list = 0L;


int rmbs_error(int errcode, char *fmt, ...)
{
  va_list args;
  filelist fl = rmbs_error_stderr_list;

  __builtin_va_start (args,&fmt);


  vfprintf((&__iob[2]), "RMBS_ERROR: ", 0);
  vfprintf((&__iob[2]), fmt, args);


  while (fl != 0L) {
    vfprintf(fl->fp, "RMBS_ERROR: ", 0);
    vfprintf(fl->fp, fmt, args);
    fl = fl -> next;
  }

  exit(-1);
}


int rmbs_warn(int errcode, char *fmt, ...)
{
  va_list args;
  filelist fl = rmbs_error_stderr_list;

  __builtin_va_start (args,&fmt);


  vfprintf((&__iob[2]), "RMBS_WARNING: ", 0);
  vfprintf((&__iob[2]), fmt, args);


  while (fl != 0L) {
    vfprintf(fl->fp, "RMBS_WARNING: ", 0);
    vfprintf(fl->fp, fmt, args);
    fl = fl -> next;
  }

  return 0;
}

int rmbs_printf(int errcode, char *fmt, ...)
{
  va_list args;
  filelist fl = rmbs_error_stdout_list;

  __builtin_va_start (args,&fmt);

  vprintf(fmt, args);


  while (fl != 0L) {
    vfprintf(fl->fp, fmt, args);
    fl = fl -> next;
  }

  return 0;
}


void rmbs_stderr_push(FILE *fp)
{
  filelist newf = rmbs_malloc(sizeof(filelist_struct));

  newf -> fp = fp;
  newf -> next = rmbs_error_stderr_list;
  rmbs_error_stderr_list = newf;
}

void rmbs_stderr_pop()
{
  filelist oldf = rmbs_error_stderr_list;
  rmbs_error_stderr_list = oldf -> next;
  rmbs_free(oldf);
}

void rmbs_stdout_push(FILE *fp)
{
  filelist newf = rmbs_malloc(sizeof(filelist_struct));

  newf -> fp = fp;
  newf -> next = rmbs_error_stdout_list;
  rmbs_error_stdout_list = newf;
}

void rmbs_stdout_pop()
{
  filelist oldf = rmbs_error_stdout_list;
  rmbs_error_stdout_list = oldf -> next;
  rmbs_free(oldf);
}

-- 
           Summary: hpux 11.i gcc3.3 compiler errors
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: swarner at rambus dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/14286] hpux 11.i gcc3.3 compiler errors
  2004-02-25  3:26 [Bug c/14286] New: hpux 11.i gcc3.3 compiler errors swarner at rambus dot com
@ 2004-02-25  4:46 ` pinskia at gcc dot gnu dot org
  2004-02-25  8:17 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-25  4:46 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
          Component|c                           |target
 GCC target triplet|                            |hppa2.0w-hp-hpux11.11


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/14286] hpux 11.i gcc3.3 compiler errors
  2004-02-25  3:26 [Bug c/14286] New: hpux 11.i gcc3.3 compiler errors swarner at rambus dot com
  2004-02-25  4:46 ` [Bug target/14286] " pinskia at gcc dot gnu dot org
@ 2004-02-25  8:17 ` pinskia at gcc dot gnu dot org
  2004-02-25  9:07 ` [Bug c/14286] ICE with __builtin_va_start prototype falk at debian dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-25  8:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-25 08:17 -------
Can you try a newer version of GCC, 3.3.3 was just released.  Also note we do not support versions 
which not official FSF releases which the version sems to be.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/14286] ICE with __builtin_va_start prototype
  2004-02-25  3:26 [Bug c/14286] New: hpux 11.i gcc3.3 compiler errors swarner at rambus dot com
  2004-02-25  4:46 ` [Bug target/14286] " pinskia at gcc dot gnu dot org
  2004-02-25  8:17 ` pinskia at gcc dot gnu dot org
@ 2004-02-25  9:07 ` falk at debian dot org
  2004-02-25 17:09 ` swarner at rambus dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: falk at debian dot org @ 2004-02-25  9:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From falk at debian dot org  2004-02-25 09:07 -------
I can reproduce this on hppa-linux. The problem seems to be the prototype of
__builtin_va_start. Test case:

typedef double *va_list;
void __builtin_va_start (va_list, ...);
void rmbs_error (int errcode, char *fmt, ...)
{
  va_list args;
  __builtin_va_start (args, &fmt);
}

Note the bogus builtin prototype. Since the first argument is a reference,
you cannot prototype it properly in C and the code is invalid. Please complain
to the vendor of varargs.h.

Also occurs on alpha-linux, there we get a segfault.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
          Component|target                      |c
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-invalid-code
            Summary|hpux 11.i gcc3.3 compiler   |ICE with __builtin_va_start
                   |errors                      |prototype


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/14286] ICE with __builtin_va_start prototype
  2004-02-25  3:26 [Bug c/14286] New: hpux 11.i gcc3.3 compiler errors swarner at rambus dot com
                   ` (2 preceding siblings ...)
  2004-02-25  9:07 ` [Bug c/14286] ICE with __builtin_va_start prototype falk at debian dot org
@ 2004-02-25 17:09 ` swarner at rambus dot com
  2004-02-25 21:06 ` [Bug middle-end/14286] " dhazeghi at yahoo dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: swarner at rambus dot com @ 2004-02-25 17:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From swarner at rambus dot com  2004-02-25 17:09 -------
Subject: Re:  hpux 11.i gcc3.3 compiler errors

FSF however did build this for us.  We purchased the gold install of all 
FSF products.  So you will build
it but not support it?  Sounds strange.

pinskia at gcc dot gnu dot org wrote:

>------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-25 08:17 -------
>Can you try a newer version of GCC, 3.3.3 was just released.  Also note we do not support versions 
>which not official FSF releases which the version sems to be.
>
>  
>




-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/14286] ICE with __builtin_va_start prototype
  2004-02-25  3:26 [Bug c/14286] New: hpux 11.i gcc3.3 compiler errors swarner at rambus dot com
                   ` (3 preceding siblings ...)
  2004-02-25 17:09 ` swarner at rambus dot com
@ 2004-02-25 21:06 ` dhazeghi at yahoo dot com
  2004-02-26  0:48 ` wilson at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dhazeghi at yahoo dot com @ 2004-02-25 21:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dhazeghi at yahoo dot com  2004-02-25 21:06 -------
In response to comment #4, see <http://gcc.gnu.org/install/binaries.html>.

-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/14286] ICE with __builtin_va_start prototype
  2004-02-25  3:26 [Bug c/14286] New: hpux 11.i gcc3.3 compiler errors swarner at rambus dot com
                   ` (4 preceding siblings ...)
  2004-02-25 21:06 ` [Bug middle-end/14286] " dhazeghi at yahoo dot com
@ 2004-02-26  0:48 ` wilson at gcc dot gnu dot org
  2004-02-26  1:04 ` swarner at rambus dot com
  2004-02-26 22:00 ` danglin at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: wilson at gcc dot gnu dot org @ 2004-02-26  0:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From wilson at gcc dot gnu dot org  2004-02-26 00:48 -------
Are you sure you bought this from the FSF?  I just checked the FSF site, and I
do not see any reference to "gold install" CDs.  There are many third parties
that sells CDs that contain FSF programs, and some of them include support in
the purchase price.  The FSF can not support something produced by one of these
third parties.  Your compiler has TWW in the version string, which suggests it
came from a third party.

The FSF does sell CD-ROMs that contain pre-built binaries to help raise funds to
support their work.  However, the FSF is not a business, it is a charity, and
the cost of the FSF CD-ROMs does not include support for the binaries included
on the CD-ROMs.

-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/14286] ICE with __builtin_va_start prototype
  2004-02-25  3:26 [Bug c/14286] New: hpux 11.i gcc3.3 compiler errors swarner at rambus dot com
                   ` (5 preceding siblings ...)
  2004-02-26  0:48 ` wilson at gcc dot gnu dot org
@ 2004-02-26  1:04 ` swarner at rambus dot com
  2004-02-26 22:00 ` danglin at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: swarner at rambus dot com @ 2004-02-26  1:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From swarner at rambus dot com  2004-02-26 01:04 -------
Subject: Re:  ICE with __builtin_va_start prototype

My mistake,  It was the "Deluxe Distribution".  Lisa knows about it. 
 But if it includes no support,
I appreciate the support you have so far provided.

wilson at gcc dot gnu dot org wrote:

>------- Additional Comments From wilson at gcc dot gnu dot org  2004-02-26 00:48 -------
>Are you sure you bought this from the FSF?  I just checked the FSF site, and I
>do not see any reference to "gold install" CDs.  There are many third parties
>that sells CDs that contain FSF programs, and some of them include support in
>the purchase price.  The FSF can not support something produced by one of these
>third parties.  Your compiler has TWW in the version string, which suggests it
>came from a third party.
>
>The FSF does sell CD-ROMs that contain pre-built binaries to help raise funds to
>support their work.  However, the FSF is not a business, it is a charity, and
>the cost of the FSF CD-ROMs does not include support for the binaries included
>on the CD-ROMs.
>
>  
>




-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug middle-end/14286] ICE with __builtin_va_start prototype
  2004-02-25  3:26 [Bug c/14286] New: hpux 11.i gcc3.3 compiler errors swarner at rambus dot com
                   ` (6 preceding siblings ...)
  2004-02-26  1:04 ` swarner at rambus dot com
@ 2004-02-26 22:00 ` danglin at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu dot org @ 2004-02-26 22:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From danglin at gcc dot gnu dot org  2004-02-26 22:00 -------
I suspect an installation problem.  GCC has its own internal
version of stdarg.h.  It doesn't include varargs.h.  The problem
below is a result of including the HP version of stdarg.h.  This
might be caused by an incorrect installation (e.g., a bad path
or the header fixes have been deleted).

With the prefix shown below, GCC's fixed headers should be in
/usr/local/gcc33/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3/include.

You can see the header search path used by GCC if you compile
using "-v".

TWW == The Written Word
You should talk to them.

-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-02-26 22:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-25  3:26 [Bug c/14286] New: hpux 11.i gcc3.3 compiler errors swarner at rambus dot com
2004-02-25  4:46 ` [Bug target/14286] " pinskia at gcc dot gnu dot org
2004-02-25  8:17 ` pinskia at gcc dot gnu dot org
2004-02-25  9:07 ` [Bug c/14286] ICE with __builtin_va_start prototype falk at debian dot org
2004-02-25 17:09 ` swarner at rambus dot com
2004-02-25 21:06 ` [Bug middle-end/14286] " dhazeghi at yahoo dot com
2004-02-26  0:48 ` wilson at gcc dot gnu dot org
2004-02-26  1:04 ` swarner at rambus dot com
2004-02-26 22:00 ` danglin at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).