| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <3D28548C.9090105@danbbs.dk> |
| Date: | Sun, 07 Jul 2002 16:47:40 +0200 |
| From: | Gunnar Degnbol <degnbol AT danbbs DOT dk> |
| User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc3) Gecko/20020523 |
| X-Accept-Language: | en-us, en |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Available for test: gcc-3.1.1-1, gcc2-2.95.3-6, and gcc-mingw-3_1-20020516-1 |
| References: | <20020707032010 DOT GA22463 AT redhat DOT 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 AT 4
.def @FastFunc AT 4; .scl 2; .type 32; .endef
@FastFunc AT 4:
pushl %ebp
movl %esp, %ebp
subl $4, %esp
movl %ecx, -4(%ebp)
leave
ret
.globl _func
.data
.align 4
_func:
.long @FastFunc AT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |