From 57bef48ec5d1e635f0dd2397904f6ce4f91a640c Mon Sep 17 00:00:00 2001 From: Anil Paranjpe Date: Tue, 20 Apr 2004 00:45:11 -0700 Subject: [PATCH] patch from Anil Paranjpe to fix H8/300 .ident problem. * toplev.c (compile_file): Move targetm.asm_out.file_end call to end. From-SVN: r80885 --- gcc/ChangeLog | 4 ++++ gcc/toplev.c | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4742f4dab03..14134e9ec40 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-04-20 Anil Paranjpe    + + * toplev.c (compile_file): Move targetm.asm_out.file_end call to end. + 2004-04-20 Richard Sandiford * config/mips/mips.c (mips_legitimize_move): Generate special patterns diff --git a/gcc/toplev.c b/gcc/toplev.c index faf177af55f..bdffef7a740 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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. */ -- 2.30.2