This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

target/3960: GCC-3.0 target DSP16xx doesn't compile (get syntax error)



>Number:         3960
>Category:       target
>Synopsis:       GCC-3.0 target DSP16xx doesn't compile (get syntax error)
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 08 06:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Guilherme de Lima Ottoni
>Release:        gcc-3.0
>Organization:
>Environment:
i586-mandrake-linux
>Description:

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. 

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.

>How-To-Repeat:
Just try to build a dsp16xx target for gcc-3.0.
>Fix:
The syntax errors are easly fixed, but then I couldn't fix other 
problems, which I think are caused by problems in the Makefile.
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]