This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
DSP16xx Target
- To: gcc-help at gcc dot gnu dot org
- Subject: DSP16xx Target
- From: Guilherme de Lima Ottoni <ottoni at ic dot unicamp dot br>
- Date: Fri, 03 Aug 2001 23:47:50 -0300
- Organization: Instituto de Computacao - UNICAMP
I'm trying to compile GCC with target DSP16xx, but, surprisingly, I got
some compiler errors during compilation. For example, in the file
'dsp16xx.c', I got the following error messages:
...
../../combined/gcc/config/dsp16xx/dsp16xx.c: In function
`print_operand':
../../combined/gcc/config/dsp16xx/dsp16xx.c:1666: warning: implicit
declaration of function `output_operand_lossgae'
../../combined/gcc/config/dsp16xx/dsp16xx.c:1679: warning: implicit
declaration of function `fprint'
../../combined/gcc/config/dsp16xx/dsp16xx.c:1679: `f' undeclared (first
use in this function)
../../combined/gcc/config/dsp16xx/dsp16xx.c:1679: (Each undeclared
identifier is reported only once
../../combined/gcc/config/dsp16xx/dsp16xx.c:1679: for each function it
appears in.)
../../combined/gcc/config/dsp16xx/dsp16xx.c:1679: parse error before
`file'
../../combined/gcc/config/dsp16xx/dsp16xx.c:1678: warning: empty body in
an if-statement
../../combined/gcc/config/dsp16xx/dsp16xx.c:1679: warning: left-hand
operand of
comma expression has no effect
../../combined/gcc/config/dsp16xx/dsp16xx.c:1679: warning: left-hand
operand of
comma expression has no effect
../../combined/gcc/config/dsp16xx/dsp16xx.c:1679: parse error before `)'
../../combined/gcc/config/dsp16xx/dsp16xx.c: In function
`print_operand_address':
../../combined/gcc/config/dsp16xx/dsp16xx.c:1703: warning: `base' might
be used
uninitialized in this function
../../combined/gcc/config/dsp16xx/dsp16xx.c:1704: warning: `offset'
might be used uninitialized in this function
make[1]: *** [dsp16xx.o] Error 1
make: *** [all-gcc] Error 2
In the dsp16xx.c file, there are the following code lines:
...
1676: else if (letter == 'h')
1677: fprintf (file, HOST_WIDE_INT_PRINT_DEC, val);
1678: else if (letter == 'U')
1679: fprint(f file, HOST_WIDE_INT_PRINT_HEX, (val >> 16) & 0xffff);
...
It's clear that there is a mistake in line 1679. It's worth saying that
I'm compiling GCC 3.0, but the dsp16xx.c file downloaded from the CVS is
exactly the same. So, I'm trying to understand what is going on.
Has nobody ever used this target?
I fixed this error (and I think some others), but then I got compiler
errors because the Makefile also have some problems and I gave up.
Can anybody help me?
Thanks in advance,
--
Guilherme Ottoni
CS MSc Student
IC-Unicamp / Brazil
http://www.ic.unicamp.br/~ottoni
-----------------------------------------
The Xingo Project
Code Optimization for Embedded Systems
An Open Software Initiative of IC-UNICAMP
-----------------------------------------