[ Initially posted to wrong list ]
When I use the -fdata-sections option, the compiler crashes
whenever it sees a global initialized variable. Any ideas on
how to fix this?
$ cat foo.c
static unsigned u = 1;
unsigned foo(void)
{
return u;
}
$ msp430-gcc -mmcu=msp430x4250 -g -Wall -W -Wpointer-arith -Wcast-align
-Wshadow -Wundef -Wwrite-strings -O1 -fomit-frame-pointer -fshort-double
-DENABLE_DIAG_PRINTF=1 -fno-builtin-memcpy -fno-builtin-memset
-DExternalReference=1 -DHasTempSensor=1 -ffunction-sections -fdata-sections -c
foo.c
foo.c:2: Internal compiler error in unique_section, at
config/msp430/msp430.c:1972
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$ msp430-gcc --version
msp430-gcc (GCC) 3.2.3
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
Grant Edwards grante Yow! .. here I am in 53
at B.C. and all I want is a
visi.com dill pickle!!