ICE at flow.c:2621
Craig Newell
craign@ieee.org
Sat Apr 8 14:28:00 GMT 2000
Hi All,
I have just checked out the latest CVS source and built a cross compiler
for the arm (host=i686-pc-linux-gnu, target=arm-unknown-elf). When
building my current project, I have hit an ICE in flow.c. Note that the
nightly build compiler at http://www.codesourcery.com/gcc-compile.html
compiles this fine so it appears that the bug is not stressed on the x86.
Here is a min. test case built with arm-elf-gcc -O2 bad.c that fails:
-- bad.c --
typedef struct {
short a;
short b;
} s1;
extern void g(unsigned char *b);
void f(void)
{
s1 a;
unsigned char *b;
a.a = 0;
b = (unsigned char *)&a;
g(b);
}
--------
And the compiler output:
----
arm-elf-gcc -O2 bad.c
bad.c: In function `f':
bad.c:15: Internal compiler error in `verify_wide_reg_1', at flow.c:2621
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
---
But the following code works fine:
-- good.c --
typedef struct {
short a;
short b;
} s1;
extern void g(unsigned char *b);
void f(void)
{
s1 a;
unsigned char *b;
b = (unsigned char *)&a;
a.a = 0;
g(b);
}
-------
Thanks,
CraigN
--
Craig Newell email: CraigN@ieee.org
Free Spirit icbm: somewhere in NJ, USA
More information about the Gcc-bugs
mailing list