This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Available for test: gcc-3.1.1-1, gcc2-2.95.3-6, and gcc-mingw-3_1-20020516-1
- From: Gunnar Degnbol <degnbol at danbbs dot dk>
- To: cygwin at cygwin dot com
- Date: Sun, 07 Jul 2002 16:47:40 +0200
- Subject: Re: Available for test: gcc-3.1.1-1, gcc2-2.95.3-6, and gcc-mingw-3_1-20020516-1
- References: <20020707032010.GA22463@redhat.com>
Christopher Faylor wrote:
>> I've just uploaded a test version of gcc 3.1.1 based on the main gcc
3.1.1 branch.
I tried the new __fastcall support, but the assembler choked on symbols
beginning with '@':
compiling (gcc -c -save-temps fasttest.c) this file:
void __fastcall FastFunc(int parm1)
{
}
void (__fastcall * func)(int parm1) = FastFunc;
produces this assembly output:
.file "fasttest.c"
.text
.align 2
.globl @FastFunc@4
.def @FastFunc@4; .scl 2; .type 32; .endef
@FastFunc@4:
pushl %ebp
movl %esp, %ebp
subl $4, %esp
movl %ecx, -4(%ebp)
leave
ret
.globl _func
.data
.align 4
_func:
.long @FastFunc@4
which gives these errors:
fasttest.s: Assembler messages:
fasttest.s:4: Warning: rest of line ignored; first ignored character is `@'
fasttest.s:5: Warning: rest of line ignored; first ignored character is `@'
fasttest.s:6: Warning: rest of line ignored; first ignored character is `@'
fasttest.s:17: Error: bad expression
fasttest.s:17: Warning: rest of line ignored; first ignored character is `F'
The file compiles without problems in VC++.
Gunnar
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/