error assign_stack_temp_for_type
Alexander Bruch
Alexander.Bruch@mni.fh-giessen.de
Wed Nov 14 12:04:00 GMT 2001
Hi
I had the following error
OS: sparc-sun-solaris
gcc version: 2.95.3 20010315 (release)
gcc -i baseconvert.cpp -Wall -o ../bin/baseconvert
baseconvert.cpp: In function `long int baseconvert(long int, long int)':
baseconvert.cpp:32: Internal compiler error in
`assign_stack_temp_for_type', at function.c:938
I think this bug has something to do with:
long array[LONG_MAX];
??
Greets
Alex
/-----------------------------------\
| Alexander Bruch |
| abruch@gmx.de Tel: 06403-71993 |
| ICQ: 14561675 Mobil: 0174-5433392 |
\-----------------------------------/
-------------- next part --------------
# 1 "baseconvert.cpp"
# 1 "/usr/include/stdio.h" 1 3 4
#pragma ident "@(#)stdio.h 1.78 99/12/08 SMI"
# 1 "/usr/include/iso/stdio_iso.h" 1 3 4
#pragma ident "@(#)stdio_iso.h 1.2 99/10/25 SMI"
# 1 "/usr/include/sys/feature_tests.h" 1 3 4
#pragma ident "@(#)feature_tests.h 1.18 99/07/26 SMI"
# 1 "/usr/include/sys/isa_defs.h" 1 3 4
#pragma ident "@(#)isa_defs.h 1.20 99/05/04 SMI"
extern "C" {
# 267 "/usr/include/sys/isa_defs.h" 3 4
# 366 "/usr/include/sys/isa_defs.h" 3 4
}
# 15 "/usr/include/sys/feature_tests.h" 2 3 4
extern "C" {
}
# 35 "/usr/include/iso/stdio_iso.h" 2 3 4
# 1 "/usr/include/sys/va_list.h" 1 3 4
#pragma ident "@(#)va_list.h 1.12 99/05/04 SMI"
extern "C" {
typedef void *__va_list;
}
# 36 "/usr/include/iso/stdio_iso.h" 2 3 4
# 1 "/usr/include/stdio_tag.h" 1 3 4
#pragma ident "@(#)stdio_tag.h 1.3 98/04/20 SMI"
extern "C" {
typedef struct FILE __FILE;
}
# 37 "/usr/include/iso/stdio_iso.h" 2 3 4
# 1 "/usr/include/stdio_impl.h" 1 3 4
#pragma ident "@(#)stdio_impl.h 1.8 99/06/10 SMI"
extern "C" {
typedef int ssize_t;
# 36 "/usr/include/stdio_impl.h" 3 4
struct FILE
{
ssize_t _cnt;
unsigned char *_ptr;
unsigned char *_base;
unsigned char _flag;
unsigned char _file;
unsigned __orientation:2;
unsigned __ionolock:1;
unsigned __filler:5;
};
}
# 38 "/usr/include/iso/stdio_iso.h" 2 3 4
extern "C" {
typedef long long __longlong_t;
typedef __FILE FILE;
typedef unsigned int size_t;
typedef long fpos_t;
extern __FILE __iob[20 ];
extern int remove(const char *);
extern int rename(const char *, const char *);
extern FILE *tmpfile(void);
extern char *tmpnam(char *);
extern int fclose(FILE *);
extern int fflush(FILE *);
extern FILE *fopen(const char *, const char *);
extern FILE *freopen(const char *, const char *, 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 vfprintf(FILE *, const char *, __va_list);
extern int vprintf(const char *, __va_list);
extern int vsprintf(char *, const char *, __va_list);
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 putc(int, FILE *);
extern int getchar(void);
extern int putchar(int);
extern char *gets(char *);
extern int puts(const char *);
extern int ungetc(int, FILE *);
extern size_t fread(void *, size_t, size_t, FILE *);
extern size_t fwrite(const void *, size_t, size_t, FILE *);
extern int fgetpos(FILE *, fpos_t *);
extern int fseek(FILE *, long, int);
extern int fsetpos(FILE *, const fpos_t *);
extern long ftell(FILE *);
extern void rewind(FILE *);
extern void clearerr(FILE *);
extern int feof(FILE *);
extern int ferror(FILE *);
extern void perror(const char *);
extern int __filbuf(FILE *);
extern int __flsbuf(int, FILE *);
# 275 "/usr/include/iso/stdio_iso.h" 3 4
# 295 "/usr/include/iso/stdio_iso.h" 3 4
}
# 22 "/usr/include/stdio.h" 2 3 4
# 81 "/usr/include/stdio.h" 3 4
extern "C" {
typedef long off_t;
typedef __longlong_t off64_t;
typedef __longlong_t fpos64_t;
extern unsigned char _sibuf[], _sobuf[];
# 176 "/usr/include/stdio.h" 3 4
extern unsigned char *_bufendtab[];
extern FILE *_lastbuf;
# 206 "/usr/include/stdio.h" 3 4
extern void setbuffer(FILE *, char *, size_t);
extern int setlinebuf(FILE *);
extern int snprintf(char *, size_t, const char *, ...);
extern int vsnprintf(char *, size_t, const char *, __va_list);
extern FILE *fdopen(int, const char *);
extern char *ctermid(char *);
extern int fileno(FILE *);
# 255 "/usr/include/stdio.h" 3 4
extern FILE *popen(const char *, const char *);
extern char *cuserid(char *);
extern char *tempnam(const char *, const char *);
extern int getopt(int, char *const *, const char *);
extern int getsubopt(char **, char *const *, char **);
extern char *optarg;
extern int optind, opterr, optopt;
extern int getw(FILE *);
extern int putw(int, FILE *);
extern int pclose(FILE *);
extern int fseeko(FILE *, off_t, int);
extern off_t ftello(FILE *);
extern FILE *fopen64(const char *, const char *);
extern FILE *freopen64(const char *, const char *, FILE *);
extern FILE *tmpfile64(void);
extern int fgetpos64(FILE *, fpos64_t *);
extern int fsetpos64(FILE *, const fpos64_t *);
extern int fseeko64(FILE *, off64_t, int);
extern off64_t ftello64(FILE *);
# 366 "/usr/include/stdio.h" 3 4
# 393 "/usr/include/stdio.h" 3 4
}
# 1 "baseconvert.cpp" 2
# 1 "/opt/local/stow/gcc-2.95.3/gcc2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include/limits.h" 1 3 4
# 1 "/opt/local/stow/gcc-2.95.3/gcc2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include/syslimits.h" 1 3 4
# 1 "/opt/local/stow/gcc-2.95.3/gcc2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include/limits.h" 1 3 4
# 114 "/opt/local/stow/gcc-2.95.3/gcc2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include/limits.h" 3 4
# 1 "/usr/include/limits.h" 1 3 4
#pragma ident "@(#)limits.h 1.51 99/10/08 SMI"
# 1 "/usr/include/iso/limits_iso.h" 1 3 4
#pragma ident "@(#)limits_iso.h 1.1 99/08/09 SMI"
extern "C" {
}
# 20 "/usr/include/limits.h" 2 3 4
# 1 "/usr/include/sys/int_limits.h" 1 3 4
#pragma ident "@(#)int_limits.h 1.6 99/08/06 SMI"
extern "C" {
}
# 32 "/usr/include/limits.h" 2 3 4
extern "C" {
typedef long clock_t;
extern long _sysconf(int);
# 265 "/usr/include/limits.h" 3 4
}
# 117 "/opt/local/stow/gcc-2.95.3/gcc2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include/limits.h" 2 3 4
# 7 "/opt/local/stow/gcc-2.95.3/gcc2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include/syslimits.h" 2 3 4
# 11 "/opt/local/stow/gcc-2.95.3/gcc2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include/limits.h" 2 3 4
# 2 "baseconvert.cpp" 2
long baseconvert(long number,long base);
int main()
{
long number,base;
printf("Baseconvert 2001 by ALex Bruch\n Zahl eingeben: \n ");
scanf("%li",&number);
printf("Base eingeben: \n");
scanf("%li",&base);
baseconvert(number,base);
return 0;
}
long baseconvert(long number,long base)
{
long rest,flag = 0,count=0;
long array[2147483647L ];
while(number > 0)
{
rest = number%base;
number = number/base;
if(rest > 0)
{
sprintf(long[count],"%li\n",rest);
}
else
{
sprintf(long[count]"%li\n",rest);
}
count++;
}
for(long i =count;i>=count;i--)
{
printf("%li", array[i]);
}
printf("\n");
}
More information about the Gcc-bugs
mailing list