diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-01-09 17:57:48 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-01-11 18:30:06 -0500 |
commit | 254c3783fee9d1b245d1b4b10b72e0c9314f3ff6 (patch) | |
tree | 9fc99a67370a0c9df56eacbdb63c0bfab04c1ebe /sim/testsuite/ChangeLog | |
parent | c6185dce03deb07b4c824d04969ab88abaf63460 (diff) | |
download | gdb-254c3783fee9d1b245d1b4b10b72e0c9314f3ff6.zip gdb-254c3783fee9d1b245d1b4b10b72e0c9314f3ff6.tar.gz gdb-254c3783fee9d1b245d1b4b10b72e0c9314f3ff6.tar.bz2 |
sim: tests: get common tests working again
These were written with 32-bit host assumptions baked into it.
Simplify the printf formats to use ll length modifier as it's
in C11 rather than trying to manually break it up into two,
and cleanup some of the casts to stop assuming sizeof(long) is
the same as sizeof(int).
We also have to add a few more includes for the various funcs
used in here.
The tests aren't compiled automatically still. We can figure
that out later with more work.
Diffstat (limited to 'sim/testsuite/ChangeLog')
-rw-r--r-- | sim/testsuite/ChangeLog | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sim/testsuite/ChangeLog b/sim/testsuite/ChangeLog index 94d30a9..a32672a 100644 --- a/sim/testsuite/ChangeLog +++ b/sim/testsuite/ChangeLog @@ -1,3 +1,18 @@ +2021-01-11 Mike Frysinger <vapier@gentoo.org> + + * common/alu-tst.c: Include stdlib.h. + (PACKAGE): Define. + (print_hex): Change printf to use %llx. + * common/bits-gen.c: Include stdlib.h, string.h, and unistd.h. + (gen_struct): Change long long to unsigned64. + (gen_bit): Change bit cast to bit mask. Change printf to use %llx. + (gen_mask): Likewise. + (usage): Delete default case. + (main): Change WITH_HOST_WORD_BITSIZE printf from %d to %zu. Emit + PACKAGE define and stdlib.h & string.h includes. + * common/bits-tst.c (calc): Change printf to use %llx. + (check_sext, check_rot, check_extract, check_bits): Likewise. + 2021-01-09 Mike Frysinger <vapier@gentoo.org> * configure: Regenerate. @@ -368,4 +383,3 @@ Mon Sep 1 16:43:55 1997 Andrew Cagney <cagney@b1.cygnus.com> * configure.in (configdirs): Test for the target directory instead of matching on a target. - |