patch from Anil Paranjpe to fix H8/300 .ident problem.
authorAnil Paranjpe <anilp1@kpitcummins.com>
Tue, 20 Apr 2004 07:45:11 +0000 (00:45 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 20 Apr 2004 07:45:11 +0000 (00:45 -0700)
* toplev.c (compile_file): Move targetm.asm_out.file_end call to end.

From-SVN: r80885

gcc/ChangeLog
gcc/toplev.c

index 4742f4dab03737e91f06ddc3a8937a611fefb0f4..14134e9ec404b275630643fe4b17e76920821478 100644 (file)
@@ -1,3 +1,7 @@
+2004-04-20  Anil Paranjpe   <anilp1@kpitcummins.com>
+
+       * toplev.c (compile_file): Move targetm.asm_out.file_end call to end.
+
 2004-04-20  Richard Sandiford  <rsandifo@redhat.com>
 
        * config/mips/mips.c (mips_legitimize_move): Generate special patterns
index faf177af55f4727807589066fd6a1e7a3d78a3d2..bdffef7a74040691170d9e77ee9dd01a99e331d1 100644 (file)
@@ -1633,8 +1633,6 @@ compile_file (void)
 
   dw2_output_indirect_constants ();
 
-  targetm.asm_out.file_end ();
-
   /* Attach a special .ident directive to the end of the file to identify
      the version of GCC which compiled this code.  The format of the .ident
      string is patterned after the ones produced by native SVR4 compilers.  */
@@ -1643,6 +1641,11 @@ compile_file (void)
     fprintf (asm_out_file, "%s\"GCC: (GNU) %s\"\n",
             IDENT_ASM_OP, version_string);
 #endif
+
+  /* This must be at the end.  Some target ports emit end of file directives
+     into the assembly file here, and hence we can not output anything to the
+     assembly file after this point.  */
+  targetm.asm_out.file_end ();
 }
 
 /* Display help for target options.  */