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]

Minor patch for H8300


The h8300 assembler writes the type of optimization in the beginning of
the assembly file as a comment. When the optimization selected is -Os,
it writes -O2.
 
Following patch corrects it.
 
Arati.
 
Changelog

2002-09-03   Arati Dikey  aratid@kpit.com
		h8300.c(asm_file_start): Corrected optimization comment 

--- h8300.c.orig	Mon Aug 26 11:40:28 2002
+++ h8300.c	Tue Sep 03 18:07:14 2002
@@ -497,6 +497,10 @@ asm_file_start (file)
 {
   fprintf (file, ";\tGCC For the Hitachi H8/300\n");
   fprintf (file, ";\tBy Hitachi America Ltd and Cygnus Support\n");
+  
+  if (optimize_size)
+    fprintf (file, "; -Os\n")
+  else
   if (optimize)
     fprintf (file, "; -O%d\n", optimize);
   if (TARGET_H8300H)



------------------------------------------------------------------------
----
Free download of GNUSH and GNUH8 tool chains for Hitachi's SH and H8
Series.
The following site also offers free support to European customers.
Read more at http://www.kpit.com/products/support.htm
Latest versions of GNUSH and GNUH8 are released on July 1, 2002.
------------------------------------------------------------------------
----
 


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