diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-08-29 11:14:06 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-08-30 23:52:32 +0200 |
| commit | 5cf440518858ce0fb0b6e904bf4c5cbf0670ab48 (patch) | |
| tree | d77697e7623034c0c4d6c45b4d3d00990887288a | |
| parent | 96f388f0f55cfa1984daa70d7dc4faa63a85c590 (diff) | |
| download | sparse-dev-5cf440518858ce0fb0b6e904bf4c5cbf0670ab48.tar.gz | |
fix missing declarations
The recent SSA commits cause the 'make selfcheck' target to complain:
$ make selfcheck
...
CHECK dominate.c
dominate.c:26:14: warning: symbol 'bank_init' was not declared. Should it be static?
dominate.c:129:6: warning: symbol 'idf_dump' was not declared. Should it be static?
...
CHECK ssa.c
ssa.c:375:6: warning: symbol 'ssa_convert' was not declared. Should it be static?
...
$
Add the missing declarations.
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
| -rw-r--r-- | dominate.c | 2 | ||||
| -rw-r--r-- | dominate.h | 4 | ||||
| -rw-r--r-- | ssa.c | 1 | ||||
| -rw-r--r-- | ssa.h | 2 |
4 files changed, 8 insertions, 1 deletions
@@ -23,7 +23,7 @@ struct piggy { struct basic_block_list *lists[0]; }; -struct piggy *bank_init(unsigned levels) +static struct piggy *bank_init(unsigned levels) { struct piggy *bank; bank = calloc(1, sizeof(*bank) + levels * sizeof(bank->lists[0])); @@ -6,4 +6,8 @@ struct basic_block_list; void idf_compute(struct entrypoint *ep, struct basic_block_list **idf, struct basic_block_list *alpha); + +// For debugging only +void idf_dump(struct entrypoint *ep); + #endif @@ -5,6 +5,7 @@ // #include <assert.h> +#include "ssa.h" #include "lib.h" #include "sset.h" #include "dominate.h" @@ -1,6 +1,8 @@ #ifndef SSA_H #define SSA_H +struct entrypoint; + void ssa_convert(struct entrypoint *ep); #endif |
