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]

ICE in gcc 2.95.2



I have to say, this is the first time I've come across an ICE in 2.95.2
when compiling plain ol' C - a testament to GCC's stability if nothing
else.

GCC is:

Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)

Anyway, this code causes an ICE with 2.95.2 on both:

Linux sphere.man.uk.ekto.org 2.0.36 #1 Tue Oct 13 22:17:11 EDT 1998 i686
unknown

(RedHat 5.2, AMD M-II 233, 64 meg of memory)

and on

Linux box 2.2.13 #1 Tue Oct 13 22:17:11 EDT 1998 i686 unknown

(Slackware 7.0, AMD Athlon 700, 128 meg of memory)

The included outputs are both from the former machine, although a copy of
them from the latter can be provided, if needs-be.

The makefile runs:

Now compiling .... intercom server
gcc -O3 -Wall -Winline -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wnested-externs -Wno-cast-align -DLINUX -Wno-pointer-arith -DTALKER_EXEC=\"talker\" -DNDEBUG -DNEED_CONST_DIRENT -DHAVE_SOCKLEN_T -DHAVE_SIGEMPTYSET -DNEED_CRYPT_DECL --save-temps  -o intercom intercom.c  -lcrypt
intercom.c: In function `add_new_talker':
intercom.c:2788: parse error before `else'
intercom.c:2692: warning: unused variable `sa'
intercom.c:2691: warning: unused variable `inet_address'
intercom.c:2690: warning: unused variable `hp'
intercom.c:2689: warning: unused variable `dots'
intercom.c:2689: warning: unused variable `all_num'
intercom.c:2688: warning: unused variable `numeric_string'
intercom.c:2686: warning: unused variable `prev'
intercom.c:2686: warning: unused variable `scan'
intercom.c:2792: warning: control reaches end of non-void function
intercom.c: At top level:
intercom.c:2793: parse error before `else'
intercom.c:2819: parse error before `('
intercom.c:2822: warning: type defaults to `int' in declaration of `scan'
intercom.c:2822: warning: initialization makes integer from pointer without a cast
intercom.c:2822: initializer element is not constant
intercom.c:2822: warning: data definition has no type or storage class
intercom.c:2823: parse error before `while'
intercom.c:2828: warning: type defaults to `int' in declaration of `prev'
intercom.c:2828: initializer element is not constant
intercom.c:2828: warning: data definition has no type or storage class
intercom.c:2831: warning: type defaults to `int' in declaration of `dots'
intercom.c:2831: warning: data definition has no type or storage class
intercom.c:2832: warning: type defaults to `int' in declaration of `all_num'
intercom.c:2832: warning: data definition has no type or storage class
intercom.c:2833: warning: type defaults to `int' in declaration of `ptr'
intercom.c:2833: `new_talker' undeclared here (not in a function)
intercom.c:2833: warning: data definition has no type or storage class
intercom.c:2834: parse error before `while'
intercom.c:2847: warning: type defaults to `int' in declaration of `free'
intercom.c:2847: warning: parameter names (without types) in function declaration
intercom.c:2847: conflicting types for `free'
/usr/include/stdlib.h:352: previous declaration of `free'
intercom.c:2847: warning: data definition has no type or storage class
intercom.c:2848: parse error before `if'
intercom.c:2852: parse error before `->'
intercom.c:2852: warning: type defaults to `int' in declaration of `strncpy'
intercom.c:2852: warning: function declaration isn't a prototype
intercom.c:2852: conflicting types for `strncpy'
/usr/include/string.h:69: previous declaration of `strncpy'
intercom.c:2852: warning: data definition has no type or storage class
intercom.c:2853: warning: type defaults to `int' in declaration of `numeric_string'
intercom.c:2853: invalid initializer
intercom.c:2853: warning: data definition has no type or storage class
intercom.c:2856: warning: type defaults to `int' in declaration of `hp'
intercom.c:2856: warning: data definition has no type or storage class
intercom.c:2857: parse error before `.'
intercom.c:2865: warning: type defaults to `int' in declaration of `hp'
intercom.c:2865: redefinition of `hp'
intercom.c:2856: `hp' previously defined here
intercom.c:2865: `sa' undeclared here (not in a function)
intercom.c:2866: `sa' undeclared here (not in a function)
intercom.c:2866: warning: initialization makes integer from pointer without a cast
intercom.c:2866: initializer element is not constant
intercom.c:2866: warning: data definition has no type or storage class
intercom.c:2867: parse error before `}'
intercom.c:2890: parse error before `('
intercom.c:2898: warning: type defaults to `int' in declaration of `free'
intercom.c:2898: warning: parameter names (without types) in function declaration
intercom.c:2898: warning: data definition has no type or storage class
intercom.c:2899: parse error before `return'
intercom.c:2904: parse error before string constant
intercom.c:2905: warning: type defaults to `int' in declaration of `sscanf'
intercom.c:2905: warning: function declaration isn't a prototype
intercom.c:2917: warning: type defaults to `int' in declaration of `stack'
intercom.c:2917: conflicting types for `stack'
intercom.c:75: previous declaration of `stack'
intercom.c:2917: `oldstack' undeclared here (not in a function)
intercom.c:2917: warning: data definition has no type or storage class
intercom.c:2918: parse error before `->'
intercom.c:2919: warning: type defaults to `int' in declaration of `free'
intercom.c:2919: warning: parameter names (without types) in function declaration
intercom.c:2919: warning: data definition has no type or storage class
intercom.c:2920: parse error before `return'
intercom.c:2927: warning: type defaults to `int' in declaration of `stack'
intercom.c:2927: redefinition of `stack'
intercom.c:2917: `stack' previously defined here
intercom.c:2927: `oldstack' undeclared here (not in a function)
intercom.c:2927: warning: initialization makes integer from pointer without a cast
intercom.c:2927: initializer element is not constant
intercom.c:2927: warning: data definition has no type or storage class
intercom.c:2928: warning: type defaults to `int' in declaration of `tell_talker_su'
intercom.c:2928: warning: parameter names (without types) in function declaration
intercom.c:2928: conflicting types for `tell_talker_su'
intercom.c:2675: previous declaration of `tell_talker_su'
intercom.c:2928: warning: data definition has no type or storage class
intercom.c:2929: warning: type defaults to `int' in declaration of `stack'
intercom.c:2929: redefinition of `stack'
intercom.c:2927: `stack' previously defined here
intercom.c:2929: `oldstack' undeclared here (not in a function)
intercom.c:2929: warning: data definition has no type or storage class
intercom.c:2930: parse error before `}'
intercom.c: In function `match_talker_name':
intercom.c:2943: warning: declaration of `scan' shadows global declaration
intercom.c: In function `match_talker_abbr_absolute':
intercom.c:2963: warning: declaration of `scan' shadows global declaration
intercom.c: In function `match_talker_abbr_pattern':
intercom.c:2984: warning: declaration of `scan' shadows global declaration
intercom.c:2985: warning: declaration of `ptr' shadows global declaration
intercom.c:2991: warning: assignment makes pointer from integer without a cast
intercom.c:2992: warning: assignment makes pointer from integer without a cast
intercom.c:3001: warning: assignment makes integer from pointer without a cast
intercom.c:3002: warning: assignment makes pointer from integer without a cast
intercom.c:3012: warning: passing arg 1 of `strcpy' makes pointer from integer without a cast
intercom.c:3013: warning: assignment makes pointer from integer without a cast
intercom.c:3020: warning: passing arg 1 of `strcmp' makes pointer from integer without a cast
intercom.c:3022: warning: assignment makes integer from pointer without a cast
intercom.c:3025: warning: passing arg 1 of `strstr' makes pointer from integer without a cast
intercom.c:3025: warning: comparison between pointer and integer
intercom.c:3028: warning: passing arg 1 of `strchr' makes pointer from integer without a cast
intercom.c:3028: warning: assignment makes integer from pointer without a cast
intercom.c:3029: invalid type argument of `unary *'
intercom.c:3030: invalid type argument of `unary *'
intercom.c:3041: warning: assignment makes integer from pointer without a cast
intercom.c:3046: warning: comparison between pointer and integer
intercom.c:3049: invalid type argument of `unary *'
intercom.c:3054: warning: assignment makes integer from pointer without a cast
intercom.c:3057: warning: assignment makes integer from pointer without a cast
intercom.c: In function `add_new_server_to_file':
intercom.c:3085: warning: assignment makes pointer from integer without a cast
intercom.c: In function `read_talker_database':
intercom.c:3123: warning: declaration of `ptr' shadows global declaration
intercom.c: In function `set_name':
intercom.c:3154: warning: declaration of `ptr' shadows global declaration
intercom.c: In function `show_all_links':
intercom.c:3173: warning: declaration of `scan' shadows global declaration
intercom.c:3182: warning: assignment makes pointer from integer without a cast
intercom.c:3186: warning: passing arg 1 of `sprintf' makes pointer from integer without a cast
intercom.c:3187: warning: passing arg 1 of `strchr' makes pointer from integer without a cast
intercom.c:3187: warning: assignment makes integer from pointer without a cast
intercom.c:3194: warning: comparison between pointer and integer
intercom.c:3202: warning: passing arg 1 of `sprintf' makes pointer from integer without a cast
intercom.c:3204: warning: passing arg 1 of `strchr' makes pointer from integer without a cast
intercom.c:3204: warning: assignment makes integer from pointer without a cast
intercom.c:3213: warning: passing arg 1 of `sprintf' makes pointer from integer without a cast
intercom.c:3214: warning: passing arg 1 of `strchr' makes pointer from integer without a cast
intercom.c:3214: warning: assignment makes integer from pointer without a cast
intercom.c:3223: warning: comparison between pointer and integer
intercom.c:3253: warning: passing arg 1 of `sprintf' makes pointer from integer without a cast
intercom.c:3254: warning: passing arg 1 of `strchr' makes pointer from integer without a cast
intercom.c:3254: warning: assignment makes integer from pointer without a cast
intercom.c:3257: warning: passing arg 1 of `strcpy' makes pointer from integer without a cast
intercom.c:3259: warning: passing arg 1 of `strcpy' makes pointer from integer without a cast
intercom.c:3261: warning: passing arg 1 of `strcpy' makes pointer from integer without a cast
intercom.c:3263: warning: passing arg 1 of `strcpy' makes pointer from integer without a cast
intercom.c:3265: warning: passing arg 1 of `strcpy' makes pointer from integer without a cast
intercom.c:3267: warning: passing arg 1 of `strcpy' makes pointer from integer without a cast
intercom.c:3269: warning: passing arg 1 of `strcpy' makes pointer from integer without a cast
intercom.c:3271: warning: passing arg 1 of `strcpy' makes pointer from integer without a cast
intercom.c:3273: warning: passing arg 1 of `strcpy' makes pointer from integer without a cast
intercom.c:3279: warning: passing arg 1 of `sprintf' makes pointer from integer without a cast
intercom.c:3280: warning: passing arg 1 of `strchr' makes pointer from integer without a cast
intercom.c:3280: warning: assignment makes integer from pointer without a cast
intercom.c:3289: warning: passing arg 1 of `sprintf' makes pointer from integer without a cast
intercom.c:3295: warning: passing arg 1 of `sprintf' makes pointer from integer without a cast
intercom.c:3298: warning: assignment makes integer from pointer without a cast
intercom.c:3302: warning: assignment makes integer from pointer without a cast
intercom.c: In function `show_all_links_short':
intercom.c:3313: warning: declaration of `scan' shadows global declaration
intercom.c:3316: warning: assignment makes pointer from integer without a cast
intercom.c:3322: warning: passing arg 1 of `sprintf' makes pointer from integer without a cast
intercom.c:3327: invalid type argument of `unary *'
intercom.c:3329: invalid type argument of `unary *'
intercom.c:3329: invalid type argument of `unary *'
intercom.c:3337: invalid type argument of `unary *'
intercom.c:3339: invalid type argument of `unary *'
intercom.c:3339: invalid type argument of `unary *'
intercom.c:3349: warning: assignment makes integer from pointer without a cast
intercom.c:3354: invalid type argument of `unary *'
intercom.c:3362: warning: assignment makes integer from pointer without a cast
intercom.c: In function `open_talker_link':
intercom.c:3378: warning: assignment makes pointer from integer without a cast
intercom.c: In function `unbar_talker':
intercom.c:3413: warning: assignment makes pointer from integer without a cast
intercom.c:3430: warning: assignment makes integer from pointer without a cast
gcc: Internal compiler error: program cc1 got fatal signal 11
make: *** [intercom] Error 1

(There's an error in the soures, I know, but it shouldn't cause an ICE :)

HTH,

Mo

-- 
Mo McKinlay             Chief Software Architect          inter/open Labs
-------------------------------------------------------------------------
GnuPG Key: pub  1024D/76A275F9 2000-07-22 Mo McKinlay <mmckinlay@gnu.org>





intercom.i.gz


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