att.h (ASM_FILE_START): Define.
authorDiego Novillo <dnovillo@cygnus.com>
Mon, 23 Oct 2000 20:21:58 +0000 (20:21 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Mon, 23 Oct 2000 20:21:58 +0000 (16:21 -0400)
2000-10-23  Diego Novillo  <dnovillo@cygnus.com>

* config/i386/att.h (ASM_FILE_START): Define.

From-SVN: r37023

gcc/ChangeLog
gcc/config/i386/att.h

index 93b7200e49fd7772c70aace30d741e65a3011e31..0215dd99675b3ebf36f89bb701874c052ad3bf76 100644 (file)
@@ -1,3 +1,7 @@
+2000-10-23  Diego Novillo  <dnovillo@cygnus.com>
+
+       * config/i386/att.h (ASM_FILE_START): Define.
+
 2000-10-23  Diego Novillo  <dnovillo@cygnus.com>
 
        * config/i386/linux.h (ASM_FILE_START): Define.
index 773c0f0afae097d1937d092608b2f72a5ed7ae11..e04b035b4733fcea19aec8513e9794862a617281 100644 (file)
@@ -48,6 +48,17 @@ do                                                           \
       fprintf ((FILE), "\n");                                  \
 } while (0)
 
+/* 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)
+
 /* Do use .optim by default on this machine.  */
 #undef ASM_FILE_START_1
 #define ASM_FILE_START_1(FILE) fprintf (FILE, "\t.optim\n")