This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: problem with compiling c4x target after PRAGMA change
- To: Herman ten Brugge <Haj dot Ten dot Brugge at net dot HCC dot nl>
- Subject: Re: problem with compiling c4x target after PRAGMA change
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Tue, 12 Sep 2000 08:52:12 -0700
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <200009121638.RAA01133@net.HCC.nl>
On Tue, Sep 12, 2000 at 05:38:47PM +0100, Herman ten Brugge wrote:
> Hello,
>
> I get compiler errors after the PRAGMA patch was applied to the c4x
> target. The problems are for the chill, fortran and java compilers. The
> problem reported is:
>
> ../libbackend.a(c4x.o): In function `c4x_parse_pragma':
> c4x.o(.text+0x4a38): undefined reference to `c_lex'
> c4x.o(.text+0x4a55): undefined reference to `c_lex'
> c4x.o(.text+0x4a76): undefined reference to `c_lex'
> c4x.o(.text+0x4a95): undefined reference to `c_lex'
> c4x.o(.text+0x4ab7): undefined reference to `c_lex'
> ../libbackend.a(c4x.o)(.text+0x4ae2): more undefined references to `c_lex' follow
>
> This seems to indicate that the function c_lex is only valid in the c and
> c++ compiler.
Yep.
c4x_parse_pragma will never be called except by the C and C++
compilers, but of course the linker does not know that.
> How should this problem be solved? There are probably more targets with
> the same problem.
Simplest fix would be to add dummy c_lex routines to the chill,
fortran, and java compilers. They should abort if called.
zw