This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/8787] [Cygwin] GCC fails to emit .intel_syntax when invoked with the -masm=intel on DJGPP
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jun 2003 12:43:33 -0000
- Subject: [Bug target/8787] [Cygwin] GCC fails to emit .intel_syntax when invoked with the -masm=intel on DJGPP
- References: <20021202090600.8787.killer.lightspeed@bigpond.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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)