Sorry folks. Just got a '430, just joined the list, and have got a bug for
y'all to peruse already!
The following code:
<example code>
# define KMEM (8*1024)
static unsigned char arena[KMEM]; /* free space */
struct head {
short data;
};
static struct head *fptr; /* points into arena - at next free 'head'
struct */
int
demo( void )
{
if (( char * )&fptr->data > ( char * )&arena[KMEM])
return -1;
return 0;
}
</example code>
...upsets the compiler as follows:
demo.c: In function `demo':
demo.c:20: Unrecognizable insn:
(insn 34 29 10 (set (cc0)
(compare:HI (const:HI (plus:HI (symbol_ref:HI ("arena"))
(const_int 8192 [0x2000])))
(mem/f:HI (symbol_ref:HI ("fptr")) 0))) -1 (nil)
(nil))
demo.c:20: Internal compiler error in insn_default_length, at insn-attrtab.c:666
Please submit a full bug report.... (etc)
---------------------
A bit rude to go reporting a bug as my first posting, sorry about that. Bugs
happen.
This is in the binutils 2.11-beta1 patches for GCC (applied to 3.0.4 GCC sources
with no apparent serious difficulties). It also seems to be in the latest CVS
binutils sources that I downloaded on Friday.
--
Steve Hosgood |
[email protected] | "A good plan today is better
Phone: +44 1792 203707 + ask for Steve | than a perfect plan tomorrow"
Fax: +44 70922 70944 | - Conrad Brean
--------------------------------------------+
http://tallyho.bc.nu/~steve | ( from the film "Wag the Dog" )