Menu

#331 ICE on mixed-memory code

open
gcc (183)
5
2012-08-30
2012-08-30
No

#include <stdlib.h>

const char __attribute__((__far__)) lut1[10] = { 1, 2, 3, 4, 5 };
const char __attribute__((__far__)) lut2[10] = { 1, 2, 3, 4, 5 };
const char * __attribute__((__a20__)) ptrs[2] = { lut1, lut2 };

int
initlut (char * dst,
size_t len,
unsigned int index)
{
size_t i;
const char * __attribute__((__a20__)) src = ptrs[index];
for (i = 0; i < len; ++i) {
dst[i] = src[i];
}
return len;
}

llc[140]$ msp430-gcc -mmcu=msp430f5438a -Os -msr20 -c lut2.c
lut2.c:18:1: internal compiler error: in simplify_subreg, at simplify-rtx.c:5424
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Discussion


Log in to post a comment.