This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
vmsdbgout.c int-to-enum cast and #define globalref
- From: Jay K <jay dot krell at cornell dot edu>
- To: gcc <gcc at gcc dot gnu dot org>
- Date: Sat, 8 May 2010 06:29:49 +0000
- Subject: vmsdbgout.c int-to-enum cast and #define globalref
vmsdbgout.c has an int-to-enum warning and needs some form of "globalref" when host=alpha-dec-vms since that #includes the VMS system headers.
Perhaps gcc should recognize globalref when target=*vms* and at least interpret it as extern.
Thanks,
?- Jay
diff -u /src/orig/gcc-4.5.0/gcc/vmsdbgout.c ./vmsdbgout.c
--- /src/orig/gcc-4.5.0/gcc/vmsdbgout.c??? 2009-11-25 02:55:54.000000000 -0800
+++ ./vmsdbgout.c??? 2010-05-06 01:40:20.000000000 -0700
@@ -21,6 +21,8 @@
?along with GCC; see the file COPYING3.? If not see
?<http://www.gnu.org/licenses/>.? */
?
+#define globalref extern
+
?#include "config.h"
?#include "system.h"
?#include "coretypes.h"
@@ -743,7 +745,7 @@
?? modbeg.dst_b_modbeg_flags.dst_v_modbeg_version = 1;
?? modbeg.dst_b_modbeg_flags.dst_v_modbeg_unused = 0;
?? modbeg.dst_b_modbeg_unused = 0;
-? modbeg.dst_l_modbeg_language = module_language;
+? modbeg.dst_l_modbeg_language = (DST_LANGUAGE)module_language;
?? modbeg.dst_w_version_major = DST_K_VERSION_MAJOR;
?? modbeg.dst_w_version_minor = DST_K_VERSION_MINOR;
?? modbeg.dst_b_modbeg_name = strlen (module_name);
@@ -822,7 +824,7 @@
???? ?+ string count byte + string length */
?????? header.dst__header_length.dst_w_length
???? = DST_K_DST_HEADER_SIZE - 1 + 1 + 4 + 1 + strlen (go);
-????? header.dst__header_type.dst_w_type = 0x17;
+????? header.dst__header_type.dst_w_type = (DST_DTYPE)0x17;
?
?????? totsize += write_debug_header (&header, "transfer", dosizeonly);
?