Unreviewed patches

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Fri Nov 9 16:02:00 GMT 2001


 > From: Richard Henderson <rth@redhat.com>
 > 
 > > Get x86-dgux to compile (only posted yesterday, but it supercedes a
 > > much older patch):
 > > http://gcc.gnu.org/ml/gcc-patches/2001-11/msg00029.html
 > 
 > The whole output_options thing is redundant with print_switch_values
 > from toplev.c.  The only thing that looks relevant anymore is
 > 
 >   output_file_directive (file, main_input_filename);
 >   fprintf (file, "\t.version\t\"01.01\"\n");                    \
 >   /* Switch to the data section so that the coffsem symbol
 >      isn't in the text section.  */
 >   data_section ();
 > 
 > which can just as well be moved directly into the ASM_FILE_START
 > macro and avoid the extra .c file entirely.
 > r~


Tested by cross-compiling cc1 to i386-dg-dgux.  Ok?




2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.

	* i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
	of dgux.c:output_file_start().

	* i386/dgux.c: Delete file.

diff -rup orig/egcs-CVS20011109/gcc/config.gcc egcs-CVS20011109/gcc/config.gcc
--- orig/egcs-CVS20011109/gcc/config.gcc	Fri Nov  9 18:14:12 2001
+++ egcs-CVS20011109/gcc/config.gcc	Fri Nov  9 18:29:51 2001
@@ -1442,7 +1442,6 @@ i[34567]86-*-interix*)
 	;;
 i[34567]86-dg-dgux*)
 	xm_defines=POSIX
-	out_file=i386/dgux.c
 	tm_file="${tm_file} i386/att.h elfos.h svr4.h i386/sysv4.h i386/dgux.h"
 	tmake_file=i386/t-dgux
 	xmake_file=i386/x-dgux
diff -rup orig/egcs-CVS20011109/gcc/config/i386/dgux.h egcs-CVS20011109/gcc/config/i386/dgux.h
--- orig/egcs-CVS20011109/gcc/config/i386/dgux.h	Fri Oct 19 19:17:59 2001
+++ egcs-CVS20011109/gcc/config/i386/dgux.h	Fri Nov  9 18:33:23 2001
@@ -81,11 +81,15 @@ Boston, MA 02111-1307, USA.  */
 #undef  PREFERRED_DEBUGGING_TYPE
 #define PREFERRED_DEBUGGING_TYPE DWARF_DEBUG
 
-/* Override svr[34].h.  */
+/* Override svr[34].h.  Switch to the data section so that the coffsem
+   symbol isn't in the text section.  */
 #undef	ASM_FILE_START
 #define ASM_FILE_START(FILE) \
-  output_file_start (FILE, f_options, ARRAY_SIZE (f_options), \
-		     W_options, ARRAY_SIZE (W_options))
+  do { \
+    output_file_directive (FILE, main_input_filename); \
+    fprintf (FILE, "\t.version\t\"01.01\"\n"); \
+    data_section (); \
+  } while (0)
 
 /* ix86 abi specified type for wchar_t */
 



More information about the Gcc-patches mailing list