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 report target/8787 corrections


My mistake.
The description field should have contained:
----------------------------------------------------------------------------
----
GCC fails to emit the .intel_syntax directive when invoked with -masm=intel

E:\DJGPP\bugs>gcc -v -save-temps -masm=intel -Wa,-al -c test.c
Reading specs from e:/djgpp/lib/gcc-lib/djgpp/3.1/specs
Configured with: ../configure
i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls
Thread model: single
gcc version 3.1

e:/djgpp/lib/gcc-lib/djgpp/3.1/cpp0.exe -lang-c -v -D__GNUC__=3 -D__GNUC_MIN
OR__=1 -D__GNUC_PATCHLEVEL__=0 -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix
__ -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -Asystem=msdos -Asystem=u
nix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D_
_i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ -DMSDOS -DGO32 -DDJGPP=2
 -Dunix -remap -imacros e:/djgpp/lib/gcc-lib/djgpp/3.1/djgpp.ver test.c
test.i
GNU CPP version 3.1 (cpplib) (80386, BSD syntax)
ignoring nonexistent directory "e:/djgpp/djgpp/include"
#include "..." search starts here:
#include <...> search starts here:
 e:/djgpp/lib/gcc-lib/djgpp/3.1/include
 e:/djgpp/include
End of search list.
 e:/djgpp/lib/gcc-lib/djgpp/3.1/cc1.exe -fpreprocessed
test.i -quiet -dumpbase test.c -masm=intel -version -o test.s
GNU CPP version 3.1 (cpplib) (80386, BSD syntax)
GNU C version 3.1 (djgpp)
	compiled by GNU C version 3.1.
 e:/djgpp/bin/as.exe --traditional-format -al -o test.o test.s
test.s: Assembler messages:
test.s:7: Error: too many memory references for `mov'
test.s:8: Error: too many memory references for `sub'
test.s:9: Error: too many memory references for `and'
test.s:10: Error: too many memory references for `mov'
test.s:11: Error: too many memory references for `sub'
test.s:12: Error: too many memory references for `mov'
GAS LISTING test.s              page 1


   1              		.file	"test.c"
   2              		.section .text
   3              		.p2align 1
   4              	.globl _main
   5              	_main:
   6 ???? FF350000 		push	ebp
   6      0000
   7              		mov	ebp, esp
   8              		sub	esp, 8
   9              		and	esp, -16
  10              		mov	eax, 0
  11              		sub	esp, eax
  12              		mov	eax, 1
  13 ???? C9       		leave
  14 ???? C3       		ret
  15              		.ident	"GCC: (GNU) 3.1"


Notice the missing .intel_syntax directive in the assembler file, causing
the errors.
----------------------------------------------------------------------------
----
The how to repeat field should have contained:
----------------------------------------------------------------------------
----
Preprocessed source:
# 1 "test.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "e:/djgpp/lib/gcc-lib/djgpp/3.1/djgpp.ver" 1
# 1 "e:/djgpp/include/sys/version.h" 1 3
# 2 "e:/djgpp/lib/gcc-lib/djgpp/3.1/djgpp.ver" 2
# 2 "<command line>" 2
# 1 "test.c"
int main (void){
    return 1;
}

Invoked with: gcc -v -save-temps -masm=intel -Wa,-al -c test.c



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