This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


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

Patches to 19991116 snapshot for vendor compilers on AIX and OSF1 4.0


Title: Patches to 19991116 snapshot for vendor compilers on AIX and OSF1 4.0

IBM xlc errors on trailing commas in enums
Digital (Compaq) errors comparing a function pointer with another with
different prototype cast to void *.
Patch enclosed.

cc -std -c -g    -I. -I../../gdb-19991116/gdb -I../../gdb-19991116/gdb/config -DHAVE_CONFIG_H -I../../gdb-19991116/gdb/../include/opcode -I../../gdb-19991116/gdb/../readline/.. -I../bfd -I../../gdb-19991116/gdb/../bfd  -I../../gdb-19991116/gdb/../include -I../intl -I../../gdb-19991116/gdb/../intl -I../../gdb-19991116/gdb/tui    ../../gdb-19991116/gdb/target.c

cc: Info: ../../gdb-19991116/gdb/command.h, line 37: Trailing comma found in enumerator list. (trailcomma)
};
^
cc: Info: ../../gdb-19991116/gdb/defs.h, line 1140: In this declaration, type long double has the same representation as type double on this platform. (longdoublenyi)

typedef long double DOUBLEST;
--------^
cc: Error: ../../gdb-19991116/gdb/target.c, line 2840: In this statement, "current_target.to_rcmd" and "(void ...)tcomplain" cannot be compared for equality or inequality. (noequality)

  if ((current_target.to_rcmd == (void*) tcomplain)
-------^
cc: Error: ../../gdb-19991116/gdb/target.c, line 2842: In this statement, "debug_target.to_rcmd" and "(void ...)tcomplain" cannot be compared for equality or inequality. (noequality)

          && (debug_target.to_rcmd == (void*) tcomplain)))
--------------^
make[1]: *** [target.o] Error 1
make[1]: Leaving directory `/user/rand/rdb/src/gdb-19991116.obj.v/gdb'


--- ChangeLog.orig      Wed Nov 17 12:38:44 1999
+++ ChangeLog   Wed Dec  1 09:35:58 1999
@@ -1,3 +1,10 @@
+1999-12-01  Rodney Brown  <RodneyBrown@pmsc.com>
+
+       * commands.h (enum command_class): remove trailing comma (IBM xlc)
+       * target.c (do_monitor_command): compare function pointers as void*
+       (Digital OSF1 4.0e compiler disallows comparison of function pointer
+       to void*)
+
 1999-11-16  Mark Salter  <msalter@cygnus.com>
 
        * monitor.c (monitor_supply_register): Initialize value to zero.
--- command.h.orig      Sat Sep 25 17:59:38 1999
+++ command.h   Wed Dec  1 13:30:42 1999
@@ -33,7 +33,7 @@
   no_class = -1, class_run = 0, class_vars, class_stack,
   class_files, class_support, class_info, class_breakpoint, class_trace,
   class_alias, class_obscure, class_user, class_maintenance,
-  class_pseudo, class_tui, class_xdb,
+  class_pseudo, class_tui, class_xdb
 };
 
 /* Not a set/show command.  Note that some commands which begin with
--- target.c.orig       Wed Dec  1 09:27:50 1999
+++ target.c    Mon Nov 29 16:15:39 1999
@@ -2837,9 +2837,9 @@
 do_monitor_command (char *cmd,
                 int from_tty)
 {
-  if ((current_target.to_rcmd == (void*) tcomplain)
+  if (((void*) current_target.to_rcmd == (void*) tcomplain)
       || (current_target.to_rcmd == debug_to_rcmd
-         && (debug_target.to_rcmd == (void*) tcomplain)))
+         && ((void*) debug_target.to_rcmd == (void*) tcomplain)))
     {
       error ("\"monitor\" command not supported by this target.\n");
     }


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