]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* floatformat.c: Add casts to avoid signed/unsigned warnings.
authorIan Lance Taylor <ian@airs.com>
Tue, 3 Aug 1999 16:00:39 +0000 (16:00 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 3 Aug 1999 16:00:39 +0000 (16:00 +0000)
* pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.

libiberty/ChangeLog
libiberty/floatformat.c
libiberty/pexecute.c

index a1057105ba1f41fa74bbb888216e30419f91479b..159798acab4183d555c6ea70e5cee9745e9450ac 100644 (file)
@@ -1,3 +1,12 @@
+1999-08-03  Ian Lance Taylor  <ian@zembu.com>
+
+       * floatformat.c: Add casts to avoid signed/unsigned warnings.
+       * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
+
+       * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
+       $(TARGETLIB)n so it works on MSDOS.
+       (install_to_tooldir): Likewise.
+
 1999-07-21  Ian Lance Taylor  <ian@zembu.com>
 
        From Mark Elbrecht:
index c4f21e4ce892430239111c854a74af700026fc78..1d8f16df3537795fcd8dc485de9c0804491701fb 100644 (file)
@@ -1,5 +1,5 @@
 /* IEEE floating point support routines, for GDB, the GNU Debugger.
-   Copyright (C) 1991, 1994 Free Software Foundation, Inc.
+   Copyright (C) 1991, 1994, 1999 Free Software Foundation, Inc.
 
 This file is part of GDB.
 
@@ -128,7 +128,7 @@ get_field (data, order, total_len, start, len)
     --cur_byte;
 
   /* Move towards the most significant part of the field.  */
-  while (cur_bitshift < len)
+  while ((unsigned int) cur_bitshift < len)
     {
       if (len - cur_bitshift < FLOATFORMAT_CHAR_BIT)
        /* This is the last byte; zero out the bits which are not part of
@@ -179,7 +179,7 @@ floatformat_to_double (fmt, from, to)
   mant_off = fmt->man_start;
   dto = 0.0;
 
-  special_exponent = exponent == 0 || exponent == fmt->exp_nan;
+  special_exponent = exponent == 0 || (unsigned long) exponent == fmt->exp_nan;
 
   /* Don't bias zero's, denorms or NaNs.  */
   if (!special_exponent)
@@ -255,7 +255,7 @@ put_field (data, order, total_len, start, len, stuff_to_put)
     --cur_byte;
 
   /* Move towards the most significant part of the field.  */
-  while (cur_bitshift < len)
+  while ((unsigned int) cur_bitshift < len)
     {
       if (len - cur_bitshift < FLOATFORMAT_CHAR_BIT)
        {
@@ -335,7 +335,7 @@ floatformat_from_double (fmt, from, to)
         If we are discarding a zero, we should be (but are not) creating
         a denormalized number which means adjusting the exponent
         (I think).  */
-      if (mant_bits_left == fmt->man_len
+      if ((unsigned int) mant_bits_left == fmt->man_len
          && fmt->intbit == floatformat_intbit_no)
        {
          mant_long &= 0x7fffffff;
index 6da97deee4b2a50c61a067d717860a39fecde74c..c644c98e0feb42060d9c8610b7a20deadbde5e1c 100644 (file)
@@ -616,7 +616,7 @@ pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags)
      const char *program;
      char * const *argv;
      const char *this_pname;
-     const char *temp_base;
+     const char *temp_base ATTRIBUTE_UNUSED;
      char **errmsg_fmt, **errmsg_arg;
      int flags;
 {
@@ -723,7 +723,7 @@ int
 pwait (pid, status, flags)
      int pid;
      int *status;
-     int flags;
+     int flags ATTRIBUTE_UNUSED;
 {
   /* ??? Here's an opportunity to canonicalize the values in STATUS.
      Needed?  */