From mboxrd@z Thu Jan 1 00:00:00 1970 From: abel@bfr.co.il (Alexander L. Belikoff) To: egcs-bugs@egcs.cygnus.com Cc: egcs@egcs.cygnus.com Subject: egcs/gcc internal errors in the recent snapshot Date: Thu, 11 Mar 1999 02:18:00 -0000 Message-id: X-SW-Source: 1999-03/msg00415.html Hello everybody - This is a followup on my old bug report. Now it is about the recent snapshot... I. Hardware/software configuration: 1. The machine: Alpha 21264 (ev6) dual-CPU RedHat Linux 5.2, kernel 2.2.1 (SMP) 2. The compiler: Reading specs from /bb/abel2/egcs/lib/gcc-lib/alphaev6-unknown-linux-gnu/egcs-2.93.11/specs gcc version egcs-2.93.11 19990307 (gcc2 ss-980929 experimental) II. Internal error #1 1. The file: =============================================== #define MAX_BLOCKS 12 #define true 1 typedef unsigned char boolean; typedef struct bar_t { struct { boolean over_allocated; } *block[MAX_BLOCKS]; } bar_t; struct foo_t { bar_t **bar; struct { double p, i; boolean oa; } ba[MAX_BLOCKS]; } ; void end_tranches(struct foo_t *foo) { long t, num_p, i; long forlim; for (i = 1; i <= forlim; i++) { if (foo->ba[i-1].p - 1.0e0 > 1.0e-8) { if (foo->ba[i-1].oa) { } else { error_message(132, 0, 9, true, true, 0, 3); } } if (foo->ba[i-1].i - 1.0e0 > 1.0e-8) { if (foo->ba[i-1].oa) { (*foo->bar)->block[i-1]->over_allocated = 1; } else { error_message(132, 0, 9, true, true, 0, 3); } } } } =============================================== 2. The error: =============================================== $ gcc -O2 -g egcs_crash3.c egcs_crash3.c: In function `end_tranches': egcs_crash3.c:49: internal error--insn does not satisfy its constraints: (insn 309 282 214 (set (reg:QI 36 $f4) (reg:QI 3 $3)) 288 {movsi-1} (nil) (nil)) toplev.c:1447: Internal compiler error in function fatal_insn Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'. See for details. =============================================== III. Internal error #2 1. The pristine file (preprocessed version follows): =============================================== #include typedef struct foo_t { double foo, bar; } foo_t; void foobar(void) { long maddr; foo_t payment; memcpy(maddr, (long)(&payment), sizeof(foo_t)); } =============================================== 2. The error: =============================================== $ gcc -O2 -g egcs_crash1.c egcs_crash1.c: In function `foobar': egcs_crash1.c:15: warning: passing arg 1 of `memcpy' makes pointer from integer without a cast egcs_crash1.c:15: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast ./config/alpha/alpha.c:2176: Internal compiler error in function alpha_expand_block_move Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'. See for details. $ gcc -g -c egcs_crash1.c egcs_crash1.c: In function `foobar': egcs_crash1.c:15: warning: passing arg 1 of `memcpy' makes pointer from integer without a cast egcs_crash1.c:15: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast =============================================== 3. The cpp'ed source: From mboxrd@z Thu Jan 1 00:00:00 1970 From: abel@bfr.co.il (Alexander L. Belikoff) To: egcs-bugs@egcs.cygnus.com Cc: egcs@egcs.cygnus.com Subject: egcs/gcc internal errors in the recent snapshot Date: Wed, 31 Mar 1999 23:46:00 -0000 Message-ID: X-SW-Source: 1999-03n/msg00419.html Content-type: multipart/mixed; boundary="----------=_1583532964-672-11" Message-ID: <19990331234600.ctorK5Xnrrp9YuZfrIJQU68Km8SMXIxSESTDRWch8-k@z> This is a multi-part message in MIME format... ------------=_1583532964-672-11 Content-length: 3039 Hello everybody - This is a followup on my old bug report. Now it is about the recent snapshot... I. Hardware/software configuration: 1. The machine: Alpha 21264 (ev6) dual-CPU RedHat Linux 5.2, kernel 2.2.1 (SMP) 2. The compiler: Reading specs from /bb/abel2/egcs/lib/gcc-lib/alphaev6-unknown-linux-gnu/egcs-2.93.11/specs gcc version egcs-2.93.11 19990307 (gcc2 ss-980929 experimental) II. Internal error #1 1. The file: =============================================== #define MAX_BLOCKS 12 #define true 1 typedef unsigned char boolean; typedef struct bar_t { struct { boolean over_allocated; } *block[MAX_BLOCKS]; } bar_t; struct foo_t { bar_t **bar; struct { double p, i; boolean oa; } ba[MAX_BLOCKS]; } ; void end_tranches(struct foo_t *foo) { long t, num_p, i; long forlim; for (i = 1; i <= forlim; i++) { if (foo->ba[i-1].p - 1.0e0 > 1.0e-8) { if (foo->ba[i-1].oa) { } else { error_message(132, 0, 9, true, true, 0, 3); } } if (foo->ba[i-1].i - 1.0e0 > 1.0e-8) { if (foo->ba[i-1].oa) { (*foo->bar)->block[i-1]->over_allocated = 1; } else { error_message(132, 0, 9, true, true, 0, 3); } } } } =============================================== 2. The error: =============================================== $ gcc -O2 -g egcs_crash3.c egcs_crash3.c: In function `end_tranches': egcs_crash3.c:49: internal error--insn does not satisfy its constraints: (insn 309 282 214 (set (reg:QI 36 $f4) (reg:QI 3 $3)) 288 {movsi-1} (nil) (nil)) toplev.c:1447: Internal compiler error in function fatal_insn Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'. See for details. =============================================== III. Internal error #2 1. The pristine file (preprocessed version follows): =============================================== #include typedef struct foo_t { double foo, bar; } foo_t; void foobar(void) { long maddr; foo_t payment; memcpy(maddr, (long)(&payment), sizeof(foo_t)); } =============================================== 2. The error: =============================================== $ gcc -O2 -g egcs_crash1.c egcs_crash1.c: In function `foobar': egcs_crash1.c:15: warning: passing arg 1 of `memcpy' makes pointer from integer without a cast egcs_crash1.c:15: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast ./config/alpha/alpha.c:2176: Internal compiler error in function alpha_expand_block_move Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'. See for details. $ gcc -g -c egcs_crash1.c egcs_crash1.c: In function `foobar': egcs_crash1.c:15: warning: passing arg 1 of `memcpy' makes pointer from integer without a cast egcs_crash1.c:15: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast =============================================== 3. The cpp'ed source: ------------=_1583532964-672-11 Content-Type: application/x-gzip; charset=binary; name="egcs_crash1.i.gz" Content-Disposition: inline; filename="egcs_crash1.i.gz" Content-Transfer-Encoding: base64 Content-Length: 1290 H4sICPyW5zYAA2VnY3NfY3Jhc2gxLmkAtVh/j6IwEP17/RSTNbnoxl1X2J/Z D0OgjMoJhbSwt+7lvvtNQQuUguidx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