From Neil Booth <neil@daikokuya.demon.co.uk>:
* gdb.base/bitfields.c: Correct assignments to bitfields to avoid
warnings.
+2002-01-30 Daniel Jacobowitz <drow@mvista.com>
+
+ From Neil Booth <neil@daikokuya.demon.co.uk>:
+ * gdb.base/bitfields.c: Correct assignments to bitfields to avoid
+ warnings.
+
2002-01-21 Fred Fish <fnf@redhat.com>
* gdb.base/restore.exp (restore_tests): Fix obvious typo, callee
break1 ();
flags.uc = 0;
- flags.s1 = 1;
+ flags.s1 = -1;
break1 ();
flags.s1 = 0;
flags.u3 = 0;
flags.u9 = 0;
- flags.s1 = 0x1;
- flags.s2 = 0x3;
- flags.s3 = 0x7;
- flags.s9 = 0x1FF;
+ flags.s1 = -1;
+ flags.s2 = -1;
+ flags.s3 = -1;
+ flags.s9 = -1;
flags.sc = 0xFF;
break2 ();
flags.s1 = 0;
break4 ();
/* Maximally negative values */
- flags.s1 = 0x1;
- flags.s2 = 0x2;
- flags.s3 = 0x4;
- flags.s9 = 0x100;
+ flags.s1 = -0x1;
+ flags.s2 = -0x2;
+ flags.s3 = -0x4;
+ flags.s9 = -0x100;
/* Extract bitfield value so that bitfield.exp can check if the target
understands signed bitfields. */
i = flags.s9;
break4 ();
/* -1 */
- flags.s1 = 0x1;
- flags.s2 = 0x3;
- flags.s3 = 0x7;
- flags.s9 = 0x1FF;
+ flags.s1 = -1;
+ flags.s2 = -1;
+ flags.s3 = -1;
+ flags.s9 = -1;
break4 ();
flags.s1 = 0;