This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

[m32c]Problem in assembly subroutine subdf3


Hi,

I have implemented the assembly routines for m32c targets. These 
subroutines are used for arithmetic operations like addition,
subtraction and multiplication of float and double variables.
They are thoroughly tested for double and float data types.

However, while testing the same assembly routines for data 	
type "long long", I am getting following linker error,

///////////////////////////////////////////////////////////////
/home/kpit/prefix/lib/gcc/m32c-elf/4.2.0/libgcc.a(_addsub_df.o):
 In function `__subdf3':
/home/kpit/build/gcc/gcc/dp-bit.c:762: multiple definition of 
`___subdf3'
/home/kpit/prefix/lib/gcc/m32c-elf/4.2.0/libgcc.a(__m32c_subdf3.o):
/home/kpit/src/gcc-4.2-20060729/gcc/config/m32c/m32c-lib1.S:
(.text+0x0): first defined here
collect2: ld returned 1 exit status
///////////////////////////////////////////////////////////////

This problem is only for "___subdf3" i.e. for subtraction operation.
Any help regarding the same will be highly appreciated.

Regards,
Naveen.H.S.
KPIT Cummins Infosystems Ltd,
Pune (INDIA) 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~	
Free download of GNU based tool-chains for Renesas' SH, H8, R8C, M16C	
and M32C 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, 2006.	
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~	


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