This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch H8/300 : .comment section not getting generated in debug information


Hi,

The .comment section is not present in output when build with gcc-3.4 snapshot for H8/300 target. 
The version information generated in assembly file is after the .end directive and therefore it is ignored. 
Following patch fixes this problem,

ChangeLog
2004-02-28  Anil Paranjpe  <anilp1@kpitcummins.com>
*config/h8300/h8300.c (TARGET_ASM_FILE_END) : Removed.
		 	     (h8300_file_end)	  : Removed.

--- config/h8300/h8300.c.orig	Thu Mar 11 12:14:25 2004
+++ config/h8300/h8300.c	Fri Mar 12 15:36:53 2004
@@ -664,14 +664,6 @@ h8300_file_start (void)
     fputs (TARGET_NORMAL_MODE ? "\t.h8300sn\n" : "\t.h8300s\n", asm_out_file);
 }
 
-/* Output assembly language code for the end of file.  */
-
-static void
-h8300_file_end (void)
-{
-  fputs ("\t.end\n", asm_out_file);
-}
-
 /* Return true if OP is a valid source operand for an integer move
    instruction.  */
 
@@ -4585,9 +4577,6 @@ h8300_return_in_memory (tree type, tree 
 #define TARGET_ASM_FILE_START h8300_file_start
 #undef TARGET_ASM_FILE_START_FILE_DIRECTIVE
 #define TARGET_ASM_FILE_START_FILE_DIRECTIVE true
-
-#undef TARGET_ASM_FILE_END
-#define TARGET_ASM_FILE_END h8300_file_end
 
 #undef TARGET_ENCODE_SECTION_INFO
 #define TARGET_ENCODE_SECTION_INFO h8300_encode_section_info

Is it ok to apply to 3.4 branch and Mainline ?

Regards,
Anil Paranjpe


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]