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 instaled for vms cross compiles


I couldn't cross-compile cc1 to vms targets because of two problems.

First there was an outright typo in that the copyright notice had a
spurious close-comment token left behind.  Second, there was a typo in
the use of ENUM_BITFIELD which prevented compilation.  I also fixed a
warning where a function definition didn't declare its return type or
that it was static.

< vmsdbg.h:36: warning: type defaults to `int' in declaration of `DST_DTYPE'
< vmsdbg.h:49: warning: ISO C forbids forward references to `enum' types
< vmsdbg.h:50: warning: ISO C forbids forward references to `enum' types
< vmsdbgout.c:707: warning: non-static declaration for `write_modbeg' follows static
< vmsdbgout.c:707: warning: return type defaults to `int'

I tested via cross-compiling cc1 to alpha-dec-vms and vax-unknown-vms
and installed it as obvious.

		--Kaveh



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

	* vmsdbg.h: Delete spurious close-comment.
	(DST_HEADER): Fix typo in ENUM_BITFIELD parameter.
	* vmsdbgout.c (write_modbeg): Define return type.

diff -rup orig/egcc-CVS20011207/gcc/vmsdbg.h egcc-CVS20011207/gcc/vmsdbg.h
--- orig/egcc-CVS20011207/gcc/vmsdbg.h	Wed Dec  5 16:30:26 2001
+++ egcc-CVS20011207/gcc/vmsdbg.h	Sun Dec  9 03:48:33 2001
@@ -1,4 +1,4 @@
-/* Definitions for the data structures and codes used in VMS debugging.  */
+/* Definitions for the data structures and codes used in VMS debugging.
    Copyright (C) 2001 Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -46,8 +46,8 @@ typedef struct _DST_HEADER
     } dst__header_length;
   union
     {
-      ENUM_BITFIELD (_DST_DTYPE) dst_w_type : 16;
-      ENUM_BITFIELD (_DST_DTYPE) dst_x_type : 16;
+      ENUM_BITFIELD (_DST_TYPE) dst_w_type : 16;
+      ENUM_BITFIELD (_DST_TYPE) dst_x_type : 16;
     } dst__header_type;
 } DST_HEADER;
 #define DST_K_DST_HEADER_SIZE sizeof 4
diff -rup orig/egcc-CVS20011207/gcc/vmsdbgout.c egcc-CVS20011207/gcc/vmsdbgout.c
--- orig/egcc-CVS20011207/gcc/vmsdbgout.c	Wed Dec  5 16:30:27 2001
+++ egcc-CVS20011207/gcc/vmsdbgout.c	Sun Dec  9 03:44:15 2001
@@ -703,6 +703,7 @@ write_debug_string (string, comment, dos
 /* Output a module begin header and return the header size.  Just return the
    size if DOSIZEONLY is non-zero. */
 
+static int
 write_modbeg (dosizeonly)
      int dosizeonly;
 {


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