This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16932] New: Compilation error for sh-coff-gcc little endian target
- From: "nitins2 at kpitcummins dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Aug 2004 11:24:19 -0000
- Subject: [Bug c/16932] New: Compilation error for sh-coff-gcc little endian target
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
I am getting following error while compiling the code for sh-coff little endian.
*********************test.c***************************
int main()
{
printf("\nHello\n");
return 0;
}
********************************************************************************
****************
Error comes for targets sh2/sh2e/sh3/sh3e.
command line
>sh-coff-gcc -ml -m2 test.c
>sh-coff-gcc -ml -m2e test.c
>sh-coff-gcc -ml -m3 test.c
>sh-coff-gcc -ml -m3e test.c
*****************error text****************************************
../sh-coff/lib/libc.a(mprec.o)(.text+0x988):mprec.c: undefined reference to
`__ashiftrt_r4_20'
****************************************************************************
If call to "printf" is removed from test code the error disappears.
I am using toolchain built from snapshots
1)gcc-3.4-20040730
2)newlib-1.12.0 CVS dated 07 July 2004
3)binutils-2.15
Same error is not observed in GCC-3.5-20040801 snapshot.
Kindly suggest how to solve this problem.
Thanks in advance.
Nitin Shah,
KPIT Cummins InfoSystems Ltd.
Pune, India
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH and H8 Series.
The following site also offers free technical support to its users.
Visit http://www.kpitgnutools.com for details.
Latest versions of KPIT GNU tools were released on June 1, 2004.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
Summary: Compilation error for sh-coff-gcc little endian target
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: nitins2 at kpitcummins dot com
CC: anilp1 at kpitcummins dot com,gcc-bugs at gcc dot gnu
dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: sh-unknown-coff
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16932