aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/common/bits-tst.c
AgeCommit message (Collapse)AuthorFilesLines
2025-05-19sim: testsuite: Fix build with host GCC15Dimitar Dimitrov1-3/+2
Simulator testsuite build started failing with host GCC-15: bits-tst.c:323:1: error: function declaration isn’t a prototype [-Werror=strict-prototypes] bits-tst.c: In function ‘main’: bits-tst.c:323:1: error: old-style function definition [-Werror=old-style-definition] Fix by including string.h to get the required prototypes, and changing main's declaration to modern C. Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu> Approved-By: Tom Tromey <tom@tromey.com>
2024-01-12sim: Fix compile errorsDimitar Dimitrov1-5/+5
The following change broke simulator testsuite with host GCC 13: commit 435ad222b3de93fa647fba7221eece36b1b395eb sim: warnings: compile build tools with -Werror too Host GCC13 complains about missing function prototypes: binutils/sim/testsuite/common/bits-gen.c:26:1: error: no previous prototype for ‘gen_struct’ [-Werror=missing-prototypes] 26 | gen_struct (void) | ^~~~~~~~~~ Fix by making the functions static, which instructs the compiler that there is no need for a prototype. Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
2021-01-11sim: tests: get common tests working againMike Frysinger1-25/+14
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.
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+408
1999-04-16Initial creation of sourceware repositoryStan Shebs1-347/+0
1997-09-16More sim-bits testing.Andrew Cagney1-4/+36
1997-09-08Check MS* macros from sim/common.Andrew Cagney1-0/+315