This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug target/8787] [Cygwin] GCC fails to emit .intel_syntax when invoked with the -masm=intel on DJGPP


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8787



------- Additional Comments From killer.lightspeed@bigpond.com  2003-06-09 11:44 -------
Subject: Re:  [Cygwin] GCC fails to emit .intel_syntax when
 invoked with the -masm=intel on DJGPP

pinskia@physics.uc.edu wrote:

>PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
>
>http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8787
>
>
>
>------- Additional Comments From pinskia@physics.uc.edu  2003-06-09 01:14 -------
>Also what version of binutils are you using?
>
>
>
>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>
>  
>
OK. It's a DJGPP specific problem.
It does emit ".intel_syntax" under GCC 3.2 under Linux [gcc version 3.2 
(Mandrake Linux 9.0 3.2-1mdk)]
(see attached file [test1.linux.s] for output)
But, strangely, gcc 3.2 under Mandrake still prefixes registers with % 
when invoked with .intel_syntax, and GAS 2.12.90.0.15 under Linux does 
not accept the registers without the %.
This Linux binutils version is 2.12.90.0.15
[GNU assembler version 2.12.90.0.15 (i586-mandrake-linux-gnu) using BFD 
version 2.12.90.0.15 20020717]
Should I submit a bug report for this?

The DJGPP binutils version is 2.13.
[GNU assembler version 2.13 (i386-pc-msdosdjgpp) using BFD version 2.13]

The gcc version is 3.2.1
(see attached file [test1.djgpp.s] for output)
GCC version 3.2.3 is the same.

I will test gcc 3.3 when I can.
	.file	"test.c"
	.section .text
.globl _main
_main:
	push	ebp
	mov	ebp, esp
	sub	esp, 8
	and	esp, -16
	mov	eax, 0
	sub	esp, eax
	mov	eax, 1
	leave
	ret
	.ident	"GCC: (GNU) 3.2.1"
	.file	"test.c"
	.intel_syntax
	.text
	.align 2
.globl main
	.type	main,@function
main:
	push	%ebp
	mov	%ebp, %esp
	sub	%esp, 8
	and	%esp, -16
	mov	%eax, 0
	sub	%esp, %eax
	mov	%eax, 1
	leave
	ret
.Lfe1:
	.size	main,.Lfe1-main
	.ident	"GCC: (GNU) 3.2 (Mandrake Linux 9.0 3.2-1mdk)"


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