This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Emitting .intel_syntax when -mintel-syntax is used
- To: gcc-patches at gcc dot gnu dot org
- Subject: [patch] Emitting .intel_syntax when -mintel-syntax is used
- From: Diego Novillo <dnovillo at cygnus dot com>
- Date: Mon, 23 Oct 2000 09:19:33 -0400
- Organization: Red Hat Canada
We do not emit .intel_syntax when the -mintel-syntax switch is
used. I am not actually sure if this is the best place to do it,
but it works for me.
2000-10-23 Diego Novillo <dnovillo@cygnus.com>
* linux.h (ASM_FILE_START): Define.
Index: linux.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/linux.h,v
retrieving revision 1.19
diff -d -c -p -r1.19 linux.h
*** linux.h 2000/07/13 04:40:23 1.19
--- linux.h 2000/10/23 13:15:39
*************** Boston, MA 02111-1307, USA. */
*** 29,34 ****
--- 29,45 ----
#include <i386/att.h> /* Use the i386 AT&T assembler syntax */
#include <linux.h> /* some common stuff */
+ /* Output at beginning of assembler file. */
+ /* The .file command should always begin the output. */
+ #undef ASM_FILE_START
+ #define ASM_FILE_START(FILE) \
+ do { \
+ output_file_directive (FILE, main_input_filename); \
+ if (target_flags & MASK_INTEL_SYNTAX) \
+ fputs ("\t.intel_syntax\n", FILE); \
+ fprintf (FILE, "\t.version\t\"01.01\"\n"); \
+ } while (0)
+
#undef TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (i386 Linux/ELF)");