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 pinskia@physics.uc.edu  2003-06-09 12:43 -------
This is a real bug, looks like someone forgot to update config/i386/djgpp.h to print out 
`.intel_syntax' when ix86_asm_dialect == ASM_INTEL is true like att.h, linux.h, and gas.h.
This looks like it is easy to fix (I have not test this yet but can you?):
Patch to fix it:
Index: djgpp.h
============================================================
=======
RCS file: /cvs/gcc/gcc/gcc/config/i386/djgpp.h,v
retrieving revision 1.43
diff -u -d -b -w -u -p -r1.43 djgpp.h
--- djgpp.h	26 Dec 2002 18:45:02 -0000	1.43
+++ djgpp.h	9 Jun 2003 12:41:45 -0000
@@ -136,6 +136,8 @@ Boston, MA 02111-1307, USA.  */
 #undef ASM_FILE_START
 #define ASM_FILE_START(FILE)						\
   do {									\
+	if (ix86_asm_dialect == ASM_INTEL)				\
+	  fputs ("\t.intel_syntax\n", FILE);				\
 	output_file_directive (FILE, main_input_filename);		\
   } while (0)


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