--- "Garst R. Reese" <[email protected]> wrote:

> Andre Sodermans wrote:
> 
> >Ok, I now understand the versioning issue, however it seems that the
> >code then has been compiled incorrectly because the actual stream
> that
> >gets generated is the one with the following compile time
> conditional:
> >  #if defined(L_muldi3) && !defined(MSP430_HAS_HWMUL)
> >
> >If you look further down, the correct stream is inside the following
> >conditional:
> >  #if defined(L_muldi3) && defined(MSP430_HAS_HWMUL)
> >
> >I am 100% sure that I used the -mforce-hwmul, so why is this
> happening?
> >
> >Even if I would call the routine, it would still go to the wrong
> one.
> >
> >-Andre
> >
> >  
> >
> You should not have to specify -mforce-hwmul, but you do have to 
> have:
> 
> -mmcu=msp430x149
> Then, during your compile, you see:
>  -DMSP430_HAS_HWMUL
> Showing up.
> 
> Garst
> 

Ok, I tried without forcing the hwmul but still, the wrong stream gets
generated. Here is the compile line:
=================================
msp430-gcc -g -mmcu=msp430x149 -v -c irap.c
Reading specs from
/cygdrive/d/mspgcc/bin/../lib/gcc-lib/msp430/3.2.3/specs
Configured with: ./configure --target=msp430
--prefix=/c/local/liechtic/daten/ms
pgcc/build/installed --disable-nls
Thread model: single
gcc version 3.2.3
 /cygdrive/d/mspgcc/bin/../lib/gcc-lib/msp430/3.2.3/cc1.exe -lang-c -v
-iprefix
/cygdrive/d/mspgcc/bin/../lib/gcc-lib/msp430/3.2.3/ -D__GNUC__=3
-D__GNUC_MINOR_
_=2 -D__GNUC_PATCHLEVEL__=3 -D__GXX_ABI_VERSION=102 -DMSP430
-D__MSP430__ -D__MS
P430 -D__NO_INLINE__ -D__STDC_HOSTED__=1 -DMSP430_HAS_HW_MUL
-D__MSP430_149__ -D
MSP430_HAS_HWMUL -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int
-D__INT_MAX
__=32767 irap.c -quiet -dumpbase irap.c -mmcu=msp430x149 -g -version -o
/cygdriv
e/d/DOCUME~1/ANDRES~1/LOCALS~1/Temp/ccUeupmE.s
GNU CPP version 3.2.3 (cpplib) (GNU assembler syntax)
GNU C version 3.2.3 (msp430)
        compiled by GNU C version 3.3.3 (cygwin special).
ignoring nonexistent directory "/cygdrive/d/mspgcc/msp430/sys-include"
ignoring nonexistent directory
"/c/local/liechtic/daten/mspgcc/build/installed/i
nclude"
ignoring nonexistent directory
"/c/local/liechtic/daten/mspgcc/build/installed/l
ib/gcc-lib/msp430/3.2.3/include"
ignoring nonexistent directory
"/c/local/liechtic/daten/mspgcc/build/installed/l
ib/gcc-lib/msp430/3.2.3/../../../../msp430/sys-include"
ignoring nonexistent directory
"/c/local/liechtic/daten/mspgcc/build/installed/l
ib/gcc-lib/msp430/3.2.3/../../../../msp430/include"
#include "..." search starts here:
#include <...> search starts here:
 /cygdrive/d/mspgcc/lib/gcc-lib/msp430/3.2.3/include
 /cygdrive/d/mspgcc/msp430/include
End of search list.

/cygdrive/d/mspgcc/bin/../lib/gcc-lib/msp430/3.2.3/../../../../msp430/bin/as.ex
e -o irap.o /cygdrive/d/DOCUME~1/ANDRES~1/LOCALS~1/Temp/ccUeupmE.s
msp430-gcc -g -m msp430x149  irap.o -o irap
===================================
Notice there are two of those "has hw mul":
MSP430_HAS_HW_MUL
MSP430_HAS_HWMUL 
perhaps that is creating a problem somewhere?

Andre 





                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

Reply via email to