public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* target/3960: GCC-3.0 target DSP16xx doesn't compile (get syntax error)
@ 2001-08-08 6:26 ottoni
0 siblings, 0 replies; 2+ messages in thread
From: ottoni @ 2001-08-08 6:26 UTC (permalink / raw)
To: gcc-gnats
>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:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: target/3960: GCC-3.0 target DSP16xx doesn't compile (get syntax error)
@ 2002-01-03 22:09 rodrigc
0 siblings, 0 replies; 2+ messages in thread
From: rodrigc @ 2002-01-03 22:09 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, ottoni
Synopsis: GCC-3.0 target DSP16xx doesn't compile (get syntax error)
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Thu Jan 3 22:09:08 2002
State-Changed-Why:
This is fixed in gcc 3.1 CVS.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3960
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-01-04 6:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-08 6:26 target/3960: GCC-3.0 target DSP16xx doesn't compile (get syntax error) ottoni
2002-01-03 22:09 rodrigc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).