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

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

From-SVN: r37022

gcc/ChangeLog
gcc/config/i386/linux.h

index 54850b414d6fb5232942ec562c4a6e137484615c..93b7200e49fd7772c70aace30d741e65a3011e31 100644 (file)
@@ -1,3 +1,7 @@
+2000-10-23  Diego Novillo  <dnovillo@cygnus.com>
+
+       * config/i386/linux.h (ASM_FILE_START): Define.
+
 Wed Oct 18 11:16:40 2000  Donald Lindsay  <dlindsay@cygnus.com>
 
        * gcc/configure.in: m68k-coff tm_file should not have libgloss.h,
index 9cb332c30961ebcaf886cf7d9f80e4519328a3a4..597bb51c99eb4e5f68728b5d8b9a17033c289cc8 100644 (file)
@@ -29,6 +29,17 @@ Boston, MA 02111-1307, USA.  */
 #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)");