ASM_FUNC isn't autodetect correctly

Luc Saillard luc+wine at alcove.fr
Mon Aug 5 14:30:12 CDT 2002


Hi,

 On my computer, ASM_FUNC doesn't have the good value. configure choose
this macro:
>#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
but when i use this macro, i've a lot assembler error that .scl and
.endef isn't a valid command.

The good value is (at least it compile cleanly):
>#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ", at function"

I'm using a debian sid box with:
ii  gcc-2.95                2.95.4-10
ii  gcc-3.1                 3.1.1-2
ii  binutils                2.12.90.0.15-1 (freshly installed)
ii  autoconf                2.53-4

I've test gcc 2.95 and gcc 3.1 with the same error. Perhaps it's my
binutils package ?

If i revert aclocal.m4 from 2002-07-25 with this command
>cvs diff -c -D 2002-07-22 aclocal.m4 | patch -R

It will detect the good macros.
>checking how to define a function in assembly code... .type @function

But, it will failed later when testing dlopen, because conftest_asm.s
doesn't exist. So i need to set this macro at hand.

Luc



More information about the wine-devel mailing list