This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin 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]

Re: Available for test: gcc-3.1.1-1, gcc2-2.95.3-6, and gcc-mingw-3_1-20020516-1


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/


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